diff --git a/Changelog.md b/Changelog.md index d02989867c859b3b768c933d6df6253f9d654d03..03827fa6d02ae02bbe995ef22c558e2e0053c85a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. + +## [0.78] - 2025-01-17 +- COMP-371: Add S&P - EOSC Listings page (unlisted due to bad data) +- Only render http(s) links as links in URL tables +- Get rid of redundant collapsible-column css & fix up some css +- Add survey-publisher-legacy script for converting old response data into new surveys (reusing 2024 survey template) +- Fix minor bugs & minor improvements for frontend & backend +- Add legacy-survey-publisher script for generating surveys from 2016 to 2022 from the old data +- Fix mapping of survey response data for 2023/2024 publishers +- Add dry run functionality for publishing to the survey management page (it prints changes to the console) +- Convert all surveys except the 2023 survey to use the 2024 survey + ## [0.77] - 2025-01-10 - COMP-369: Add Network - Capacity - External IP Connections page diff --git a/compendium-frontend/src/App.tsx b/compendium-frontend/src/App.tsx index 7f4d5354f46e1c277a4d3ec6eef4921b0b68baa1..edd4cae3573d7003eb3e7ffcf96dc571bc3b4518 100644 --- a/compendium-frontend/src/App.tsx +++ b/compendium-frontend/src/App.tsx @@ -25,6 +25,7 @@ import CentralProcurementPage from "./pages/Standards&Policies/CentralProcuremen import CorporateStrategyPage from "./pages/Standards&Policies/CorporateStrategy"; import CrisisExercisesPage from "./pages/Standards&Policies/CrisisExercises"; import CrisisManagementPage from "./pages/Standards&Policies/CrisisManagement"; +import EOSCListingsPage from "./pages/Standards&Policies/EOSCListings"; import PolicyPage from "./pages/Standards&Policies/Policy"; import SecurityControlsPage from "./pages/Standards&Policies/SecurityControls"; import ServiceLevelTargetsPage from "./pages/Standards&Policies/ServiceLevelTargets"; @@ -128,6 +129,7 @@ const router = createBrowserRouter([ { path: "/dark-fibre-lease-international", element: <DarkFibreLeasePage key={"darkfibreinternational"} /> }, { path: "/dark-fibre-installed", element: <DarkFibreInstalledPage /> }, { path: "/remote-campuses", element: <RemoteCampusesPage /> }, + { path: "/eosc-listings", element: <EOSCListingsPage /> }, { path: "/fibre-light", element: <FibreLightPage /> }, { path: "/monitoring-tools", element: <MonitoringToolsPage /> }, { path: "/pert-team", element: <PertTeamPage /> }, diff --git a/compendium-frontend/src/Schema.tsx b/compendium-frontend/src/Schema.tsx index e864f0a4946b0a132973c12cb814c40a75c27123..6161d3ef43cdc4bcf3461ceaf0eb117cc41cb746 100644 --- a/compendium-frontend/src/Schema.tsx +++ b/compendium-frontend/src/Schema.tsx @@ -147,6 +147,10 @@ export interface ECProject extends NrenAndYearDatapoint { project: string; } +export interface EOSCListing extends NrenAndYearDatapoint { + service_names: string[]; +} + export interface ExternalConnection extends NrenAndYearDatapoint { link_name: string, capacity: (number | null), diff --git a/compendium-frontend/src/components/NrenYearTable.tsx b/compendium-frontend/src/components/NrenYearTable.tsx index abc4afd5aff50ea291b91659e26d2a7dce7da91d..0448fe5ab8932cbadb7c600fe3b2531df42350a8 100644 --- a/compendium-frontend/src/components/NrenYearTable.tsx +++ b/compendium-frontend/src/components/NrenYearTable.tsx @@ -9,6 +9,28 @@ interface configProps { removeDecoration?: boolean; } +function getUrlOrString(keysAreURLs, style, index, key, value: string) { + if (!keysAreURLs) { + return <li key={index}> + <span>{value}</span> + </li> + } + + const isURL = key.startsWith('http'); + + if (!isURL) { + return <li key={index}> + <span>{value}</span> + </li> + } + + return (<li key={index}> + <a href={addHttpIfMissing(key)} target="_blank" rel="noopener noreferrer" style={style}>{value}</a> + </li>) + +} + + function getJSXFromData(data: Map<string, Map<number, { [key: string]: string }>>, { dottedBorder = false, noDots = false, keysAreURLs = false, removeDecoration = false }: configProps) { return Array.from(data.entries()).map(([nren, nrenMap]) => { @@ -24,14 +46,7 @@ function getJSXFromData(data: Map<string, Map<number, { [key: string]: string }> <td className='pt-3 blue-column'> <ul className={noDots ? 'no-list-style-type' : ''}> {Array.from(Object.entries(yearData)).map(([text, key], index) => { - if (!keysAreURLs) { - return (<li key={index}> - <span>{text}</span> - </li>) - } - return (<li key={index}> - <a href={addHttpIfMissing(key)} target="_blank" rel="noopener noreferrer" style={style}>{text}</a> - </li>) + return getUrlOrString(keysAreURLs, style, index, key, text); })} </ul> </td> diff --git a/compendium-frontend/src/components/ScrollableTable.tsx b/compendium-frontend/src/components/ScrollableTable.tsx index f145fc6f88c12d692fad513905514af8ce0f84fe..549b135f99000e22fb79fb89f36ec7ddceb7bcd8 100644 --- a/compendium-frontend/src/components/ScrollableTable.tsx +++ b/compendium-frontend/src/components/ScrollableTable.tsx @@ -26,10 +26,10 @@ export function ScrollableTable<T extends NrenAndYearDatapoint>({ dataLookup, co {Array.from(nrenData.entries()).map(([year, yearData], index) => { // workaround for setting the background color of the ::before element to the color of the year const style = { - '--before-color': index == 0 ? '' : `var(--color-of-the-year-muted-${year % 9})`, + '--before-color': `var(--color-of-the-year-muted-${year % 9})`, } as React.CSSProperties - return (<div key={year} style={{ position: "relative" }}> + return (<div key={year}> <span className={`scrollable-table-year color-of-the-year-${year % 9} bold-caps-16pt pt-3 ps-3`} style={style}>{year}</span> <div className={`colored-table bg-muted-color-of-the-year-${year % 9}`}> diff --git a/compendium-frontend/src/pages/CompendiumData.tsx b/compendium-frontend/src/pages/CompendiumData.tsx index cf30062d7e478eea6571ed8dfd5e2e3af9bac8ee..f1b531177a45371560efdbbea931c4639a311026 100644 --- a/compendium-frontend/src/pages/CompendiumData.tsx +++ b/compendium-frontend/src/pages/CompendiumData.tsx @@ -34,7 +34,6 @@ function CompendiumData(): ReactElement { <Container className="pt-5"> <CollapsibleBox title={Sections.Organisation}> - <div className="collapsible-column"> <h6 className="section-title">Budget, Income and Billing</h6> <Link to="/budget" className="link-text-underline"> <span>Budget of NRENs per Year</span> @@ -68,11 +67,9 @@ function CompendiumData(): ReactElement { <Link to="/ec-projects" className="link-text-underline"> <span>NREN Involvement in European Commission Projects</span> </Link> - </div> </CollapsibleBox> <CollapsibleBox title={Sections.Policy} startCollapsed> - <div className="collapsible-column"> <Link to="/policy" className="link-text-underline"> <span>NREN Policies</span> </Link> @@ -107,11 +104,9 @@ function CompendiumData(): ReactElement { <Link to="/service-management-framework" className="link-text-underline"> <span>NRENs Operating a Formal Service Management Framework</span> </Link> - </div> </CollapsibleBox> <CollapsibleBox title={Sections.ConnectedUsers} startCollapsed> - <div className="collapsible-column"> <h6 className="section-title">Connected Users</h6> <Link to="/institutions-urls" className="link-text-underline"> <span>Webpages Listing Institutions and Organisations Connected to NREN Networks</span> @@ -143,10 +138,8 @@ function CompendiumData(): ReactElement { <Link to="/commercial-connectivity" className="link-text-underline"> <span>Commercial Connectivity</span> </Link> - </div> </CollapsibleBox> <CollapsibleBox title={Sections.Network} startCollapsed> - <div className="collapsible-column"> <h6 className="section-title" >Connectivity</h6> <Link to="/traffic-volume" className="link-text-underline"> <span>NREN Traffic - NREN Customers & External Networks</span> @@ -228,10 +221,8 @@ function CompendiumData(): ReactElement { <Link to="/nfv" className="link-text-underline"> <span>Kinds of Network Function Virtualisation used by NRENs</span> </Link> - </div> </CollapsibleBox> <CollapsibleBox title={Sections.Services} startCollapsed> - <div className="collapsible-column"> <Link to="/network-services" className="link-text-underline"> <span>Network services</span> </Link> @@ -256,7 +247,6 @@ function CompendiumData(): ReactElement { <Link to="/professional-services" className="link-text-underline"> <span>Professional services</span> </Link> - </div> </CollapsibleBox> </Container> </main> diff --git a/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx b/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx index 5fce9f907cde2348fd4cfdff2eb888222ee41c56..978f2600a976af55cd522f150a5017b8e5854932 100644 --- a/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx +++ b/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx @@ -134,27 +134,7 @@ function ConnectedUserPage({ page }: inputProps): React.ReactElement { dataLookup = createCategoryMatrixLookup(selectedData, ["carry_mechanism"], "user_category"); } else if (page == ConnectivityPage.ConnectedProportion) { categoryLookup = UserCategories; - - const stringMap = { - "yes_incl_other": "Yes - including transit to other networks", - "yes_national_nren": "Yes - national NREN access", - "sometimes": "In some circumstances", - "no_policy": "No - not eligible for policy reasons", - "no_financial": "No - financial restrictions", - "no_other": "No - other reason", - "unsure": "Unsure/unclear" - } - const fieldToMap = "coverage"; - - const preprocess = (datapoint: DataFormat) => { - // replace the value with a human readable value - const value = datapoint[fieldToMap]; - if (stringMap[value]) { - datapoint[fieldToMap] = stringMap[value]; - } - return datapoint; - } - dataLookup = createCategoryMatrixLookup(selectedData, Object.values(rowFieldMap[page]), "user_category", false, preprocess); + dataLookup = createCategoryMatrixLookup(selectedData, Object.values(rowFieldMap[page]), "user_category", false); } else { categoryLookup = UserCategories; dataLookup = createCategoryMatrixLookup(selectedData, Object.values(rowFieldMap[page]), "user_category", false); diff --git a/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx b/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx index faa850cb55297f284f559d7d1b537d39b70d8bd8..4c49cbe6047420208eb80ff77f517a04e282cfe0 100644 --- a/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx +++ b/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx @@ -40,7 +40,7 @@ function CapacityCoreIPPage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const heightPerBar = 1.5; // every added bar should give this much additional height // set a minimum height of 50rem diff --git a/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx b/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx index 09de1c9907b75c366f72b5f23b450aa9bfe34668..d3d7a50d41657007dbeca18e397dc3e07a9e53e4 100644 --- a/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx +++ b/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx @@ -40,7 +40,7 @@ function CapacityLargestLinkPage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const heightPerBar = 1.5; // every added bar should give this much additional height // set a minimum height of 50rem diff --git a/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx b/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx index df143fbe76cbd6af4556326304160d2dc37a7f7d..d83768e5baa7c67b5c0b1ece58d79d7bc7bc41bc 100644 --- a/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx +++ b/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx @@ -37,7 +37,7 @@ function NonRAndEPeerPage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const heightPerBar = 1.5; // every added bar should give this much additional height // set a minimum height of 50rem diff --git a/compendium-frontend/src/pages/Organization/FundingSource.tsx b/compendium-frontend/src/pages/Organization/FundingSource.tsx index d9c1248c8be7105de3c3044eef0af6242cd5dba4..9d6befe9cfcbe6700a740ede27018d2bcda0ee5b 100644 --- a/compendium-frontend/src/pages/Organization/FundingSource.tsx +++ b/compendium-frontend/src/pages/Organization/FundingSource.tsx @@ -148,7 +148,7 @@ function FundingSourcePage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const numYears = filterSelection.selectedYears.length; const heightPerBar = 2; // every added bar should give this much additional height diff --git a/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx b/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx index dec574fb345fa4779841cbd4fb674aaf9aac6922..8e218480d4140d47d5960c99b1e42a95ae79031d 100644 --- a/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx +++ b/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx @@ -38,7 +38,7 @@ function StaffGraphAbsolutePage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const heightPerBar = 1.5; // every added bar should give this much additional height // set a minimum height of 50rem diff --git a/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx b/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx index ea02b82afe985b452367587ef0c2b8b66b167170..10093a7e76453019897808cdf7361f98ca827219 100644 --- a/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx +++ b/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx @@ -48,7 +48,7 @@ function CentralProcurementPage() { setFilterSelection={setFilterSelection} /> - const numNrens = filterSelection.selectedNrens.length; + const numNrens = Array.from(new Set(selectedData.map(c => c.nren))).length; const heightPerBar = 1.5; // every added bar should give this much additional height // set a minimum height of 50rem diff --git a/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx b/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8f878794e0ee9aa148141291b172ace34999b616 --- /dev/null +++ b/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx @@ -0,0 +1,54 @@ +import React, { useContext } from 'react'; + +import { EOSCListing } from "../../Schema"; +import { createDataLookupList, getTableData } from "../../helpers/dataconversion"; +import DataPage from '../../components/DataPage'; +import Filter from "../../components/graphing/Filter" +import { Sections } from '../../helpers/constants'; +import { FilterSelectionContext } from '../../providers/FilterSelectionProvider'; +import ChartContainer from "../../components/graphing/ChartContainer"; +import { useData } from '../../helpers/useData'; +import NrenYearTable from '../../components/NrenYearTable'; + +// The data for this page is not good quality, so it's unlisted for now. + +function EOSCListingsPage() { + const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext); + const { data, years, nrens } = useData<EOSCListing>('/api/eosc-listings', setFilterSelection); + + const selectedData = data.filter(data => + filterSelection.selectedYears.includes(data.year) && filterSelection.selectedNrens.includes(data.nren) + ); + const dataset = createDataLookupList(selectedData); + + const dataByYear = getTableData(dataset, (obj, EOSCListing) => { + for (const listing of EOSCListing) { + for (const serviceName of listing.service_names) { + obj[serviceName] = serviceName; + } + } + }) + + const filterNode = <Filter + filterOptions={{ availableYears: [...years], availableNrens: [...nrens.values()] }} + filterSelection={filterSelection} + setFilterSelection={setFilterSelection} + /> + + const description = <span> + Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. + Click on the name of the NREN to expand the detail and see the names of the services they list. + </span> + + return ( + <DataPage title="NREN Services Listed on the EOSC Portal" + description={description} + category={Sections.Policy} filter={filterNode} + data={selectedData} filename='nren_eosc_listings'> + <ChartContainer> + <NrenYearTable data={dataByYear} columnTitle="Service Name" dottedBorder keysAreURLs noDots /> + </ChartContainer> + </DataPage> + ); +} +export default EOSCListingsPage; diff --git a/compendium-frontend/src/scss/layout/Sidebar.scss b/compendium-frontend/src/scss/layout/Sidebar.scss index 451e0c70bd0c16a65d4124268b4a4ccdb4cfecc5..ffcc941e3159adaac317c2126ee569a518ecf9cf 100644 --- a/compendium-frontend/src/scss/layout/Sidebar.scss +++ b/compendium-frontend/src/scss/layout/Sidebar.scss @@ -83,6 +83,10 @@ nav.no-sidebar { user-select: none; /* Standard syntax */ } +.toggle-btn-table { + @extend .toggle-btn-matrix; +} + .toggle-btn-wrapper-matrix { padding: 0.5rem; padding-top: 0.7rem; diff --git a/compendium-frontend/src/scss/layout/_components.scss b/compendium-frontend/src/scss/layout/_components.scss index 8870a4cc474d071177af42514a3651eeefa32e13..1e7c8bfd4cd0301b53ad3e02345f422cfb0e28fe 100644 --- a/compendium-frontend/src/scss/layout/_components.scss +++ b/compendium-frontend/src/scss/layout/_components.scss @@ -100,7 +100,6 @@ $year-colors: ( padding: 10px; width: 80rem; max-width: 97%; - max-height: 1000px; } .collapsible-box-matrix { @@ -116,10 +115,9 @@ $year-colors: ( .collapsible-content { display: flex; + flex-direction: column; opacity: 1; - max-height: 1000px; - transition: all 0.3s ease-out; - overflow: hidden; + padding: 1rem; } .collapsible-content.collapsed { @@ -130,7 +128,7 @@ $year-colors: ( .collapsible-column { display: flex; - flex-direction: column; + flex-direction: row; padding: 1rem; } @@ -348,19 +346,25 @@ $service-check-colors: ( } .scrollable-horizontal { - width: 100%; - overflow-x: auto; display: flex; flex-direction: row; + overflow-x: auto; + + >* { + position: relative; + } } .colored-table { height: calc(100% - 3rem); margin-left: 4px; border-collapse: collapse; + z-index: 1; + width: auto; table { - width: 60rem; + width: 65rem; + table-layout: fixed; } thead th { diff --git a/compendium-frontend/src/survey/SurveyManagementComponent.tsx b/compendium-frontend/src/survey/SurveyManagementComponent.tsx index 5c59ba4a4c6fe282cff5bc4ca24a70846ad2fa62..5267814d872c7ca444b81d21e29d0b23fae8fe39 100644 --- a/compendium-frontend/src/survey/SurveyManagementComponent.tsx +++ b/compendium-frontend/src/survey/SurveyManagementComponent.tsx @@ -11,6 +11,7 @@ import { fetchSurveys } from "./api/survey"; import { Survey } from "./api/types"; import { Spinner } from "react-bootstrap"; import StatusButton from "./StatusButton"; +import { Link } from "react-router-dom"; function debounce(func, wait) { let timeout: NodeJS.Timeout; @@ -77,14 +78,20 @@ function SurveyManagementComponent() { }); }, []); - async function apiCall(url: string, failureToast: string, successToast: string) { + async function apiCall(url: string, failureToast: string, successToast: string, dryRun: boolean = false) { try { + if (dryRun) { + url += "?dry_run=1"; + } const response = await fetch(url, { method: 'POST' }); const json = await response.json(); if (!response.ok) { toast(failureToast + json['message']); } else { - toast(successToast); + if (json['message']) { + console.log(json['message']); + } + if (!dryRun) toast(successToast); fetchSurveys().then((surveyList) => { setSurveys(surveyList); }); @@ -98,7 +105,7 @@ function SurveyManagementComponent() { await apiCall('/api/survey/new', "Failed creating new survey: ", "Created new survey"); } - async function postSurveyStatus(year: number, status: string) { + async function postSurveyStatus(year: number, status: string, dryRun: boolean = false) { if (surveyStatusUpdating.current) { toast("Wait for status update to be finished..."); return; @@ -107,7 +114,8 @@ function SurveyManagementComponent() { await apiCall( '/api/survey/' + status + '/' + year, "Error while updating " + year + " survey status to " + status + ": ", - year + " survey status updated to " + status + year + " survey status updated to " + status, + dryRun ); surveyStatusUpdating.current = false; } @@ -141,14 +149,18 @@ function SurveyManagementComponent() { <Accordion.Header>{survey.year} - {survey.status}</Accordion.Header> <Accordion.Body> <div style={{ marginLeft: '.5rem', marginBottom: '1rem' }}> - <Button style={{ marginLeft: '.5rem' }} onClick={() => navigate(`/survey/admin/inspect/${survey.year}`)} - title="Open the survey for inspection with all questions visible and any visibleIf logic added to the title."> - Inspect Survey - </Button> - <Button style={{ marginLeft: '.5rem' }} onClick={() => navigate(`/survey/admin/try/${survey.year}`)} - title="Open the survey exactly as the nrens will see it, but without any nren data."> - Try Survey - </Button> + <Link to={`/survey/admin/edit/${survey.year}`} target="_blank"> + <Button style={{ marginLeft: '.5rem' }} + title="Open the survey for inspection with all questions visible and any visibleIf logic added to the title."> + Inspect Survey + </Button> + </Link> + <Link to={`/survey/admin/try/${survey.year}`} target="_blank"> + <Button style={{ marginLeft: '.5rem' }} + title="Open the survey exactly as the nrens will see it, but without any nren data."> + Try Survey + </Button> + </Link> <ApiCallButton text="Mark as open" helpText="Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore." enabled={survey.status == SurveyStatus.closed} @@ -164,6 +176,11 @@ function SurveyManagementComponent() { enabled={survey.status == SurveyStatus.closed || survey.status == SurveyStatus.preview} onClick={() => postSurveyStatus(survey.year, 'preview')} /> + <ApiCallButton text="Publish results (dry run)" + helpText="Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12)." + enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published} + onClick={() => postSurveyStatus(survey.year, 'publish', true)} + /> <ApiCallButton text="Publish results" helpText="Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already." enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published} @@ -202,10 +219,12 @@ function SurveyManagementComponent() { </td> <td> - <Button onClick={() => navigate(`/survey/response/${survey.year}/${response.nren.name}`)} style={{ pointerEvents: 'auto', margin: '.5rem' }} - title="Open the responses of the NREN."> - open - </Button> + <Link to={`/survey/response/${survey.year}/${response.nren.name}`} target="_blank"> + <Button style={{ pointerEvents: 'auto', margin: '.5rem' }} + title="Open the responses of the NREN."> + open + </Button> + </Link> <Button onClick={() => removeLock(survey.year, response.nren.name)} disabled={response.lock_description == ''} style={{ pointerEvents: 'auto' }} title="Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!"> remove lock diff --git a/compendium-frontend/src/survey/validation/validation.ts b/compendium-frontend/src/survey/validation/validation.ts index 4bd671acc354be9e6e9d65816e11de037f74d5b9..a3cba3b88e3485e46f284726ab03db04252c70cf 100644 --- a/compendium-frontend/src/survey/validation/validation.ts +++ b/compendium-frontend/src/survey/validation/validation.ts @@ -7,6 +7,10 @@ function validateWebsiteUrl(value, nonEmpty = false) { if (value.includes(" ")) { return false; } + // if there's not a protocol, add one for the test + if (!value.includes(":/")) { + value = "https://" + value; + } const url = new URL(value); return !!url diff --git a/compendium_v2/conversion/mapping.py b/compendium_v2/conversion/mapping.py index fc03c5ebf3a4d984f4d61516fb89f6dc5975e962..2de5c13670ddb495805a75286c633e333677e581 100644 --- a/compendium_v2/conversion/mapping.py +++ b/compendium_v2/conversion/mapping.py @@ -577,6 +577,7 @@ VALUE_TO_CODE_MAPPING = { "GeoDaddy": "GeoDaddy", "GeoTrust": "GeoTrust", "Digicert": "Digicert", + "Let's Encrypt": "Let's Encrypt", "Other": "other" }, 16724: INTERCONNECTION, diff --git a/compendium_v2/db/presentation_model_enums.py b/compendium_v2/db/presentation_model_enums.py index 00e8db0efe8f2bbdaf46d4472f6d6c78d500efbc..d9b06aebfec82039cb49dfcc16ebe07f095701d1 100644 --- a/compendium_v2/db/presentation_model_enums.py +++ b/compendium_v2/db/presentation_model_enums.py @@ -34,13 +34,13 @@ class ServiceCategory(Enum): class ConnectivityCoverage(Enum): - yes_incl_other = "yes_incl_other" - yes_national_nren = "yes_national_nren" - sometimes = "sometimes" - no_policy = "no_policy" - no_financial = "no_financial" - no_other = "no_other" - unsure = "unsure" + yes_incl_other = "Yes - including transit to other networks" + yes_national_nren = "Yes - national NREN access" + sometimes = "In some circumstances" + no_policy = "No - not eligible for policy reasons" + no_financial = "No - financial restrictions" + no_other = "No - other reason" + unsure = "Unsure/unclear" class CarryMechanism(Enum): diff --git a/compendium_v2/db/presentation_models.py b/compendium_v2/db/presentation_models.py index 3ffeb85dbee059eae718395aa53f0f769b4b8856..c4ad844406711e26b0adefd5e183959d49e88e97 100644 --- a/compendium_v2/db/presentation_models.py +++ b/compendium_v2/db/presentation_models.py @@ -84,6 +84,12 @@ class NREN(PresentationModel): def __repr__(self): return f'<NREN {self.id} | {self.name}>' + def __hash__(self): + return hash(self.id) + + def __eq__(self, other): + return hasattr(other, 'id') and self.id == other.id + class BudgetEntry(PresentationModel): """ @@ -558,7 +564,7 @@ class ConnectedProportion(PresentationModel): **self.nren.to_dict(), 'year': self.year, 'user_category': self.user_category.value if self.user_category is not None else None, - 'coverage': self.coverage.value if self.coverage is not None else ConnectivityCoverage.unsure.value, + 'coverage': self.coverage.value if self.coverage is not None else None, 'number_connected': self.number_connected, 'market_share': float(self.market_share) if self.market_share else None, 'users_served': self.users_served @@ -1090,6 +1096,25 @@ class ExternalConnections(PresentationModel): year: Mapped[int_pk] connections: Mapped[List[ExternalConnection]] = mapped_column(JSON) + def compare_dict(self): + connections = [] + + for connection in self.connections: + connections.append({ + 'link_name': connection['link_name'], + 'capacity': float(connection['capacity']) if connection['capacity'] else None, + 'from_organization': connection['from_organization'], + 'to_organization': connection['to_organization'], + 'interconnection_method': connection['interconnection_method'] + if connection['interconnection_method'] is not None else None + }) + + return { + 'nren_id': self.nren_id, + 'year': self.year, + 'connections': connections + } + def to_dict(self, download=False): connections = [] @@ -1099,7 +1124,7 @@ class ExternalConnections(PresentationModel): 'capacity': float(connection['capacity']) if connection['capacity'] else None, 'from_organization': connection['from_organization'], 'to_organization': connection['to_organization'], - 'interconnection_method': ConnectionMethod(connection['interconnection_method']).value + 'interconnection_method': ConnectionMethod[connection['interconnection_method']].value if connection['interconnection_method'] is not None else None }) @@ -1272,3 +1297,13 @@ class NRENService(PresentationModel): 'additional_information': self.additional_information, 'official_description': self.official_description, } + + def compare_dict(self): + return { + **self.nren.to_dict(), + 'year': self.year, + 'service_key': self.service_key, + 'product_name': self.product_name, + 'additional_information': self.additional_information, + 'official_description': self.official_description, + } diff --git a/compendium_v2/publishers/excel_parser.py b/compendium_v2/publishers/excel_parser.py index f0065bf176c2591b6055cc125325653d40d146f4..cca9c241fe265bb5e5ffcdfe50314b65f72ea878 100644 --- a/compendium_v2/publishers/excel_parser.py +++ b/compendium_v2/publishers/excel_parser.py @@ -7,6 +7,7 @@ from compendium_v2.conversion import mapping from compendium_v2.db.presentation_model_enums import CarryMechanism, ConnectivityCoverage, MonitoringMethod, \ UserCategory, FeeType, YesNoPlanned from compendium_v2.environment import setup_logging +from compendium_v2.publishers.helpers import map_nren setup_logging() @@ -25,7 +26,7 @@ EXCEL_FILE_NREN_SERVICES = openpyxl.load_workbook(str(Path(__file__).resolve( def fetch_budget_excel_data(): ws = EXCEL_FILE_ORGANISATION["1. Budget"] for row in ws.iter_rows(min_row=14, max_row=58, min_col=1, max_col=8): - nren = row[1].value + nren = map_nren(row[1].value) for i, year in zip(range(3, 8), reversed(range(2016, 2021))): budget = row[i].value if budget is not None: @@ -40,12 +41,10 @@ def fetch_funding_excel_data(): def hard_number_convert(s, source_name, nren, year): if s is None: - # logger.info(f'Invalid Value :{nren} has empty value for {source_name} for year ({year})') return float(0) try: return float(s) except ValueError: - logger.info(f'Invalid Value :{nren} has empty value for {source_name} for year ({year}) with value ({s})') return float(0) # iterate over the rows in the worksheet @@ -53,7 +52,7 @@ def fetch_funding_excel_data(): for row in ws.iter_rows(min_row=start_row, max_row=end_row, min_col=col_nren, max_col=col_start+5): offset = col_start - col_nren # extract the data from the row - nren = row[0].value + nren = map_nren(row[0].value) client_institution = row[offset].value commercial = row[offset+1].value geant_subsidy = row[offset+2].value @@ -81,7 +80,7 @@ def fetch_funding_excel_data(): for row in sheet.iter_rows(min_row=start_row, max_row=end_row, min_col=nren_col, max_col=col_start+4): offset = col_start - nren_col # extract the data from the row - nren = row[0].value + nren = map_nren(row[0].value) client_institution = row[offset].value european_funding = row[offset+1].value gov_public_bodies = row[offset+2].value @@ -127,7 +126,7 @@ def fetch_charging_structure_excel_data(): def create_points_for_2021(start_row, end_row, year, col_start): for row in range(start_row, end_row): # extract the data from the row - nren = ws.cell(row=row, column=col_start).value + nren = map_nren(ws.cell(row=row, column=col_start).value) charging_structure = ws.cell(row=row, column=col_start + 1).value if charging_structure is not None: if "do not charge" in charging_structure: @@ -148,10 +147,9 @@ def fetch_charging_structure_excel_data(): def create_points_for_2019(start_row, end_row, year, col_start): for row in range(start_row, end_row): # extract the data from the row - nren = ws.cell(row=row, column=col_start).value + nren = map_nren(ws.cell(row=row, column=col_start).value) charging_structure = ws.cell(row=row, column=col_start + 1).value structure_2 = ws.cell(row=row, column=col_start + 2).value - logger.info(f'NREN: {nren}, Charging Structure: {charging_structure}, {structure_2}, Year: {year}') if charging_structure is not None: if structure_2 not in [None, '']: charging_structure = FeeType.other @@ -187,7 +185,6 @@ def fetch_staffing_excel_data(): try: return float(value) except (TypeError, ValueError): - logger.info(f'NREN: {nren} year: {year} has {value} for {description}; set to 0.') return 0 def create_points_for_year(year, nren_column, start_column): @@ -195,7 +192,7 @@ def fetch_staffing_excel_data(): for row in ws.iter_rows(min_row=start_row, max_row=end_row, min_col=nren_column, max_col=start_column + 1): # extract the data from the row - nren = row[0].value + nren = map_nren(row[0].value) if not nren: continue permanent = row[offset].value @@ -223,15 +220,13 @@ def fetch_staff_function_excel_data(): try: return float(value) except (TypeError, ValueError): - logger.info( - f'NREN: {nren} year: {year} has {"NO DATA" if value == "" else value} for {description}; set to 0.') return 0 def create_points_for_year_until_2019(year, nren_column, start_column): offset = abs(start_column - nren_column) for row in ws.iter_rows(min_row=start_row, max_row=end_row, min_col=nren_column, max_col=start_column + 5): # extract the data from the row - nren = row[0].value + nren = map_nren(row[0].value) if nren is None: continue admin = convert_number(row[offset].value, nren, year, "admin and finance ftes") @@ -250,7 +245,7 @@ def fetch_staff_function_excel_data(): def create_points_for_year(year, nren_column, start_column): offset = abs(start_column - nren_column) for row in ws.iter_rows(min_row=start_row, max_row=end_row, min_col=nren_column, max_col=start_column + 1): - nren = row[0].value + nren = map_nren(row[0].value) if nren is None: continue technical = convert_number(row[offset].value, nren, year, "technical ftes") @@ -282,7 +277,7 @@ def fetch_ecproject_excel_data(): def create_points_for_year(year, start_column, end_row): for row in ws.iter_rows(min_row=start_row, max_row=end_row, min_col=start_column, max_col=start_column + 1): # extract the data from the row - nren = row[0].value + nren = map_nren(row[0].value) if nren is None: continue project = row[1].value @@ -306,7 +301,7 @@ def fetch_organization_excel_data(): # iterate over the rows in the worksheet for row in range(5, 48): # extract the data from the row - nren = ws.cell(row=row, column=2).value + nren = map_nren(ws.cell(row=row, column=2).value) parent_org = ws.cell(row=row, column=4).value if parent_org not in [None, 'NA', 'N/A']: @@ -324,7 +319,6 @@ def fetch_traffic_excel_data(): try: return float(value) except (TypeError, ValueError): - logger.info(f'NREN: {nren} year: {year} has {value} for {description}; set to 0.') return 0 def create_points_for_year(year, start_column): @@ -332,7 +326,7 @@ def fetch_traffic_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) from_external = convert_number(rows[i][start_column + 1].value, nren_name, year, 'from_external') to_external = convert_number(rows[i][start_column + 2].value, nren_name, year, 'to_external') @@ -421,7 +415,6 @@ def get_category(excel_cat): return UserCategory.government if "profit" in excel_cat.lower(): return UserCategory.for_profit_orgs - logger.warning(f'unknown user category: {excel_cat}') def fetch_remit_excel_data(): @@ -444,7 +437,6 @@ def fetch_remit_excel_data(): return ConnectivityCoverage.no_other if "unsure" in excel_remit.lower(): return ConnectivityCoverage.unsure - logger.warning(f'unknown remit: {excel_remit}') result = {} @@ -462,7 +454,7 @@ def fetch_remit_excel_data(): nren_name = row[0].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) every_second_value = [c.value for c in row][::2] # remove the first value, which is the nren name every_second_value = every_second_value[1:] @@ -495,7 +487,7 @@ def fetch_nr_connected_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[4][c].value) nr_connected = int(rows[i][c].value) if rows[i][c].value else None @@ -519,7 +511,7 @@ def fetch_market_share_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[7][c].value) percentage_connected = float(rows[i][c].value) if rows[i][c].value else None @@ -545,7 +537,7 @@ def fetch_users_served_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[3][c].value) users_connected = int(rows[i][c].value) if rows[i][c].value else None @@ -569,7 +561,7 @@ def fetch_typical_speed_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[32][c].value) typical_speed = int(rows[i][c].value) if rows[i][c].value else None @@ -595,7 +587,7 @@ def fetch_highest_speed_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[32][c].value) highest_speed = int(rows[i][c].value) if rows[i][c].value else None @@ -621,7 +613,7 @@ def fetch_highest_speed_proportion_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[4][c].value) highest_speed = float(rows[i][c].value) if rows[i][c].value else None @@ -651,7 +643,6 @@ def fetch_carriers_excel_data(): return CarryMechanism.other if "regional" in excel_carrier.lower(): return CarryMechanism.regional_nren_backbone - logger.warning(f'unknown carrier: {excel_carrier}') result = {} @@ -660,7 +651,7 @@ def fetch_carriers_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[2][c].value) carrier = get_carrier(rows[i][c].value) @@ -684,7 +675,7 @@ def fetch_growth_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 11): category = get_category(rows[4][c].value) growth = float(rows[i][c].value) if rows[i][c].value else None @@ -708,7 +699,7 @@ def fetch_average_traffic_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 21, 2): category = get_category(rows[3][c].value) from_inst = int(rows[i][c].value) if rows[i][c].value else None @@ -733,7 +724,7 @@ def fetch_peak_traffic_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) for c in range(start_column + 1, start_column + 21, 2): category = get_category(rows[4][c].value) from_inst = int(rows[i][c].value) if rows[i][c].value else None @@ -757,7 +748,7 @@ def fetch_remote_campuses_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) have_remote = rows[i][start_column + 1].value connectivity = rows[i][start_column + 2].value country = rows[i][start_column + 3].value @@ -788,7 +779,7 @@ def fetch_dark_fibre_iru_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) s = start_column iru = "" if year > 2019: @@ -826,7 +817,7 @@ def fetch_dark_fibre_installed_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) s = start_column if year > 2019: s += 1 @@ -854,8 +845,11 @@ def fetch_iru_duration_excel_data(): nren_name = rows[i][start_column].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) years = rows[i][start_column + 1].value + if isinstance(years, str): + if 'just lease' in years: # mapping invalid answer + years = "0" if not years: continue years = str(years).split(" ")[0].split("+")[0].split("-")[0] @@ -864,7 +858,6 @@ def fetch_iru_duration_excel_data(): try: years = int(years) except ValueError: - logger.warning(f'Invalid iru duration Value :{nren_name} ({year}) with value ({years})') continue result[(nren_name, year)] = years @@ -884,7 +877,7 @@ def fetch_passive_monitoring_excel_data(): nren_name = rows[i][1].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) monitoring = rows[i][start_column].value method = rows[i][start_column + 1].value if monitoring: @@ -911,7 +904,7 @@ def fetch_largest_link_capacity_excel_data(): nren_name = rows[i][5].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) largest_capacity = rows[i][start_column].value if largest_capacity: result[(nren_name, year)] = int(largest_capacity) @@ -936,7 +929,7 @@ def fetch_typical_backbone_capacity_excel_data(): nren_name = rows[i][4].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) typical_capacity = rows[i][start_column].value if typical_capacity: result[(nren_name, year)] = int(typical_capacity) @@ -960,7 +953,7 @@ def fetch_non_r_e_peers_excel_data(): nren_name = rows[i][2].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) nr_peers = rows[i][start_column].value if nr_peers: yield nren_name, year, int(nr_peers) @@ -983,7 +976,7 @@ def fetch_ops_automation_excel_data(): nren_name = rows[i][1].value if not nren_name: continue - nren_name = nren_name.upper() + nren_name = map_nren(nren_name.upper()) automation = rows[i][start_column].value specifics = rows[i][start_column + 1].value or "" if automation: diff --git a/compendium_v2/publishers/helpers.py b/compendium_v2/publishers/helpers.py index f6cbaab57e501dac3764c6a4786f0082b5ea60bc..5c51fa6502896e2f1aaec19efd3aa20405bf07c4 100644 --- a/compendium_v2/publishers/helpers.py +++ b/compendium_v2/publishers/helpers.py @@ -14,6 +14,26 @@ URL_PATTERN = re.compile( ) +def map_nren(nren): + nren_dict = {} + nren_dict['ASNET'] = 'ASNET-AM' + nren_dict['KIFU (NIIF)'] = 'KIFU' + nren_dict['KIFÜ'] = 'KIFU' + nren_dict['NIIF/HUNGARNET'] = 'KIFU' + nren_dict['SURFNET'] = 'SURF' + nren_dict['UOM/RICERKANET'] = 'UNIVERSITY OF MALTA' + nren_dict['UOM'] = 'UNIVERSITY OF MALTA' + nren_dict['UNINETT'] = 'SIKT' + nren_dict['LANET'] = 'LAT' + nren_dict['ANA'] = 'RASH' + nren_dict['ANAS'] = 'AZSCIENCENET' + nren_dict['GRNET S.A.'] = 'GRNET' + nren_dict['FUNET'] = 'CSC' + nren_dict['PIONIER'] = 'PSNC' + nren_dict['PIONEER'] = 'PSNC' + return nren_dict.get((nren or '').upper(), nren) + + def get_uppercase_nren_dict(): """ :return: a dictionary of all known NRENs db entities keyed on the uppercased name diff --git a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy.py b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy.py new file mode 100644 index 0000000000000000000000000000000000000000..33ce1c94a8fe354555e4aff3ac63bf0f61131529 --- /dev/null +++ b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy.py @@ -0,0 +1,139 @@ +import click +from itertools import chain +from collections import defaultdict +from typing import Dict, Any + +import compendium_v2 +from compendium_v2.db import db +from compendium_v2.config import load +from compendium_v2.db.presentation_models import NREN +from compendium_v2.survey_db import model as survey_model +from compendium_v2.db.survey_models import SurveyResponse, Survey, SurveyStatus, ResponseStatus, SurveyNotes +from compendium_v2.publishers.legacy_publisher.survey_publisher_legacy_db import fetch_data as fetch_data_db +from compendium_v2.publishers.legacy_publisher.survey_publisher_legacy_excel import fetch_data as fetch_data_excel + + +def insert_survey_data(survey_2024: Survey, nren: NREN, year: int, answer: Dict[str, Any]): + # we're basing the generated survey on the 2024 survey, so we need to make sure that exists + # before we insert the responses. + survey = db.session.query(Survey).filter(Survey.year == year).first() + if not survey: + survey = Survey( + year=year, + survey=survey_2024.survey, + status=SurveyStatus.published + ) + db.session.add(survey) + else: + # only really necessary for the 2022 survey, which is already in the database. + survey.survey = survey_2024.survey + survey.status = SurveyStatus.published + db.session.add(survey) + response = db.session.query(SurveyResponse).filter(SurveyResponse.survey_year == + year, SurveyResponse.nren_id == nren.id).first() + # add some default values for the survey + answer['page'] = 1 + answer['verification_status'] = {} + if response: + response.answers = answer + db.session.add(response) + else: + response = SurveyResponse( + survey=survey, + survey_year=year, + nren_id=nren.id, + nren=nren, + answers=answer, + status=ResponseStatus.completed + ) + + response_notes = SurveyNotes( + survey=response, + survey_year=year, + nren_id=nren.id, + notes="This survey has been imported by the legacy survey importer. Please review the data for accuracy.", + ) + + db.session.add(response) + db.session.add(response_notes) + db.session.commit() + + +def delete_surveys(): + db.session.query(SurveyNotes).filter(SurveyNotes.survey_year >= 2016, SurveyNotes.survey_year <= 2021).delete() + db.session.query(SurveyResponse).filter(SurveyResponse.survey_year >= + 2016, SurveyResponse.survey_year <= 2021).delete() + db.session.query(Survey).filter(Survey.year >= 2016, Survey.year <= 2021).delete() + db.session.commit() + + +def ensure_string_tree(tree: Dict[str, Any]): + # this function converts all object values to strings (from int, float, etc) + # if we encounter lists or dicts, we recurse into them. + + for key, value in list(tree.items()): + if isinstance(value, dict): + ensure_string_tree(value) + elif isinstance(value, list): + for i, val in list(enumerate(value)): + if isinstance(val, dict): + ensure_string_tree(val) + else: + value[i] = str(val) + else: + if value is None: + del tree[key] + else: + tree[key] = str(value) + return tree + + +@click.command() +@click.option('--config', type=click.STRING, default='config.json') +def cli(config): + app_config = load(open(config, 'r')) + + app_config['SQLALCHEMY_BINDS'] = {survey_model.SURVEY_DB_BIND: app_config['SURVEY_DATABASE_URI']} + + app = compendium_v2._create_app_with_db(app_config) + print("survey-publisher-legacy starting") + with app.app_context(): + survey_2024 = db.session.query(SurveyResponse).filter(SurveyResponse.survey_year == 2024).all() + + data_2024 = [resp.answers['data'] for resp in survey_2024 if 'data' in resp.answers] + + valid_keys_2024_survey = set(chain(*[a.keys() for a in data_2024])) + + nren_map = defaultdict(lambda: defaultdict(lambda: {'data': {}})) + + survey_2022 = db.session.query(SurveyResponse).filter(SurveyResponse.survey_year == 2022).all() + + for resp in survey_2022: + # for the 2022 survey it's already initialized with the data, but it's not always valid. + # initialize the data with the 2022 survey data, and then overwrite it with the import, keeping old data. + nren_map[resp.nren][resp.survey_year]['data'] = resp.answers['data'] + + for data_key, nren, nren_id, year, value in chain(fetch_data_excel(), fetch_data_db()): + if data_key not in valid_keys_2024_survey: + print(f'Invalid data key: {data_key} for NREN: {nren} ({nren_id}) in year {year}') + + # overwrite the data if we have a new value + nren_map[nren][year]['data'][data_key] = value + + # use this to gauge quality of a survey year: + # answers = [len(d['data']) for yearmap in nren_map.values() for year, d in yearmap.items() if year == 2018] + # sum(answers) / len(answers) + delete_surveys() + survey_2024 = db.session.query(Survey).filter(Survey.year == 2024).first() + for nren, years in nren_map.items(): + for year, data in years.items(): + if year < 2016 or year > 2022: + # data before 2016 is very sparse, so don't move it over. + # from 2023 onwards it's all handled by the new survey system. + continue + data = ensure_string_tree(data) + insert_survey_data(survey_2024, nren, year, data) + + +if __name__ == "__main__": + cli() diff --git a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py new file mode 100644 index 0000000000000000000000000000000000000000..8be0e50ff603694bdd2083abe89e9fef70baf5f5 --- /dev/null +++ b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py @@ -0,0 +1,1323 @@ +""" +survey_publisher_old_db_2022 +============================ + +This module loads the survey data from 2022 from the old survey database and returns the data. + +""" +from decimal import Decimal +import logging +import enum +import json +import html +import itertools + +from sqlalchemy import text +from collections import defaultdict + +from compendium_v2.conversion.mapping import CHARGING_LEVELS, CONNECTION, INTERCONNECTION, SERVICE_USER_TYPE_TO_CODE +from compendium_v2.db.presentation_model_enums import CommercialCharges, CommercialConnectivityCoverage, \ + ConnectionMethod, FeeType, ServiceCategory, UserCategory, YesNoPlanned +from compendium_v2.environment import setup_logging +from compendium_v2.publishers.helpers import extract_urls, valid_url +from compendium_v2.survey_db import model as survey_model +from compendium_v2.db import db +from compendium_v2.publishers import helpers +from compendium_v2.conversion import mapping + +setup_logging() + +logger = logging.getLogger('survey-publisher-old-db-2022') + +BUDGET_QUERY = """ +SELECT DISTINCT ON (n.id, a.question_id) + n.abbreviation AS nren, + a.value AS budget +FROM answers a +JOIN nrens n ON a.nren_id = n.id +JOIN questions q ON a.question_id = q.id +JOIN sections s ON q.section_id = s.id +JOIN compendia c ON s.compendium_id = c.id +WHERE + a.question_id = 16402 +AND c.year = 2022 +ORDER BY n.id, a.question_id, a.updated_at DESC +""" + +QUESTION_TEMPLATE_QUERY = """ +SELECT DISTINCT ON (n.id, a.question_id) + n.abbreviation AS nren, + a.value AS value +FROM answers a +JOIN nrens n ON a.nren_id = n.id +JOIN questions q ON a.question_id = q.id +JOIN sections s ON q.section_id = s.id +JOIN compendia c ON s.compendium_id = c.id +WHERE + a.question_id = {} + AND c.year = {} + AND a.value NOT IN ('"NA"', '"N/A"', '[""]', '["-"]', '["/"]') +ORDER BY n.id, a.question_id, a.updated_at DESC +""" + +RECURSIVE_QUERY = """ + WITH RECURSIVE parent_questions AS ( + -- Base case + SELECT q.id, q.equivalent_question_id, c.year, q.title + FROM questions q + JOIN sections s ON q.section_id = s.id + JOIN compendia c ON s.compendium_id = c.id + WHERE q.id = {} + UNION ALL + -- Recursive case + SELECT q.id, q.equivalent_question_id, c.year, q.title + FROM questions q + INNER JOIN parent_questions pq ON q.id = pq.equivalent_question_id + JOIN sections s ON q.section_id = s.id + JOIN compendia c ON s.compendium_id = c.id) + SELECT DISTINCT ON (n.id, answers.question_id) answers.id, + UPPER(n.abbreviation) AS nren, + parent_questions.year, + answers.value as answer + FROM answers + JOIN parent_questions ON answers.question_id = parent_questions.id + JOIN nrens n on answers.nren_id = n.id + WHERE UPPER(answers.value) NOT IN ('"NA"', '"N/A"', '[""]', '["-"]', '["/"]', '/', '["NA"]', '""', '[]', '[n/a]') + ORDER BY n.id, answers.question_id, answers.updated_at DESC; +""" + + +class FundingSource(enum.Enum): + CLIENT_INSTITUTIONS = 16405 + EUROPEAN_FUNDING = 16406 + COMMERCIAL = 16407 + OTHER = 16408 + GOV_PUBLIC_BODIES = 16409 + + +class StaffQuestion(enum.Enum): + """ + Answers are numbers expressed in FTEs (full time equivalents) + """ + PERMANENT_FTE = 16414 + SUBCONTRACTED_FTE = 16413 + TECHNICAL_FTE = 16416 + NON_TECHNICAL_FTE = 16417 + + +class OrgQuestion(enum.Enum): + """ + Answers are strings + """ + PARENT_ORG_NAME = 16419 + + SUB_ORGS_1_NAME = 16422 + SUB_ORGS_1_CHOICE = 16449 + SUB_ORGS_1_ROLE = 16426 + + SUB_ORGS_2_NAME = 16429 + SUB_ORGS_2_CHOICE = 16448 + SUB_ORGS_2_ROLE = 16434 + + SUB_ORGS_3_NAME = 16430 + SUB_ORGS_3_CHOICE = 16446 + SUB_ORGS_3_ROLE = 16435 + + SUB_ORGS_4_NAME = 16432 + SUB_ORGS_4_CHOICE = 16451 + SUB_ORGS_4_ROLE = 16438 + + SUB_ORGS_5_NAME = 16433 + SUB_ORGS_5_CHOICE = 16450 + SUB_ORGS_5_ROLE = 16439 + + +class ECQuestion(enum.Enum): + EC_PROJECT = 16453 + + +class ChargingStructure(enum.Enum): + """ + Answers are strings + """ + charging_structure = 16410 + + +def query_budget(): + return db.session.execute(text(BUDGET_QUERY), bind_arguments={'bind': db.engines[survey_model.SURVEY_DB_BIND]}) + + +def recursive_query(question_id_2022): + assert question_id_2022 + query = RECURSIVE_QUERY.format(question_id_2022) + return db.session.execute(text(query), bind_arguments={'bind': db.engines[survey_model.SURVEY_DB_BIND]}) + + +def query_funding_sources(): + for source in FundingSource: + query = QUESTION_TEMPLATE_QUERY.format(source.value, 2022) + yield source, db.session.execute(text(query), bind_arguments={'bind': db.engines[survey_model.SURVEY_DB_BIND]}) + + +def query_question(question: enum.Enum): + return query_question_id(question.value) + + +def query_question_id(question_id: int, year: int = 2022): + query = QUESTION_TEMPLATE_QUERY.format(question_id, year) + return db.session.execute(text(query), bind_arguments={'bind': db.engines[survey_model.SURVEY_DB_BIND]}) + + +def budget(nren_dict): + rows = query_budget() + for row in rows: + nren_name = row[0].upper() + _budget = row[1] + try: + budget = float(_budget.replace('"', '').replace(',', '')) + except ValueError: + continue + + if nren_name not in nren_dict: + continue + + yield ('budget', nren_dict[nren_name], nren_dict[nren_name].id, 2022, budget) + + +def funding_sources(nren_dict): + sourcedata = {} + for source, data in query_funding_sources(): + for row in data: + nren_name = row[0].upper() + _value = row[1] + try: + value = float(_value.replace('"', '').replace(',', '')) + except ValueError: + value = 0 + + nren_info = sourcedata.setdefault( + nren_name, + {source_type: 0 for source_type in FundingSource} + ) + nren_info[source] = value + + for nren_name, nren_info in sourcedata.items(): + if nren_name not in nren_dict: + continue + + if nren_name == 'HEANET': + nren_info[FundingSource.OTHER] = nren_info[FundingSource.OTHER] + nren_info[FundingSource.COMMERCIAL] + nren_info[FundingSource.COMMERCIAL] = 0 + + data = { + 'client_institutions': nren_info[FundingSource.CLIENT_INSTITUTIONS], + 'european_funding': nren_info[FundingSource.EUROPEAN_FUNDING], + 'commercial': nren_info[FundingSource.COMMERCIAL], + 'other': nren_info[FundingSource.OTHER], + 'gov_public_bodies': nren_info[FundingSource.GOV_PUBLIC_BODIES], + } + + yield ('income_sources', nren_dict[nren_name], nren_dict[nren_name].id, 2022, data) + + +def charging_structure(nren_dict): + rows = query_question(ChargingStructure.charging_structure) + for row in rows: + nren_name = row[0].upper() + value = row[1].replace('"', '').strip() + + if nren_name not in nren_dict: + continue + + if "do not charge" in value: + charging_structure = FeeType.no_charge + elif "combination" in value: + charging_structure = FeeType.combination + elif "flat" in value: + charging_structure = FeeType.flat_fee + elif "usage-based" in value: + charging_structure = FeeType.usage_based_fee + elif "Other" in value: + charging_structure = FeeType.other + else: + charging_structure = None + + if charging_structure: + charging_structure = charging_structure.name + + yield ('charging_mechanism', nren_dict[nren_name], nren_dict[nren_name].id, 2022, charging_structure) + + +def staff_data(nren_dict): + data = {} + for question in StaffQuestion: + rows = query_question(question) + for row in rows: + nren_name = row[0].upper() + _value = row[1] + try: + value = float(_value.replace('"', '').replace(',', '')) + except ValueError: + value = 0 + + if nren_name not in nren_dict: + continue + + # initialize on first use, so we don't add data for nrens with no answers + data.setdefault(nren_name, {question: 0 for question in StaffQuestion})[question] = value + + for nren_name, nren_info in data.items(): + if sum([nren_info[question] for question in StaffQuestion]) == 0: + continue + + staff_type_data = { + 'permanent_fte': nren_info[StaffQuestion.PERMANENT_FTE], + 'subcontracted_fte': nren_info[StaffQuestion.SUBCONTRACTED_FTE], + } + + staff_roles_data = { + 'technical_fte': nren_info[StaffQuestion.TECHNICAL_FTE], + 'non_technical_fte': nren_info[StaffQuestion.NON_TECHNICAL_FTE], + } + + yield ('staff_employment_type', nren_dict[nren_name], nren_dict[nren_name].id, 2022, staff_type_data) + + yield ('staff_roles', nren_dict[nren_name], nren_dict[nren_name].id, 2022, staff_roles_data) + + +def nren_parent_org(nren_dict): + # clean up the data a bit by removing some strings + strings_to_replace = [ + 'We are affiliated to ' + ] + + rows = list(query_question(OrgQuestion.PARENT_ORG_NAME)) + + for row in rows: + nren_name = row[0].upper() + value = str(row[1]).replace('"', '') + + if not value: + continue + + for string in strings_to_replace: + value = value.replace(string, '') + + if nren_name not in nren_dict: + continue + + yield ('parent_organization', nren_dict[nren_name], nren_dict[nren_name].id, 2022, 'Yes') + yield ('parent_organization_name', nren_dict[nren_name], nren_dict[nren_name].id, 2022, value) + + +def nren_sub_org(nren_dict): + suborg_questions = [ + (OrgQuestion.SUB_ORGS_1_NAME, OrgQuestion.SUB_ORGS_1_CHOICE, OrgQuestion.SUB_ORGS_1_ROLE), + (OrgQuestion.SUB_ORGS_2_NAME, OrgQuestion.SUB_ORGS_2_CHOICE, OrgQuestion.SUB_ORGS_2_ROLE), + (OrgQuestion.SUB_ORGS_3_NAME, OrgQuestion.SUB_ORGS_3_CHOICE, OrgQuestion.SUB_ORGS_3_ROLE), + (OrgQuestion.SUB_ORGS_4_NAME, OrgQuestion.SUB_ORGS_4_CHOICE, OrgQuestion.SUB_ORGS_4_ROLE), + (OrgQuestion.SUB_ORGS_5_NAME, OrgQuestion.SUB_ORGS_5_CHOICE, OrgQuestion.SUB_ORGS_5_ROLE) + ] + lookup = defaultdict(list) + + for name, choice, role in suborg_questions: + _name_rows = query_question(name) + _choice_rows = query_question(choice) + _role_rows = list(query_question(role)) + for _name, _choice in zip(_name_rows, _choice_rows): + nren_name = _name[0].upper() + suborg_name = _name[1].replace('"', '').strip() + role_choice = _choice[1].replace('"', '').strip() + + if nren_name not in nren_dict: + continue + + if role_choice.lower() == 'other': + for _role in _role_rows: + if _role[0] == _name[0]: + role = _role[1].replace('"', '').strip() + break + else: + role = role_choice + + if not role: + continue + + lookup[nren_name].append((suborg_name, role)) + + for nren_name, suborgs in lookup.items(): + if suborgs: + yield ('suborganizations', nren_dict[nren_name], nren_dict[nren_name].id, 2022, 'Yes') + + result = [] + for suborg_name, role in suborgs: + result.append({ + 'suborganization_name': suborg_name, + 'suborganization_role': role + }) + + yield ('suborganization_details', nren_dict[nren_name], nren_dict[nren_name].id, 2022, result) + + +def ec_projects(nren_dict): + rows = query_question(ECQuestion.EC_PROJECT) + for row in rows: + nren_name = row[0].upper() + + if nren_name not in nren_dict: + continue + + try: + value = json.loads(row[1]) + except json.decoder.JSONDecodeError: + continue + + has_values = any(value) + + if has_values: + yield ('ec_projects', nren_dict[nren_name], nren_dict[nren_name].id, 2022, "Yes") + + result = [] + + for val in value: + if not val: + continue + + # strip html entities/NBSP from val + val = html.unescape(val).replace('\xa0', ' ') + + # some answers include contract numbers, which we don't want here + val = val.split('(contract n')[0] + result.append(str(val).strip()) + projects = [{'ec_project_name': r} for r in result] + yield ('ec_project_names', nren_dict[nren_name], nren_dict[nren_name].id, 2022, projects) + + +def policies(nren_dict): + """ + Answers are strings that should be urls, but sometimes there's other stuff + like email addresses or random text + """ + + policy_questions = { + 'strategy': {2022: 16469, 2021: 16064, 2020: 15720, 2019: 15305, 2018: 14910}, + 'environment': {2022: 16471, 2021: 16066, 2020: 15722, 2019: 15307, 2018: 14912}, + 'equality': {2022: 16473, 2021: 16378}, + 'connectivity': {2022: 16475, 2021: 16068, 2020: 15724, 2019: 15309, 2018: 14914}, + 'acceptable_use': {2022: 16477, 2021: 16070, 2020: 15726, 2019: 15311, 2018: 14916}, + 'privacy': {2022: 16479, 2021: 16072, 2020: 15728, 2019: 15575}, + 'data_protection': {2022: 16481, 2021: 16074, 2020: 15730, 2019: 15577}, + 'gender': {2022: 16761} + } + + data = {} + for year in [2018, 2019, 2020, 2021, 2022]: + policy_questions_year = {key: years[year] for key, years in policy_questions.items() if year in years} + for question_key, question_id in policy_questions_year.items(): + rows = query_question_id(question_id, year) + for row in rows: + nren_name = row[0].upper() + _value = row[1] + + if nren_name not in nren_dict: + continue + + value = _value.split()[0].strip('"') + + if not value: + continue + + if value.upper() == 'N.A.' or ('.' not in value and '@' not in value): + # this test is a bit silly but does seem to filter out all the nonsense responses + continue + + if _value not in [f'"{value}"', value]: + pass + + # initialize on first use, so we don't add data for nrens with no answers + data.setdefault((nren_name, year), {q: '' for q in policy_questions.keys()}) + data[(nren_name, year)][question_key] = value + + for (nren_name, year), nren_info in data.items(): + + strategy = nren_info['strategy'] + if strategy and not valid_url(strategy): + strategy = '' + environment = nren_info['environment'] + if environment and not valid_url(environment): + environment = '' + equality = nren_info['equality'] + if equality and not valid_url(equality): + equality = '' + connectivity = nren_info['connectivity'] + if connectivity and not valid_url(connectivity): + connectivity = '' + acceptable_use = nren_info['acceptable_use'] + if acceptable_use and not valid_url(acceptable_use): + acceptable_use = '' + privacy = nren_info['privacy'] + if privacy and not valid_url(privacy): + privacy = '' + data_protection = nren_info['data_protection'] + if data_protection and not valid_url(data_protection): + data_protection = '' + gender_equality = nren_info['gender'] + if gender_equality and not valid_url(gender_equality): + gender_equality = '' + + all_policies = [strategy, environment, equality, connectivity, + acceptable_use, privacy, data_protection, gender_equality] + if not any(all_policies): + continue + + if strategy: + yield ('corporate_strategy', nren_dict[nren_name], nren_dict[nren_name].id, year, 'Yes') + yield ('corporate_strategy_url', nren_dict[nren_name], nren_dict[nren_name].id, year, strategy) + + policies = {} + if environment: + policies['environmental_policy'] = { + 'available': ['yes'], + 'url': environment + } + if equality: + policies['equal_opportunity_policy'] = { + 'available': ['yes'], + 'url': equality + } + if connectivity: + policies['connectivity_policy'] = { + 'available': ['yes'], + 'url': connectivity + } + if acceptable_use: + policies['acceptable_use_policy'] = { + 'available': ['yes'], + 'url': acceptable_use + } + if privacy: + policies['privacy_notice'] = { + 'available': ['yes'], + 'url': privacy + } + if data_protection: + policies['data_protection_contact'] = { + 'available': ['yes'], + 'url': data_protection + } + if gender_equality: + policies['gender_equality_policy'] = { + 'available': ['yes'], + 'url': gender_equality + } + + yield ('policies', nren_dict[nren_name], nren_dict[nren_name].id, year, policies) + + +def central_procurement(nren_dict): + + rows = recursive_query(16482) + amounts = recursive_query(16483) + amounts = {(nren_name, year): float(answer.strip('"')) for answer_id, nren_name, year, answer in amounts} + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + yield ('central_software_procurement', nren_dict[nren_name], nren_dict[nren_name].id, year, answer) + + amount = amounts.get((nren_name, year)) + if answer == '"Yes"': + yield ('central_procurement_amount', nren_dict[nren_name], nren_dict[nren_name].id, year, amount) + + +def service_management(nren_dict): + + framework = recursive_query(16484) + framework = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in framework} + targets = recursive_query(16485) + targets = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in targets} + + for nren_name, year in framework.keys() | targets.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + framework_val = framework.get((nren_name, year)) + target_value = targets.get((nren_name, year)) + yield ('formal_service_management_framework', nren, nren.id, year, 'Yes' if framework_val else 'No') + yield ('service_level_targets', nren, nren.id, year, 'Yes' if target_value else 'No') + + +def service_user_types(nren_dict): + + categories = [ + (ServiceCategory.identity, 16488), + (ServiceCategory.network_services, 16489), + (ServiceCategory.collaboration, 16490), + (ServiceCategory.security, 16491), + (ServiceCategory.isp_support, 16492), + (ServiceCategory.storage_and_hosting, 16493), + (ServiceCategory.multimedia, 16494), + (ServiceCategory.professional_services, 16495) + ] + for service_category, question_id in categories: + rows = recursive_query(question_id) + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + service_matrix = defaultdict(dict) + + for user_cat_db in json.loads(answer): + user_cat = UserCategory[SERVICE_USER_TYPE_TO_CODE[user_cat_db]] + service_matrix[user_cat.name].setdefault('service_types', []) + + service_matrix[user_cat.name]['service_types'].append(service_category.name) + + yield ('service_matrix', nren_dict[nren_name], nren_dict[nren_name].id, year, service_matrix) + + +def standards(nren_dict): + + audits = recursive_query(16499) + audits = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in audits} + audit_specifics = recursive_query(16500) + audit_specifics = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in audit_specifics} + bcp = recursive_query(16501) + bcp = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in bcp} + bcp_specifics = recursive_query(16502) + bcp_specifics = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in bcp_specifics} + cmp = recursive_query(16762) + cmp = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in cmp} + + for nren_name, year in audits.keys() | audit_specifics.keys() | bcp.keys() | bcp_specifics.keys() | cmp.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + audit = audits.get((nren_name, year)) + a_specifics = audit_specifics.get((nren_name, year)) + bcp_val = bcp.get((nren_name, year)) + bcp_s_val = bcp_specifics.get((nren_name, year)) + cmp_val = cmp.get((nren_name, year)) + + if all([v is None or v == '' for v in [audit, a_specifics, bcp_val, bcp_s_val, cmp_val]]): + continue + + if audit is not None: + audit = 'Yes' if audit else 'No' + yield ('audits', nren, nren.id, year, audit) + + yield ('audit_specifics', nren, nren.id, year, a_specifics or '') + + if bcp_val is not None: + bcp_val = 'Yes' if bcp_val else 'No' + yield ('business_continuity_plans', nren, nren.id, year, bcp_val) + + yield ('business_continuity_plans_specifics', nren, nren.id, year, bcp_s_val or '') + + if cmp_val is not None: + cmp_val = 'Yes' if cmp_val else 'No' + yield ('crisis_management_procedure', nren, nren.id, year, cmp_val) + + +def crisis_exercises(nren_dict): + + rows = recursive_query(16763) + + crisis_exercises_map = { + "geant_workshops": "We participate in GEANT Crisis workshops such as CLAW", + "national_excercises": "We participated in National crisis exercises ", + "tabletop_exercises": "We run our own tabletop exercises", + "simulation_excercises": "We run our own simulation exercises", + "other_excercises": "We have done/participated in other exercises or trainings", + "real_crisis": "We had a real crisis", + "internal_security_programme": "We run an internal security awareness programme", + "none": "No, we have not done any crisis exercises or trainings", + } + _reversed_map = {v: k for k, v in crisis_exercises_map.items()} + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + descriptions = list(filter(lambda d: bool(d), [_reversed_map.get(desc) for desc in json.loads(answer)])) + + yield ('crisis_exercises', nren_dict[nren_name], nren_dict[nren_name].id, year, descriptions) + + +def security_controls(nren_dict): + + controls_map = { + "anti_virus": "Anti Virus", + "anti_spam": "Anti-Spam", + "firewall": "Firewall", + "ddos_mitigation": "DDoS mitigation", + "monitoring": "Network monitoring", + "ips_ids": "IPS/IDS", + "acl": "ACL", + "segmentation": "Network segmentation", + "integrity_checking": "Integrity checking" + } + + reversed_map = {v: k for k, v in controls_map.items()} + + sc = recursive_query(16503) + sc = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in sc} + sc_other = recursive_query(16504) + sc_other = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in sc_other} + for key, value in sc_other.items(): + if not isinstance(value, list): + sc_other[key] = [value] + + for nren_name, year in sc.keys() | sc_other.keys(): + if year < 2021: # prior to 2022, the mapping is different, use a different data source + continue + + # TODO: import the pre-2022 data from a handmade CSV. + + if nren_name not in nren_dict: + continue + + full_list = sc.get((nren_name, year), []) + other_entries = [e.strip() for e in sc_other.get((nren_name, year), []) + if e.strip() and e.lower() not in ["n/a", "-"]] + other_entry = ", ".join(other_entries) + if other_entry: + full_list.append(other_entry) + if "Other" in full_list: + full_list.remove("Other") + + full_list = list(filter(lambda d: bool(d), [reversed_map.get(control) for control in full_list])) + + if other_entry: + full_list.append('other') + + yield ('security_controls', nren_dict[nren_name], nren_dict[nren_name].id, year, full_list) + if other_entry: + yield ('security_controls-Comment', nren_dict[nren_name], nren_dict[nren_name].id, year, other_entry) + + +def institutions_urls(nren_dict): + + rows = recursive_query(16507) + + for row in rows: + answer_id, nren_name, year, answer = row + if nren_name not in nren_dict: + continue + + urls = extract_urls(text=answer) + + if not urls: + continue + + valid_urls = [] + + for url in urls: + if not valid_url(url): + continue + valid_urls.append(url) + + if not valid_urls: + continue + + connected_sites = [] + for url in valid_urls: + connected_sites.append({'connected_sites_url': url}) + + yield ('connected_sites_lists', nren_dict[nren_name], nren_dict[nren_name].id, year, connected_sites) + + +def commercial_connectivity(nren_dict): + simple_connection = { + key.replace(" ", "").replace("-", "").replace("/", "").lower(): value for key, value in CONNECTION.items() + } + + def get_coverage(db_string): + cleaned_str = db_string.strip('"').replace(" ", "").replace("-", "").replace("/", "").lower() + key = simple_connection[cleaned_str] + return CommercialConnectivityCoverage[key] + + sp = recursive_query(16646) + sp = {(nren_name, year): get_coverage(answer) for answer_id, nren_name, year, answer in sp} + collab = recursive_query(16647) + collab = {(nren_name, year): get_coverage(answer) for answer_id, nren_name, year, answer in collab} + r_e = recursive_query(16648) + r_e = {(nren_name, year): get_coverage(answer) for answer_id, nren_name, year, answer in r_e} + general = recursive_query(16649) + general = {(nren_name, year): get_coverage(answer) for answer_id, nren_name, year, answer in general} + spin_off = recursive_query(16650) + spin_off = {(nren_name, year): get_coverage(answer) for answer_id, nren_name, year, answer in spin_off} + + for nren_name, year in sp.keys() | collab.keys() | r_e.keys() | general.keys() | spin_off.keys(): + if nren_name not in nren_dict: + continue + + commercial_orgs = {} + + commercial_r_e = r_e.get((nren_name, year)) + commercial_general = general.get((nren_name, year)) + commercial_collaboration = collab.get((nren_name, year)) + commercial_service_provider = sp.get((nren_name, year)) + university_spin_off = spin_off.get((nren_name, year)) + + if commercial_r_e: + commercial_orgs['commercial_r_e'] = { + 'connection': commercial_r_e.name + } + if commercial_general: + commercial_orgs['commercial_general'] = { + 'connection': commercial_general.name + } + if commercial_collaboration: + commercial_orgs['commercial_collaboration'] = { + 'connection': commercial_collaboration.name + } + if commercial_service_provider: + commercial_orgs['commercial_service_provider'] = { + 'connection': commercial_service_provider.name + } + if university_spin_off: + commercial_orgs['university_spin_off'] = { + 'connection': university_spin_off.name + } + + yield ('commercial_organizations', nren_dict[nren_name], nren_dict[nren_name].id, year, commercial_orgs) + + +def commercial_charging_level(nren_dict): + + simple_charging = { + key.replace(" ", "").replace("-", "").replace("/", "").lower(): value for key, value in CHARGING_LEVELS.items() + } + simple_charging["nochargesapplied"] = "no_charges_if_r_e_requested" + simple_charging['nochargesappliedifrequestedbyr+eusers\\"needed?'] = "no_charges_if_r_e_requested" + + def get_charging(db_string): + if db_string[0] == '[': + db_string = json.loads(db_string)[0] + cleaned_str = db_string.strip('"').replace(" ", "").replace("-", "").replace("/", "").lower() + key = simple_charging[cleaned_str] + return CommercialCharges[key] + + collab = recursive_query(16652) + collab = {(nren_name, year): get_charging(answer) for answer_id, nren_name, year, answer in collab} + services = recursive_query(16653) + services = {(nren_name, year): get_charging(answer) for answer_id, nren_name, year, answer in services} + peering = recursive_query(16654) + peering = {(nren_name, year): get_charging(answer) for answer_id, nren_name, year, answer in peering} + + for nren_name, year in collab.keys() | services.keys() | peering.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + commercial_charging_levels = {} + + collaboration = collab.get((nren_name, year)) + peer = peering.get((nren_name, year)) + service = services.get((nren_name, year)) + + if collaboration: + commercial_charging_levels['collaboration'] = { + 'charging_level': collaboration.name + } + if peer: + commercial_charging_levels['peering'] = { + 'charging_level': peer.name + } + if service: + commercial_charging_levels['services'] = { + 'charging_level': service.name + } + + yield ('commercial_charging_levels', nren, nren.id, year, commercial_charging_levels) + + +def fibre_light(nren_dict): + comment_map = mapping.VALUE_TO_CODE_MAPPING.get(16668) + + fibre = recursive_query(16668) + fibre = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in fibre} + fibre_comment = recursive_query(16669) + fibre_comment = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in fibre_comment} + + for nren_name, year in fibre.keys() | fibre_comment.keys(): + if nren_name not in nren_dict: + continue + + description = fibre.get((nren_name, year)) + comment = fibre_comment.get((nren_name, year)) + if description and description[0:5] != "Other": + if comment and comment.replace("-", "") != "": + pass # previously used to log comments, just skip them for now + else: + description = comment + + if description: + is_other = description not in comment_map + description = comment_map.get(description, description).replace("\\", "") + if is_other: + yield ('fibre_light', nren_dict[nren_name], nren_dict[nren_name].id, year, "other") + yield ('fibre_light-Comment', nren_dict[nren_name], nren_dict[nren_name].id, year, description) + else: + yield ('fibre_light', nren_dict[nren_name], nren_dict[nren_name].id, year, description) + + +def network_map_urls(nren_dict): + + rows = recursive_query(16670) + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + urls = extract_urls(text=answer) + if not urls: + continue + + network_map_urls = [] + + for url in urls: + network_map_urls.append({'network_map_url': url}) + + yield ('network_map_urls', nren_dict[nren_name], nren_dict[nren_name].id, year, network_map_urls) + + +def monitoring_tools(nren_dict): + description_map = mapping.VALUE_TO_CODE_MAPPING.get(16672) + + tools = recursive_query(16672) + tools = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in tools} + tools_comment = recursive_query(16673) + tools_comment = {(nren_name, year): answer.strip('" ') for answer_id, nren_name, year, answer in tools_comment} + netflow = recursive_query(16674) + netflow = {(nren_name, year): answer.strip('" ') for answer_id, nren_name, year, answer in netflow} + + for nren_name, year in tools.keys() | tools_comment.keys() | netflow.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + tool_descriptions = tools.get((nren_name, year), []) + comment = tools_comment.get((nren_name, year), "").replace("-", "") + if comment: + tool_descriptions.append(comment) + if "Other" in tool_descriptions: + tool_descriptions.remove("Other") + if "Other " in tool_descriptions: + tool_descriptions.remove("Other ") + + monitoring_tools = [] + monitoring_tools_comment = "" + other_tools = [] + + for description in tool_descriptions: + description = description.strip() + if not description: + continue + if description in description_map: + monitoring_tools.append(description_map[description]) + else: + other_tools.append(description) + + if other_tools: + monitoring_tools.append("other") + monitoring_tools_comment = ", ".join(other_tools) + + yield ('monitoring_tools', nren, nren.id, year, monitoring_tools) + + if monitoring_tools_comment: + yield ('monitoring_tools-Comment', nren, nren.id, year, monitoring_tools_comment) + + # netflow processing description + if netflow.get((nren_name, year)): + yield ('netflow_vendors', nren, nren.id, year, netflow.get((nren_name, year))) + + +def traffic_statistics(nren_dict): + + stats = recursive_query(16677) + stat_urls = recursive_query(16678) + stat_urls = {(nren_name, year): answer for answer_id, nren_name, year, answer in stat_urls} + + for answer_id, nren_name, year, answer in stats: + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + db_urls = stat_urls.get((nren_name, year)) + if db_urls: + urls = extract_urls(text=db_urls) + db_urls = urls + else: + db_urls = [] + + valid_urls = [] + for url in db_urls: + if valid_url(url): + valid_urls.append(url) + + if not valid_urls: + continue + + yield ('traffic_statistics', nren, nren.id, year, "Yes") + yield ('traffic_statistics_urls', nren, nren.id, year, [{"traffic_statistics_url": url} for url in valid_urls]) + + +def siem_vendors(nren_dict): + + vendors = recursive_query(16679) + vendors = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in vendors} + vendor_comment = recursive_query(16680) + vendor_comment = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in vendor_comment} + + for nren_name, year in vendors.keys() | vendor_comment.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + vendor_names = vendors.get((nren_name, year), []) + comment = vendor_comment.get((nren_name, year)) + if comment: + vendor_names.remove("Other") + + siem_soc_vendor = [*vendor_names] + siem_soc_vendor_comment = "" + if comment: + siem_soc_vendor.append("other") + siem_soc_vendor_comment = comment + + yield ('siem_soc_vendor', nren, nren.id, year, siem_soc_vendor) + if siem_soc_vendor_comment: + yield ('siem_soc_vendor-Comment', nren, nren.id, year, siem_soc_vendor_comment) + + +def certificate_providers(nren_dict): + + provider_map = mapping.VALUE_TO_CODE_MAPPING.get(16681) + + providers = recursive_query(16681) + providers = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in providers} + prov_comment = recursive_query(16682) + prov_comment = {(nren_name, year): answer.strip('"') for answer_id, nren_name, year, answer in prov_comment} + + for nren_name, year in providers.keys() | prov_comment.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + provider_names = providers.get((nren_name, year), []) + comment = prov_comment.get((nren_name, year)) + if comment: + provider_names.append(comment) + if "Other" in provider_names: + provider_names.remove("Other") + + def _replace_provider(provider): + if 'let' in provider.lower() and 'encrypt' in provider.lower(): + return "Let's Encrypt" + return provider_map.get(provider, provider) + + provider_names = [_replace_provider(p) for p in provider_names] + + certificate_service = [] + certificate_service_comment = [] + + for provider in provider_names: + if provider in provider_map: + certificate_service.append(provider) + else: + if "other" not in certificate_service: + certificate_service.append("other") + certificate_service_comment.append(provider) + + yield ('certificate_service', nren, nren.id, year, certificate_service) + if certificate_service_comment: + yield ('certificate_service-Comment', nren, nren.id, year, ", ".join(certificate_service_comment)) + + +def weather_map(nren_dict): + + weather = recursive_query(16683) + urls = recursive_query(16684) + urls = {(nren_name, year): answer.strip('" ') for answer_id, nren_name, year, answer in urls} + + for answer_id, nren_name, year, answer in weather: + if nren_name not in nren_dict: + continue + + url = urls.get((nren_name, year), "") + if url: + found_urls = extract_urls(text=url) + if found_urls: + url = found_urls[0] + else: + url = "" + + valid = valid_url(url) + + if not valid: + continue + + yield ('network_weather', nren_dict[nren_name], nren_dict[nren_name].id, year, "Yes") + yield ('network_weather_url', nren_dict[nren_name], nren_dict[nren_name].id, year, url) + + +def pert_team(nren_dict): + + rows = recursive_query(16685) + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + if answer == "null": + continue + pert = YesNoPlanned[answer.strip('"').lower()] + + pert = pert.name[0].upper() + pert.name[1:] + + yield ('pert_team', nren_dict[nren_name], nren_dict[nren_name].id, year, pert) + + +def alien_wave(nren_dict): + + alien = recursive_query(16687) + alien = { + (nren_name, year): YesNoPlanned[answer.strip('"').lower()] for answer_id, nren_name, year, answer in alien + } + nr = recursive_query(16688) + nr = {(nren_name, year): int(answer.strip('"')) for answer_id, nren_name, year, answer in nr} + internal = recursive_query(16689) + internal = {(nren_name, year): answer == '"Yes"' for answer_id, nren_name, year, answer in internal} + + for nren_name, year in alien.keys() | nr.keys() | internal.keys(): + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + alien_wave_third_party = alien.get((nren_name, year)) + nr_of_alien_wave_third_party_services = nr.get((nren_name, year)) + alien_wave_internal = internal.get((nren_name, year)) + + if alien_wave_third_party or nr_of_alien_wave_third_party_services is not None: + name = (alien_wave_third_party or YesNoPlanned.yes).name # default to yes if there's services, but no flag + name = name[0].upper() + name[1:] + yield ('alienwave_services', nren, nren.id, year, name) + + if nr_of_alien_wave_third_party_services is not None: + yield ('alienwave_services_number', nren, nren.id, year, nr_of_alien_wave_third_party_services) + + if alien_wave_internal: + yield ('alienwave_internal', nren, nren.id, year, "Yes") + + +def external_connections(nren_dict): + + question_nrs = { + 16694: (5, "capacity"), + 16695: (7, "capacity"), + 16696: (6, "capacity"), + 16697: (7, "from_organization"), + 16698: (1, "to_organization"), + 16699: (8, "to_organization"), + 16700: (9, "to_organization"), + 16701: (1, "from_organization"), + 16702: (8, "capacity"), + 16703: (5, "to_organization"), + 16704: (0, "link_name"), + 16705: (1, "link_name"), + 16706: (9, "capacity"), + 16707: (2, "link_name"), + 16708: (0, "from_organization"), + 16709: (4, "link_name"), + 16710: (3, "link_name"), + 16711: (9, "link_name"), + 16712: (7, "link_name"), + 16713: (8, "link_name"), + 16714: (6, "link_name"), + 16715: (5, "link_name"), + 16716: (4, "from_organization"), + 16717: (5, "from_organization"), + 16718: (6, "from_organization"), + 16719: (2, "to_organization"), + 16720: (3, "to_organization"), + 16721: (4, "to_organization"), + 16722: (6, "to_organization"), + 16723: (7, "to_organization"), + 16724: (2, "interconnection_method"), + 16725: (3, "interconnection_method"), + 16726: (4, "interconnection_method"), + 16727: (5, "interconnection_method"), + 16728: (8, "from_organization"), + 16729: (9, "from_organization"), + 16730: (0, "to_organization"), + 16731: (0, "capacity"), + 16732: (1, "capacity"), + 16733: (2, "capacity"), + 16734: (3, "capacity"), + 16735: (4, "capacity"), + 16736: (3, "from_organization"), + 16737: (2, "from_organization"), + 16738: (1, "interconnection_method"), + 16739: (7, "interconnection_method"), + 16740: (8, "interconnection_method"), + 16741: (0, "interconnection_method"), + 16742: (9, "interconnection_method"), + 16743: (6, "interconnection_method") + } + + connection_dicts = {} + nren_year_set = set() + for question_id, (connection_nr, field) in question_nrs.items(): + rows = recursive_query(question_id) + for answer_id, nren_name, year, answer in rows: + nren_year_set.add((nren_name, year)) + conn_dict = connection_dicts.setdefault((nren_name, year, connection_nr), {}) + conn_dict[field] = answer.strip('" ') + + int_simple = {key.replace(" ", "").lower(): value for key, value in INTERCONNECTION.items()} + int_simple['openexchangepoi'] = "open_exchange" + + for conn_dict in connection_dicts.values(): + if conn_dict.get('capacity'): + try: + conn_dict['capacity'] = str(Decimal(conn_dict['capacity'].split('G')[0].strip())) + except: # noqa: E722 + # Capacity could not be converted to a number + conn_dict['capacity'] = None + if conn_dict.get('interconnection_method'): + int_conn = int_simple[conn_dict['interconnection_method'].replace(" ", "").lower()] + conn_dict['interconnection_method'] = ConnectionMethod[int_conn].name + + for nren_name, year in nren_year_set: + if nren_name not in nren_dict: + continue + + connections = [] + for connection_nr in range(0, 10): + conn = connection_dicts.get((nren_name, year, connection_nr)) + if conn: + connections.append(conn) + + yield ('external_connections', nren_dict[nren_name], nren_dict[nren_name].id, year, connections) + + +def network_automation(nren_dict): + + network_automation_map = mapping.VALUE_TO_CODE_MAPPING.get(16758) + + rows = recursive_query(16757) + tasks = recursive_query(16758) + tasks = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in tasks} + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + network_automation = YesNoPlanned[answer.strip('"').lower()] + specifics = tasks.get((nren_name, year), []) + + network_automation_tasks = [] + + for task in specifics: + if task in network_automation_map: + # we don't allow "other" in the tasks in the survey, so only map the known tasks + network_automation_tasks.append(network_automation_map[task]) + name = network_automation.name + name = name[0].upper() + name[1:] + yield ('network_automation', nren, nren.id, year, name) + + yield ('network_automation_tasks', nren, nren.id, year, network_automation_tasks) + + +def network_function_virtualisation(nren_dict): + + nfv_map = mapping.VALUE_TO_CODE_MAPPING.get(16755) + rows = recursive_query(16754) + types = recursive_query(16755) + types = {(nren_name, year): json.loads(answer) for answer_id, nren_name, year, answer in types} + types_comment = recursive_query(16756) + types_comment = {(nren_name, year): answer.strip('" ') for answer_id, nren_name, year, answer in types_comment} + + for answer_id, nren_name, year, answer in rows: + if nren_name not in nren_dict: + continue + + nren = nren_dict[nren_name] + + nfv = YesNoPlanned[answer.strip('"').lower()] + nfv = nfv.name[0].upper() + nfv.name[1:] + specifics = types.get((nren_name, year), []) + specifics = list(itertools.chain(*[s.split(', ') for s in specifics if s])) + comment = types_comment.get((nren_name, year), "").replace("-", "") + if comment: + specifics.append(comment) + if "Other" in specifics: + specifics.remove("Other") + + nfv_types = [] + nfv_types_comment = [] + for task in specifics: + if task in nfv_map: + nfv_types.append(nfv_map.get(task)) + else: + nfv_types_comment.append(task) + if "other" not in nfv_types: + nfv_types.append("other") + + yield ('nfv', nren, nren.id, year, nfv) + + if nfv_types: + yield ('nfv_types', nren, nren.id, year, nfv_types) + + if nfv_types_comment: + yield ('nfv_types-Comment', nren, nren.id, year, ", ".join(nfv_types_comment)) + + +def fetch_data(): + # requires being in a flask app context when called + nren_dict = helpers.get_uppercase_nren_dict() + yield from budget(nren_dict) + yield from funding_sources(nren_dict) + yield from staff_data(nren_dict) + yield from nren_parent_org(nren_dict) + yield from nren_sub_org(nren_dict) + yield from charging_structure(nren_dict) + yield from ec_projects(nren_dict) + yield from policies(nren_dict) + yield from institutions_urls(nren_dict) + + yield from central_procurement(nren_dict) + yield from service_management(nren_dict) + yield from service_user_types(nren_dict) + yield from standards(nren_dict) + yield from crisis_exercises(nren_dict) + yield from security_controls(nren_dict) + yield from commercial_connectivity(nren_dict) + yield from commercial_charging_level(nren_dict) + + yield from fibre_light(nren_dict) + yield from network_map_urls(nren_dict) + yield from monitoring_tools(nren_dict) + yield from traffic_statistics(nren_dict) + yield from siem_vendors(nren_dict) + yield from certificate_providers(nren_dict) + yield from weather_map(nren_dict) + yield from pert_team(nren_dict) + yield from alien_wave(nren_dict) + yield from external_connections(nren_dict) + yield from network_function_virtualisation(nren_dict) + yield from network_automation(nren_dict) diff --git a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py new file mode 100644 index 0000000000000000000000000000000000000000..f0b817d0084d127582cb8c5f3607387b6576f541 --- /dev/null +++ b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py @@ -0,0 +1,542 @@ +""" +survey_publisher_v1 +========================= + +This module loads the survey data from before 2022 from a legacy Excel files. +Missing info is filled in from the survey db for some questions. +Registered as click cli command when installing compendium-v2. + +""" +from __future__ import annotations +import itertools +from sqlalchemy import select +from collections import defaultdict + +from compendium_v2.db import db +from compendium_v2.publishers import helpers, excel_parser +from compendium_v2.survey_db import model as survey_model + + +def budget(nren_dict): + nren_by_id = {nren.id: nren for nren in nren_dict.values()} + data = db.session.scalars(select(survey_model.Nrens)) + inserts = defaultdict(dict) + for nren in data: + for budget in nren.budgets: + abbrev = nren.abbreviation.upper() + year = budget.year + + if abbrev not in nren_dict: + continue + + budget_entry = { + 'nren': nren_dict[helpers.map_nren(abbrev)], + 'nren_id': nren_dict[helpers.map_nren(abbrev)].id, + 'budget': float(budget.budget), + 'year': year + } + inserts[nren_dict[helpers.map_nren(abbrev)].id][year] = budget_entry + + # Import the data from excel sheet to database + exceldata = excel_parser.fetch_budget_excel_data() + + for abbrev, budget, year in exceldata: + if abbrev not in nren_dict: + continue + + budget_entry = { + 'nren': nren_dict[helpers.map_nren(abbrev)], + 'nren_id': nren_dict[helpers.map_nren(abbrev)].id, + 'budget': budget, + 'year': year + } + inserts[nren_dict[helpers.map_nren(abbrev)].id][year] = budget_entry + + for nren_id, year_data in inserts.items(): + for year, budget_entry in year_data.items(): + nren = nren_by_id[nren_id] + yield ('budget', nren, nren.id, year, budget_entry['budget']) + + +def funding(nren_dict): + data = excel_parser.fetch_funding_excel_data() + for (abbrev, year, client_institution, + european_funding, + gov_public_bodies, + commercial, other) in data: + + if abbrev not in nren_dict: + continue + + _data = { + 'client_institutions': client_institution, + 'european_funding': european_funding, + 'commercial': commercial, + 'other': other, + 'gov_public_bodies': gov_public_bodies, + } + + nren = nren_dict[helpers.map_nren(abbrev)] + + if sum(_data.values()) == 0: + continue + + yield ('income_sources', nren, nren.id, year, _data) + + +def charging_structure(nren_dict): + data = excel_parser.fetch_charging_structure_excel_data() + + for (abbrev, year, charging_structure) in data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + if charging_structure: + charging_structure = charging_structure.name + + yield ('charging_mechanism', nren, nren.id, year, charging_structure) + + +def staffing(nren_dict): + staff_data = list(excel_parser.fetch_staffing_excel_data()) + + nren_staff_map = {} + for (abbrev, year, permanent_fte, subcontracted_fte) in staff_data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + nren_staff_map[(nren.id, year)] = { + 'nren': nren, + 'nren_id': nren.id, + 'year': year, + 'permanent_fte': permanent_fte, + 'subcontracted_fte': subcontracted_fte, + 'technical_fte': 0, + 'non_technical_fte': 0 + } + + function_data = excel_parser.fetch_staff_function_excel_data() + for (abbrev, year, technical_fte, non_technical_fte) in function_data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + if (nren.id, year) in nren_staff_map: + nren_staff_map[(nren.id, year)]['technical_fte'] = technical_fte + nren_staff_map[(nren.id, year)]['non_technical_fte'] = non_technical_fte + else: + nren_staff_map[(nren.id, year)] = { + 'nren': nren, + 'nren_id': nren.id, + 'year': year, + 'permanent_fte': 0, + 'subcontracted_fte': 0, + 'technical_fte': technical_fte, + 'non_technical_fte': non_technical_fte + } + + for nren_staff_model in nren_staff_map.values(): + + nren = nren_staff_model['nren'] + year = nren_staff_model['year'] + staff_type_data = { + 'permanent_fte': nren_staff_model['permanent_fte'], + 'subcontracted_fte': nren_staff_model['subcontracted_fte'], + } + + staff_roles_data = { + 'technical_fte': nren_staff_model['technical_fte'], + 'nontechnical_fte': nren_staff_model['non_technical_fte'], + } + + yield ('staff_employment_type', nren, nren.id, year, staff_type_data) + + yield ('staff_roles', nren, nren.id, year, staff_roles_data) + + +def ecprojects(nren_dict): + ecproject_data = excel_parser.fetch_ecproject_excel_data() + + by_nren_year = defaultdict(lambda: defaultdict(set)) + for (abbrev, year, project) in ecproject_data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + by_nren_year[nren][year].add(project) + + for nren, year_projects in by_nren_year.items(): + for year, projects in year_projects.items(): + projects = [{'ec_project_name': project} for project in projects] + yield ('ec_project_names', nren, nren.id, year, projects) + + +def parent_organizations(nren_dict): + organization_data = excel_parser.fetch_organization_excel_data() + for (abbrev, year, org) in organization_data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + yield ('parent_organization', nren, nren.id, year, 'Yes') + yield ('parent_organization_name', nren, nren.id, year, org) + + +def traffic_volume(nren_dict): + traffic_data = excel_parser.fetch_traffic_excel_data() + for (abbrev, year, from_external, to_external, from_customers, to_customers) in traffic_data: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + if nren.name == 'CESNET': + # COMP-447: correct CESNET traffic data for 2019 + if year == 2019: + to_customers = 222766 + + yield ('traffic_estimate', nren, nren.id, year, { + 'from_customers': from_customers, + 'from_external': from_external, + 'to_customers': to_customers, + 'to_external': to_external + }) + + +def connected_proportion(nren_dict): + remit = excel_parser.fetch_remit_excel_data() + nr_connected = excel_parser.fetch_nr_connected_excel_data() + market_share = excel_parser.fetch_market_share_excel_data() + users_served = excel_parser.fetch_users_served_excel_data() + + data_by_nren = defaultdict(lambda: defaultdict(dict)) + + for key in itertools.chain(remit.keys(), nr_connected.keys(), market_share.keys(), users_served.keys()): + (abbrev, year, user_category) = key + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + covered = remit.get(key) + if covered: + covered = covered.name + market_share_percentage = market_share.get(key) + _nr_connected = nr_connected.get(key) + nr_of_users = users_served.get(key) + + result = {} + if covered: + result['covered'] = covered + if market_share_percentage: + result['market_share_percentage'] = market_share_percentage + if _nr_connected: + result['nr_connected'] = _nr_connected + if nr_of_users: + result['nr_of_users'] = nr_of_users + + existing = data_by_nren[nren][year].get(user_category) + if existing: + existing.update(result) + else: + data_by_nren[nren][year][user_category] = result + + for nren, data in data_by_nren.items(): + for year, category_data in data.items(): + connectivity_proportions = {} + for user_category, user_data in category_data.items(): + connectivity_proportions[user_category.name] = user_data + + yield ('connectivity_proportions', nren, nren.id, year, connectivity_proportions) + + +def connectivity_level(nren_dict): + typical_speeds = excel_parser.fetch_typical_speed_excel_data() + highest_speeds = excel_parser.fetch_highest_speed_excel_data() + highest_speed_proportions = excel_parser.fetch_highest_speed_proportion_excel_data() + data_by_nren = defaultdict(lambda: defaultdict(dict)) + + for key in itertools.chain(typical_speeds.keys(), highest_speeds.keys(), highest_speed_proportions.keys()): + (abbrev, year, user_category) = key + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + typical_speed = typical_speeds.get(key) + highest_speed = highest_speeds.get(key) + highest_speed_connection_percentage = highest_speed_proportions.get(key) + + result = {} + if typical_speed: + result['typical_speed'] = typical_speed + if highest_speed: + result['highest_speed'] = highest_speed + if highest_speed_connection_percentage: + result['highest_speed_connection_percentage'] = highest_speed_connection_percentage + + existing = data_by_nren[nren][year].get(user_category) + if existing: + existing.update(result) + else: + data_by_nren[nren][year][user_category] = result + + for nren, data in data_by_nren.items(): + for year, category_data in data.items(): + connectivity_level = {} + for user_category, user_data in category_data.items(): + connectivity_level[user_category.name] = user_data + yield ('connectivity_level', nren, nren.id, year, connectivity_level) + + +def connection_carrier(nren_dict): + carriers = excel_parser.fetch_carriers_excel_data() + data_by_nren = defaultdict(lambda: defaultdict(dict)) + + for key, carry_mechanism in carriers.items(): + (abbrev, year, user_category) = key + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + result = {} + if carry_mechanism: + result['carry_mechanism'] = carry_mechanism.name + + existing = data_by_nren[nren][year].get(user_category) + if existing: + existing.update(result) + else: + data_by_nren[nren][year][user_category] = result + + for nren, data in data_by_nren.items(): + for year, category_data in data.items(): + traffic_carriers = {} + for user_category, user_data in category_data.items(): + traffic_carriers[user_category.name] = user_data + yield ('traffic_carriers', nren, nren.id, year, traffic_carriers) + + +def connectivity_growth(nren_dict): + growth = excel_parser.fetch_growth_excel_data() + data_by_nren = defaultdict(lambda: defaultdict(dict)) + for key, growth_percent in growth.items(): + (abbrev, year, user_category) = key + if abbrev not in nren_dict: + continue + nren = nren_dict[helpers.map_nren(abbrev)] + + result = {} + if growth_percent: + result['growth_rate'] = growth_percent + + existing = data_by_nren[nren][year].get(user_category) + if existing: + existing.update(result) + else: + data_by_nren[nren][year][user_category] = result + + for nren, data in data_by_nren.items(): + for year, category_data in data.items(): + traffic_growth = {} + for user_category, user_data in category_data.items(): + traffic_growth[user_category.name] = user_data + yield ('traffic_growth', nren, nren.id, year, traffic_growth) + + +def connectivity_load(nren_dict): + averages = excel_parser.fetch_average_traffic_excel_data() + peaks = excel_parser.fetch_peak_traffic_excel_data() + + all_entry_keys = set() + all_entry_keys.update(averages.keys()) + all_entry_keys.update(peaks.keys()) + data_by_nren = defaultdict(lambda: defaultdict(dict)) + for key in all_entry_keys: + (abbrev, year, user_category) = key + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + result = {} + average = averages.get(key, (None, None)) + peak = peaks.get(key, (None, None)) + average_from_institutions_to_network = average[0] + average_to_institutions_from_network = average[1] + peak_from_institutions_to_network = peak[0] + peak_to_institutions_from_network = peak[1] + + if average_from_institutions_to_network is not None: + result['average_from_institutions_to_network'] = average_from_institutions_to_network + if average_to_institutions_from_network is not None: + result['average_to_institutions_from_network'] = average_to_institutions_from_network + if peak_from_institutions_to_network is not None: + result['peak_from_institutions_to_network'] = peak_from_institutions_to_network + if peak_to_institutions_from_network is not None: + result['peak_to_institutions_from_network'] = peak_to_institutions_from_network + + existing = data_by_nren[nren][year].get(user_category) + if existing: + existing.update(result) + else: + data_by_nren[nren][year][user_category] = result + + for nren, data in data_by_nren.items(): + for year, category_data in data.items(): + traffic_load = {} + for user_category, user_data in category_data.items(): + traffic_load[user_category.name] = user_data + yield ('traffic_load', nren, nren.id, year, traffic_load) + + +def remote_campuses(nren_dict): + campuses = excel_parser.fetch_remote_campuses_excel_data() + + for (abbrev, year, connectivity, country, connected_to_r_e) in campuses: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + yield ('remote_campuses', nren, nren.id, year, "Yes" if connectivity else "No") + if country: + yield ('remote_campuses_specifics', nren, nren.id, year, [ + {'country': country, 'connected': 'Yes' if connected_to_r_e else 'No'} + ]) + + +def dark_fibre_lease(nren_dict): + data_rows = excel_parser.fetch_dark_fibre_iru_excel_data() + iru_durations = excel_parser.fetch_iru_duration_excel_data() + + for (abbrev, year, iru, length_in_country, length_out_country) in data_rows: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + dark_fibre_lease = iru + dark_fibre_lease_duration = iru_durations.get((helpers.map_nren(abbrev), year)) + + yield ('dark_fibre_lease', nren, nren.id, year, "Yes" if dark_fibre_lease else "No") + + if dark_fibre_lease_duration is not None: + yield ('dark_fibre_lease_duration', nren, nren.id, year, dark_fibre_lease_duration) + if length_in_country is not None: + yield ('dark_fibre_lease_kilometers_inside_country', nren, nren.id, year, length_in_country) + if length_out_country is not None: + yield ('dark_fibre_lease_kilometers_outside_country', nren, nren.id, year, length_out_country) + + +def dark_fibre_installed(nren_dict): + data_rows = excel_parser.fetch_dark_fibre_installed_excel_data() + for (abbrev, year, installed, length) in data_rows: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + yield ('dark_fibre_nren', nren, nren.id, year, "Yes" if installed else "No") + yield ('dark_fibre_nren_kilometers_inside_country', nren, nren.id, year, length) + + +def passive_monitoring(nren_dict): + data_rows = excel_parser.fetch_passive_monitoring_excel_data() + for (abbrev, year, monitoring, method) in data_rows: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + if monitoring or method: + yield ('passive_monitoring', nren, nren.id, year, "Yes") + if method: + yield ('passive_monitoring_tech', nren, nren.id, year, method.name) + + +def capacity(nren_dict): + largest_data_rows = excel_parser.fetch_largest_link_capacity_excel_data() + typical_data_rows = excel_parser.fetch_typical_backbone_capacity_excel_data() + + by_nren = defaultdict(dict) + + for key in itertools.chain(largest_data_rows.keys(), typical_data_rows.keys()): + (abbrev, year) = key + if abbrev not in nren_dict: + continue + + to_add = (abbrev, year) + by_nren[to_add].update({ + 'max_capacity': largest_data_rows.get(key, by_nren[to_add].get('max_capacity')), + 'typical_capacity': typical_data_rows.get(key, by_nren[to_add].get('typical_capacity')) + }) + + for (abbrev, year), data in by_nren.items(): + max_capacity = data.get('max_capacity') + typical_capacity = data.get('typical_capacity') + + nren = nren_dict[helpers.map_nren(abbrev)] + + if max_capacity: + yield ('max_capacity', nren, nren.id, year, max_capacity) + if typical_capacity: + yield ('typical_capacity', nren, nren.id, year, typical_capacity) + + +def non_r_e_peers(nren_dict): + data_rows = excel_parser.fetch_non_r_e_peers_excel_data() + for (abbrev, year, nr_of_non_r_and_e_peers) in data_rows: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + if nr_of_non_r_and_e_peers: + yield ('non_r_and_e_peers', nren, nren.id, year, nr_of_non_r_and_e_peers) + + +def ops_automation(nren_dict): + data_rows = excel_parser.fetch_ops_automation_excel_data() + for (abbrev, year, automation, specifics) in data_rows: + if abbrev not in nren_dict: + continue + + nren = nren_dict[helpers.map_nren(abbrev)] + + if automation: + name = automation.name[0].upper() + automation.name[1:] + yield ('operational_process_automation', nren, nren.id, year, name) + + if specifics: + yield ('operational_process_automation_tools', nren, nren.id, year, specifics) + + +def fetch_data(): + # requires being in a flask app context when called + nren_dict = helpers.get_uppercase_nren_dict() + yield from budget(nren_dict) + yield from funding(nren_dict) + yield from charging_structure(nren_dict) + yield from staffing(nren_dict) + yield from ecprojects(nren_dict) + yield from parent_organizations(nren_dict) + yield from traffic_volume(nren_dict) + + yield from connected_proportion(nren_dict) + yield from connectivity_level(nren_dict) + yield from connection_carrier(nren_dict) + yield from connectivity_growth(nren_dict) + yield from connectivity_load(nren_dict) + yield from remote_campuses(nren_dict) + + yield from dark_fibre_lease(nren_dict) + yield from dark_fibre_installed(nren_dict) + yield from passive_monitoring(nren_dict) + yield from capacity(nren_dict) + yield from non_r_e_peers(nren_dict) + yield from ops_automation(nren_dict) diff --git a/compendium_v2/publishers/survey_publisher.py b/compendium_v2/publishers/survey_publisher.py index 22e6c35782665fb064d27f3bd534915b8ba9b18e..657f80b5a49586fa39ce42f6452ca639feecd68f 100644 --- a/compendium_v2/publishers/survey_publisher.py +++ b/compendium_v2/publishers/survey_publisher.py @@ -9,16 +9,252 @@ Usage: Used in publish_survey API in compendium_v2/routes/survey.py """ +import json +import logging + from typing import Sequence, Dict, Any from sqlalchemy import select, delete - +from enum import Enum +from decimal import Decimal from compendium_v2.db import db from compendium_v2.db.survey_models import ResponseStatus, SurveyResponse from compendium_v2.publishers.year.map_2023 import map_2023 from compendium_v2.publishers.year.map_2024 import map_2024 -from compendium_v2.db.presentation_models import PresentationModel +from compendium_v2.db.presentation_models import ( + PresentationModel, + AlienWave, + BudgetEntry, + Capacity, + CentralProcurement, + CertificateProviders, + ChargingStructure, + CommercialChargingLevel, + CommercialConnectivity, + ConnectedProportion, + ConnectionCarrier, + ConnectivityGrowth, + ConnectivityLevel, + ConnectivityLoad, + CrisisExercises, + DarkFibreInstalled, + DarkFibreLease, + ECProject, + EOSCListings, + ExternalConnections, + FibreLight, + FundingSource, + InstitutionURLs, + MonitoringTools, + NetworkAutomation, + NetworkFunctionVirtualisation, + NetworkMapUrls, + NonREPeers, + NREN, + NRENService, + NrenStaff, + OpsAutomation, + ParentOrganization, + PassiveMonitoring, + PertTeam, + Policy, + RemoteCampuses, + SecurityControls, + ServiceManagement, + ServiceUserTypes, + SiemVendors, + Standards, + SubOrganization, + TrafficRatio, + TrafficStatistics, + TrafficVolume, + WeatherMap, +) +from compendium_v2.publishers.utils import redirect_stdout + +logger = logging.getLogger(__name__) + + +def do_comparison(data, year): + models = [ + AlienWave, + BudgetEntry, + Capacity, + CentralProcurement, + CertificateProviders, + ChargingStructure, + CommercialChargingLevel, + CommercialConnectivity, + ConnectedProportion, + ConnectionCarrier, + ConnectivityGrowth, + ConnectivityLevel, + ConnectivityLoad, + CrisisExercises, + DarkFibreInstalled, + DarkFibreLease, + ECProject, + EOSCListings, + ExternalConnections, + FibreLight, + FundingSource, + InstitutionURLs, + MonitoringTools, + NetworkAutomation, + NetworkFunctionVirtualisation, + NetworkMapUrls, + NonREPeers, + NREN, + NRENService, + NrenStaff, + OpsAutomation, + ParentOrganization, + PassiveMonitoring, + PertTeam, + Policy, + RemoteCampuses, + SecurityControls, + ServiceManagement, + ServiceUserTypes, + SiemVendors, + Standards, + SubOrganization, + TrafficRatio, + TrafficStatistics, + TrafficVolume, + WeatherMap + ] + + all_models = [model for model in models if model.__name__ not in ['NREN', 'NRENService', 'Service']] + + def convert_to_simple(row): + if isinstance(row, dict): + new_dict = {} + for key, val in row.items(): + new_dict[key] = convert_to_simple(val) + return new_dict + + if isinstance(row, list): + return [convert_to_simple(v) for v in row] + + # convert to simple types for comparison + if isinstance(row, Enum): + return row.value + if isinstance(row, Decimal): + return float(row) + return row + + def get_difference(has_user_category, has_service_key, existing, new): + """ + This function compares the existing data with the new data and returns the differences. + Whitespace changes are ignored. + """ + + equal = True + + def _not_equal(v1, v2): + nonlocal equal + + if isinstance(v1, str): + v1 = v1.strip() + if isinstance(v2, str): + v2 = v2.strip() + both_equal = v1 == v2 + equal = equal and both_equal + return not both_equal + + if has_user_category: + differences = {k: (existing.get(k), '->', v) for k, v in new.items() if _not_equal(existing.get(k), v) + and existing.get('user_category') == new['user_category']} + elif has_service_key: + differences = {k: (existing.get(k), '->', v) for k, v in new.items() + if _not_equal(existing.get(k), v) and existing.get('service_key') == new['service_key']} + else: + differences = {k: (existing.get(k), '->', v) for k, v in new.items() if _not_equal(existing.get(k), v)} + + return equal, differences + + # compare existing data for year with new data + for model, rows in list(data.items()): + if model not in models: + raise ValueError(f"Model {model.__name__} not found in list of models for comparison, new model?") + all_models = [m for m in all_models if m.__name__ != model.__name__] + not_found = [] + existing_data = db.session.scalars(select(model).where(model.year == year)).unique().all() + existing_dicts = [] + + for row in existing_data: + if model in [ExternalConnections]: + values = row.compare_dict() + else: + values = row.__dict__.copy() + for key, value in list(values.items()): + if key in ['_sa_instance_state', 'nren', 'nren_country']: + values.pop(key) + continue + if isinstance(value, db.Model): + values.pop(key) + + values = convert_to_simple(values) + existing_dicts.append(values) + + if existing_data: + # compare existing data with new data + for row in rows: + row = convert_to_simple(row) + nren_id = row['nren_id'] + has_user_category = 'user_category' in row + has_service_key = 'service_key' in row + + if has_user_category: + existing = next( + (r for r in existing_dicts if r['nren_id'] == nren_id + and r['user_category'] == row['user_category']), None) + elif has_service_key: + existing = next( + (r for r in existing_dicts if r['nren_id'] == nren_id + and r['service_key'] == row['service_key']), None) + elif model in [ECProject]: + # workaround for ecprojects not being a list, but individual instances per value + existing = next((r for r in existing_dicts if r['nren_id'] == nren_id + and r['project'] == row['project']), None) + else: + existing = next((r for r in existing_dicts if r['nren_id'] == nren_id), None) + + if row == existing: + existing_dicts.remove(existing) + continue + + if existing is None: + not_found.append(row) + continue + + equal, differences = get_difference(has_user_category, has_service_key, existing, row) + + if differences: + print(f"Data for {model.__name__} for year {year} is different for NREN {nren_id}: {differences}") + if equal or differences: + existing_dicts.remove(existing) + + if not_found and len(not_found) != len(existing_dicts): + print("====================================================") + print(f"New data found for {model.__name__} for year {year}") + print(json.dumps(not_found, indent=2)) + print("====================================================") + if existing_dicts and len(not_found) != len(existing_dicts): + print("====================================================") + print(f"Data missing for {model.__name__} for year {year}") + print(json.dumps(existing_dicts, indent=2)) + print("====================================================") + + if not not_found and not existing_dicts: + print(f"Data matches for {model.__name__} for year {year}") + + for _model in all_models: + has_year_data = db.session.scalars(select(_model).where(_model.year == year)).unique().all() + if has_year_data: + print(f"Data not processed for {_model.__name__} for year {year}") def save_data(year: int, data: Dict[PresentationModel, Sequence[Dict[str, Any]]]): @@ -33,13 +269,20 @@ def save_data(year: int, data: Dict[PresentationModel, Sequence[Dict[str, Any]]] db.session.commit() -def publish(year): +def publish(year, dry_run=False): responses = db.session.scalars( select(SurveyResponse).where(SurveyResponse.survey_year == year) .where(SurveyResponse.status == ResponseStatus.completed) - ).unique() + ).unique().all() question_mapping = { + 2016: lambda r: map_2024(r, 2016), + 2017: lambda r: map_2024(r, 2017), + 2018: lambda r: map_2024(r, 2018), + 2019: lambda r: map_2024(r, 2019), + 2020: lambda r: map_2024(r, 2020), + 2021: lambda r: map_2024(r, 2021), + 2022: lambda r: map_2024(r, 2022), 2023: map_2023, 2024: map_2024 } @@ -51,4 +294,11 @@ def publish(year): data = mapping_function(responses) - save_data(year, data) + with redirect_stdout() as output: + do_comparison(data, year) + output = output.getvalue() + logger.info('\n'+output) + if not dry_run: + save_data(year, data) + logger.info(f"Published data for {year} survey") + return output diff --git a/compendium_v2/publishers/utils.py b/compendium_v2/publishers/utils.py index 04b1f66d1447522d64b8e1708e111125b850b46a..801091161ac683e729ed4aff15cd0ba73cbfadef 100644 --- a/compendium_v2/publishers/utils.py +++ b/compendium_v2/publishers/utils.py @@ -1,4 +1,7 @@ -from decimal import Decimal +import contextlib +import io +import sys +from html import unescape def int_or_none(answers_dict, key): @@ -10,20 +13,20 @@ def int_or_none(answers_dict, key): return None -def decimal_or_none(answers_dict, key): +def float_or_none(answers_dict, key): if key in answers_dict: value = answers_dict[key] if isinstance(value, str): value = value.replace(",", ".") - return Decimal(value) + return float(value) return None -def decimal_or_zero(answers_dict, key): +def float_or_zero(answers_dict, key): value = answers_dict.get(key, 0) if isinstance(value, str): value = value.replace(",", ".") - return Decimal(value) + return float(value) def bool_or_none(answer, key=None): @@ -32,3 +35,40 @@ def bool_or_none(answer, key=None): if answer: return answer == "Yes" return None + + +@contextlib.contextmanager +def redirect_stdout(): + """ + redirect stdout to a StringIO object + + :return: the StringIO object + """ + output = io.StringIO() + old_stdout = sys.stdout + sys.stdout = output + yield output + sys.stdout = old_stdout + + +def sanitize(value): + """ + Escape & replace various characters that can show up in HTML input forms + + :param value: the string to escape + :return: the escaped string + """ + if isinstance(value, str): + return unescape(value).replace('\u200b', '') + elif isinstance(value, list): + new_value = [] + for val in value: + new_value.append(sanitize(val)) + return new_value + elif isinstance(value, dict): + new_value = {} + for key, val in value.items(): + new_value[key] = sanitize(val) + return new_value + + return value diff --git a/compendium_v2/publishers/year/map_2023.py b/compendium_v2/publishers/year/map_2023.py index 5dc40e9a199c2ae4d7f194679f817210ce8b7cd3..55e7450bf7a54e055255b853e954960bf4fc4db2 100644 --- a/compendium_v2/publishers/year/map_2023.py +++ b/compendium_v2/publishers/year/map_2023.py @@ -2,7 +2,7 @@ from decimal import Decimal from typing import List, Dict, Any, Type from collections import defaultdict from compendium_v2.db.presentation_models import BudgetEntry, ChargingStructure, ECProject, ExternalConnections, \ - InstitutionURLs, NrenStaff, ParentOrganization, Policy, SubOrganization, TrafficVolume, ExternalConnection, \ + InstitutionURLs, NrenStaff, ParentOrganization, Policy, SubOrganization, TrafficVolume, \ FundingSource, CentralProcurement, ServiceManagement, ServiceUserTypes, EOSCListings, \ Standards, CrisisExercises, SecurityControls, ConnectedProportion, ConnectivityLevel, \ ConnectionCarrier, ConnectivityLoad, ConnectivityGrowth, CommercialConnectivity, \ @@ -13,7 +13,7 @@ from compendium_v2.db.presentation_models import BudgetEntry, ChargingStructure, from compendium_v2.db.presentation_model_enums import CarryMechanism, CommercialCharges, YesNoPlanned, \ CommercialConnectivityCoverage, ConnectivityCoverage, FeeType, MonitoringMethod, ServiceCategory, UserCategory from compendium_v2.db.survey_models import SurveyResponse -from compendium_v2.publishers.utils import decimal_or_zero, decimal_or_none, bool_or_none, int_or_none +from compendium_v2.publishers.utils import float_or_zero, float_or_none, bool_or_none, int_or_none, sanitize from compendium_v2.publishers.helpers import valid_url, merge_string @@ -32,14 +32,23 @@ def map_budget_entry(year: int, nren: NREN, answers: Dict[str, Any]): def map_fundingsource_entry(year: int, nren: NREN, answers: Dict[str, Any]): funding_source = answers.get("income_sources") if funding_source: + client_institutions = float_or_zero(funding_source, "client_institutions") + european_funding = float_or_zero(funding_source, "european_funding") + gov_public_bodies = float_or_zero(funding_source, "gov_public_bodies") + commercial = float_or_zero(funding_source, "commercial") + other = float_or_zero(funding_source, "other") + + if sum([client_institutions, european_funding, gov_public_bodies, commercial, other]) == 0: + return None + return { 'nren_id': nren.id, 'year': year, - 'client_institutions': decimal_or_zero(funding_source, "client_institutions"), - 'european_funding': decimal_or_zero(funding_source, "european_funding"), - 'gov_public_bodies': decimal_or_zero(funding_source, "gov_public_bodies"), - 'commercial': decimal_or_zero(funding_source, "commercial"), - 'other': decimal_or_zero(funding_source, "other") + 'client_institutions': client_institutions, + 'european_funding': european_funding, + 'gov_public_bodies': gov_public_bodies, + 'commercial': commercial, + 'other': other } @@ -60,16 +69,16 @@ def map_nren_staff(year: int, nren: NREN, answers: Dict[str, Any]): return { 'nren_id': nren.id, 'year': year, - 'permanent_fte': decimal_or_zero(staff_employment_type, "permanent_fte"), - 'subcontracted_fte': decimal_or_zero(staff_employment_type, "subcontracted_fte"), - 'technical_fte': decimal_or_zero(staff_roles, "technical_fte"), - 'non_technical_fte': decimal_or_zero(staff_roles, "nontechnical_fte") + 'permanent_fte': float_or_zero(staff_employment_type, "permanent_fte"), + 'subcontracted_fte': float_or_zero(staff_employment_type, "subcontracted_fte"), + 'technical_fte': float_or_zero(staff_roles, "technical_fte"), + 'non_technical_fte': float_or_zero(staff_roles, "nontechnical_fte") } def map_parent_orgs(nren: NREN, year: int, answers: Dict[str, Any]): has_parent = answers.get("parent_organization") == "Yes" - parent = answers.get("parent_organization_name") + parent = answers.get("parent_organization_name", "").strip() if has_parent and parent: return { 'nren_id': nren.id, @@ -85,11 +94,14 @@ def map_sub_orgs(nren: NREN, year: int, answers: Dict[str, Any]): for sub in subs: role = sub.get("suborganization_role", "").strip() if role == "other": - role = sub.get("suborganization_role-Comment", "").strip() + role = sub.get("suborganization_role-Comment", "other").strip() + name = sub.get("suborganization_name", "").strip() + if not name: + continue yield { 'nren_id': nren.id, 'year': year, - 'organization': sub.get("suborganization_name"), + 'organization': name, 'role': role } @@ -165,10 +177,10 @@ def map_traffic_volume(nren: NREN, year: int, answers: Dict[str, Any]): return { 'nren_id': nren.id, 'year': year, - 'to_customers': decimal_or_zero(traffic_estimate, "to_customers"), - 'from_customers': decimal_or_zero(traffic_estimate, "from_customers"), - 'to_external': decimal_or_zero(traffic_estimate, "to_external"), - 'from_external': decimal_or_zero(traffic_estimate, "from_external") + 'to_customers': float_or_zero(traffic_estimate, "to_customers"), + 'from_customers': float_or_zero(traffic_estimate, "from_customers"), + 'to_external': float_or_zero(traffic_estimate, "to_external"), + 'from_external': float_or_zero(traffic_estimate, "from_external") } @@ -193,7 +205,7 @@ def map_institution_urls(nren: NREN, year: int, answers: Dict[str, Any]): def map_central_procurement(nren: NREN, year: int, answers: Dict[str, Any]): central_procurement = answers.get("central_software_procurement") == "Yes" if central_procurement: - central_procurement_amount = decimal_or_none(answers, "central_procurement_amount") + central_procurement_amount = float_or_none(answers, "central_procurement_amount") else: central_procurement_amount = None return { @@ -244,19 +256,21 @@ def map_eosc_listings(nren: NREN, year: int, answers: Dict[str, Any]): def map_standards(nren: NREN, year: int, answers: Dict[str, Any]): - audits = answers.get("audits") - business_continuity_plans = answers.get("business_continuity_plans") - crisis_management_procedure = answers.get("crisis_management_procedure") - if audits or business_continuity_plans or crisis_management_procedure: - return { - 'nren_id': nren.id, - 'year': year, - 'audits': bool_or_none(audits), - 'audit_specifics': answers.get("audit_specifics", "").strip(), - 'business_continuity_plans': bool_or_none(business_continuity_plans), - 'business_continuity_plans_specifics': answers.get("business_continuity_plans_specifics", "").strip(), - 'crisis_management_procedure': bool_or_none(crisis_management_procedure) - } + audits = bool_or_none(answers.get("audits")) + audits_specifics = answers.get("audit_specifics", "").strip() + business_continuity_plans = bool_or_none(answers.get("business_continuity_plans")) + bcp_specifics = answers.get("business_continuity_plans_specifics", "").strip() + crisis_management_procedure = bool_or_none(answers.get("crisis_management_procedure")) + + return { + 'nren_id': nren.id, + 'year': year, + 'audits': audits, + 'audit_specifics': audits_specifics, + 'business_continuity_plans': business_continuity_plans, + 'business_continuity_plans_specifics': bcp_specifics, + 'crisis_management_procedure': crisis_management_procedure + } def map_crisis_exercises(nren: NREN, year: int, answers: Dict[str, Any]): @@ -274,7 +288,9 @@ def map_security_controls(nren: NREN, year: int, answers: Dict[str, Any]): if security_controls: if "other" in security_controls: security_controls.remove("other") - security_controls.append(answers.get("security_controls-Comment", "other").strip()) + comment = answers.get("security_controls-Comment", "").strip() + if comment: + security_controls.append(comment) return { 'nren_id': nren.id, 'year': year, @@ -289,7 +305,7 @@ def map_connected_proportion(nren: NREN, year: int, answers: Dict[str, Any]): coverage = connectivity_proportion.get("covered") coverage_enum = ConnectivityCoverage[coverage] if coverage else None number_connected = int_or_none(connectivity_proportion, "nr_connected") - market_share = decimal_or_none(connectivity_proportion, "market_share_percentage") + market_share = float_or_none(connectivity_proportion, "market_share_percentage") users_served = int_or_none(connectivity_proportion, "nr_of_users") yield { 'nren_id': nren.id, @@ -308,7 +324,7 @@ def map_connectivity_levels(nren: NREN, year: int, answers: Dict[str, Any]): user_type_enum = UserCategory[user_type] typical_speed = int_or_none(connectivity_level, "typical_speed") highest_speed = int_or_none(connectivity_level, "highest_speed") - highest_speed_proportion = decimal_or_none(connectivity_level, "highest_speed_connection_percentage") + highest_speed_proportion = float_or_none(connectivity_level, "highest_speed_connection_percentage") yield { 'nren_id': nren.id, 'year': year, @@ -356,7 +372,7 @@ def map_connectivity_growth(nren: NREN, year: int, answers: Dict[str, Any]): 'nren_id': nren.id, 'year': year, 'user_category': user_type_enum, - 'growth': decimal_or_zero(traffic_growth, "growth_rate") + 'growth': float_or_zero(traffic_growth, "growth_rate") } @@ -395,14 +411,15 @@ def map_commercial_charging_levels(nren: NREN, year: int, answers: Dict[str, Any def map_remote_campuses(nren: NREN, year: int, answers: Dict[str, Any]): - remote_campuses = answers.get("remote_campuses") - if remote_campuses: - remote_campuses = remote_campuses == "Yes" + has_remote_campuses = answers.get("remote_campuses") + if has_remote_campuses: + remote_campuses = has_remote_campuses == "Yes" remote_campuses_specifics = [] - if remote_campuses: + specifics = answers.get("remote_campuses_specifics", []) + if remote_campuses or specifics: remote_campuses_specifics = [ {"country": i.get("country", "").strip(), "local_r_and_e_connection": bool_or_none(i, "connected")} - for i in answers.get("remote_campuses_specifics", []) + for i in specifics if len(i.get("country", "").strip()) > 1 # ignore empty country ] return { 'nren_id': nren.id, @@ -413,27 +430,34 @@ def map_remote_campuses(nren: NREN, year: int, answers: Dict[str, Any]): def map_dark_fibre_lease(nren: NREN, year: int, answers: Dict[str, Any]): - dark_fibre_lease = answers.get("dark_fibre_lease") == "Yes" - if dark_fibre_lease: - return { - 'nren_id': nren.id, - 'year': year, - 'iru_or_lease': dark_fibre_lease, - 'fibre_length_in_country': int_or_none(answers, "dark_fibre_lease_kilometers_inside_country"), - 'fibre_length_outside_country': int_or_none(answers, "dark_fibre_lease_kilometers_outside_country"), - 'iru_duration': decimal_or_none(answers, "dark_fibre_lease_duration") - } + iru_or_lease = answers.get("dark_fibre_lease") + iru_duration = float_or_none(answers, "dark_fibre_lease_duration") + inside_country = int_or_none(answers, "dark_fibre_lease_kilometers_inside_country") + outside_country = int_or_none(answers, "dark_fibre_lease_kilometers_outside_country") + + if not any([p is not None for p in [iru_or_lease, iru_duration, inside_country, outside_country]]): + return None + return { + 'nren_id': nren.id, + 'year': year, + 'iru_or_lease': iru_or_lease == "Yes", + 'fibre_length_in_country': inside_country, + 'fibre_length_outside_country': outside_country, + 'iru_duration': iru_duration + } def map_dark_fibre_installed(nren: NREN, year: int, answers: Dict[str, Any]): - dark_fibre_nren = answers.get("dark_fibre_nren") == "Yes" - if dark_fibre_nren: - return { - 'nren_id': nren.id, - 'year': year, - 'installed': dark_fibre_nren, - 'fibre_length_in_country': int_or_none(answers, "dark_fibre_nren_kilometers_inside_country") - } + installed = answers.get("dark_fibre_nren") + length = int_or_none(answers, "dark_fibre_nren_kilometers_inside_country") + if not any([p is not None for p in [installed, length]]): + return None + return { + 'nren_id': nren.id, + 'year': year, + 'installed': installed == "Yes", + 'fibre_length_in_country': length if installed == "Yes" else None + } def map_fibre_light(nren: NREN, year: int, answers: Dict[str, Any]): @@ -451,10 +475,12 @@ def map_fibre_light(nren: NREN, year: int, answers: Dict[str, Any]): def map_monitoring_tools(nren: NREN, year: int, answers: Dict[str, Any]): monitoring_tools = answers.get("monitoring_tools", []) netflow_vendors = answers.get("netflow_vendors", "").strip() - if monitoring_tools or netflow_vendors: + tools_comment = answers.get("monitoring_tools-Comment", "").strip() + if len(tools_comment) > 1: if "other" in monitoring_tools: monitoring_tools.remove("other") - monitoring_tools.append(answers.get("monitoring_tools-Comment", "other").strip()) + monitoring_tools.append(tools_comment) + if monitoring_tools or netflow_vendors: return { 'nren_id': nren.id, 'year': year, @@ -572,7 +598,7 @@ def map_alienwave_entry(nren: NREN, year: int, answers: Dict[str, Any]): alienwave_internal = answers.get("alienwave_internal") if alienwave_services or alienwave_internal: alienwave_services = YesNoPlanned[alienwave_services.lower()] if alienwave_services else None - alienwave_internal = alienwave_internal == "Yes" if alienwave_internal else None + alienwave_internal = alienwave_internal == "Yes" if alienwave_internal else False return { 'nren_id': nren.id, 'year': year, @@ -589,20 +615,21 @@ def map_capacity_entry(nren: NREN, year: int, answers: Dict[str, Any]): return { 'nren_id': nren.id, 'year': year, - 'largest_link_capacity': decimal_or_none(answers, "max_capacity"), - 'typical_backbone_capacity': decimal_or_none(answers, "typical_capacity") + 'largest_link_capacity': float_or_none(answers, "max_capacity"), + 'typical_backbone_capacity': float_or_none(answers, "typical_capacity") } def map_external_connections(nren: NREN, year: int, answers: Dict[str, Any]): external_connections = answers.get("external_connections") if external_connections: - connections: List[ExternalConnection] = [{ + connections = [{ 'link_name': connection.get('link_name', ''), - 'capacity': connection.get('capacity'), + 'capacity': float(connection.get('capacity')) if connection.get('capacity') is not None else None, 'from_organization': connection.get('from_organization', ''), 'to_organization': connection.get('to_organization', ''), - 'interconnection_method': connection.get('interconnection_method') + 'interconnection_method': connection['interconnection_method'] + if connection.get('interconnection_method') is not None else None } for connection in external_connections] return { 'nren_id': nren.id, @@ -627,8 +654,8 @@ def map_traffic_ratio(nren: NREN, year: int, answers: Dict[str, Any]): return { 'nren_id': nren.id, 'year': year, - 'r_and_e_percentage': decimal_or_zero(commodity_vs_r_e, "r_e"), - 'commodity_percentage': decimal_or_zero(commodity_vs_r_e, "commodity"), + 'r_and_e_percentage': float_or_zero(commodity_vs_r_e, "r_e"), + 'commodity_percentage': float_or_zero(commodity_vs_r_e, "commodity"), } @@ -731,6 +758,8 @@ def map_2023(responses: List[SurveyResponse]) -> Dict[Type[PresentationModel], L nren = response.nren answers = response.answers['data'] + answers = sanitize(answers) + budget = map_budget_entry(year, nren, answers) if budget: result[BudgetEntry].append(budget) diff --git a/compendium_v2/publishers/year/map_2024.py b/compendium_v2/publishers/year/map_2024.py index 48ccca8340fc0e0ba4b5b05731c713b7b9396e0c..2ac075f1793a94b10550af5ed1deb6fb34a51624 100644 --- a/compendium_v2/publishers/year/map_2024.py +++ b/compendium_v2/publishers/year/map_2024.py @@ -12,9 +12,9 @@ Usage: from typing import List, Dict, Type from collections import defaultdict - from compendium_v2.db.survey_models import SurveyResponse from compendium_v2.publishers.year import map_2023 +from compendium_v2.publishers.utils import sanitize from compendium_v2.db.presentation_models import BudgetEntry, ChargingStructure, ECProject, ExternalConnections, \ InstitutionURLs, NrenStaff, ParentOrganization, Policy, SubOrganization, TrafficVolume, \ FundingSource, CentralProcurement, ServiceManagement, ServiceUserTypes, \ @@ -26,15 +26,15 @@ from compendium_v2.db.presentation_models import BudgetEntry, ChargingStructure, OpsAutomation, NetworkFunctionVirtualisation, NetworkAutomation, NRENService, PresentationModel -def map_2024(responses: List[SurveyResponse]) -> Dict[Type[PresentationModel], List[Dict]]: - year = 2024 - +def map_2024(responses: List[SurveyResponse], year=2024) -> Dict[Type[PresentationModel], List[Dict]]: result = defaultdict(list) # {model: [data]} for response in responses: nren = response.nren answers = response.answers['data'] + answers = sanitize(answers) + budget = map_2023.map_budget_entry(year, nren, answers) if budget: result[BudgetEntry].append(budget) diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py index b71063cbbbd7389d0fafa95d96fc421d9bffbcc2..80a80df34e18f05387cb760c70f0505776e7fbe8 100644 --- a/compendium_v2/routes/survey.py +++ b/compendium_v2/routes/survey.py @@ -267,11 +267,8 @@ def preview_survey(year) -> Any: if survey.status not in [SurveyStatus.closed, SurveyStatus.preview]: return {'message': 'Survey is not closed or in preview and can therefore not be published for preview'}, 400 - if year < 2023: - return {'message': 'The 2023 survey is the first that can be published from this application'}, 400 - try: - publish(year) + publish(year, dry_run=False) except ValueError as e: return {'message': str(e)}, 400 @@ -301,11 +298,10 @@ def publish_survey(year) -> Any: if survey.status not in [SurveyStatus.preview, SurveyStatus.published]: return {'message': 'Survey is not in preview or published and can therefore not be published'}, 400 - if year < 2023: - return {'message': 'The 2023 survey is the first that can be published from this application'}, 400 - + dry_run = request.args.get('dry_run', False) + dry_run = bool(dry_run) try: - publish(year) + output = publish(year, dry_run=dry_run) except ValueError as e: return {'message': str(e)}, 400 @@ -314,7 +310,11 @@ def publish_survey(year) -> Any: survey.status = SurveyStatus.published db.session.commit() - return {'success': True} + result = {'success': True} + if output: + result['message'] = output + + return result @routes.route('/<int:year>/<int:nren_id>/notes', methods=['POST']) diff --git a/compendium_v2/static/bundle.css b/compendium_v2/static/bundle.css index b92b3739bf12bcb2bee9a3b4c32759ea9b54154e..02ac1dd62ab1c2c7f91632b4eab407921d01448d 100644 --- a/compendium_v2/static/bundle.css +++ b/compendium_v2/static/bundle.css @@ -5,10 +5,10 @@ */ @font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-dragdrop-movedown{transform:translate(0, 0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translate(0, -50px)}100%{transform:translate(0, 0)}}.sv-dragdrop-moveup{transform:translate(0, 0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translate(0, 50px)}100%{transform:translate(0, 0)}}:root{--sjs-transition-duration: 150ms}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:var(--sjs-corner-radius, 4px)}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto}.sv-popup--modal>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content .sv-popup__body-footer{padding-bottom:2px}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm-delete .sv-popup__shadow{height:initial}.sv-popup--confirm-delete .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm-delete .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm-delete .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));margin-bottom:0;align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm-delete .sv-popup__scrolling-content{display:none}.sv-popup--confirm-delete .sv-popup__body-footer{padding-bottom:0;max-width:max-content}.sv-popup--confirm-delete .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))), calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;margin-bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__button{margin:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__shadow{box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content .sv-list{background-color:rgba(0,0,0,0)}.sv-dropdown-popup .sv-popup__body-content{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));margin:0}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));margin-top:0;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;margin:0}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--hidden{opacity:0}.sv-popup--animate-enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--animate-enter{animation-duration:.25s}.sv-popup--animate-leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--animate-leave{animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveDown{from{transform:translateY(0)}to{transform:translateY(64px)}}@keyframes modalMoveUp{from{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--animate-leave .sv-popup__container{animation-name:modalMoveDown;animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--animate-enter .sv-popup__container{animation-name:modalMoveUp;animation-fill-mode:forwards;animation-duration:.25s}:root{--sjs-transition-duration: 150ms}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=)}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==)}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(0.875*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px auto;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}:root{--sjs-transition-duration: 150ms}.sv_progress-toc{padding:var(--sjs-base-unit, var(--base-unit, 8px));max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:calc(32*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:rgba(25,179,148,.1);color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-corner-radius, 4px);padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv_progress-toc--mobile{position:fixed;top:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));width:auto;min-width:auto;height:auto;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));z-index:15;border-radius:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile>div{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sd-title+.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),.sd-title~.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile){margin-top:2px}.sv_progress-toc.sv_progress-toc--sticky{position:sticky;height:auto;overflow-y:auto;top:0}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, 16px));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-container-modern__title{padding-left:.55em;color:var(--main-color, #1ab394);padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset{border:none;padding:0;margin:0}.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body{width:100%;padding-bottom:calc(10*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%;--sv-mobile-width: 600px}.sv-page__title{margin:0;margin-bottom:1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0;padding-bottom:.1em;padding-left:.44em;padding-right:.44em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-0.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:bold;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports(display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100% !important;padding-right:0 !important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none !important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:bold}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other{margin-top:.5em}.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:bold;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title{color:var(--text-color, #404040)}.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%, -50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%, -50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 20 20%27 style=%27enable-background:new 0 0 20 20;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%2719,6 17,4 10,11 3,4 1,6 10,15 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f), 0.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:bold;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:rgba(0,0,0,0)}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em 0;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn{float:left}[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn{float:left}[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn{float:left}[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn{float:right}[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:bold;outline:none;padding:.5em 2.786em .6em;text-align:left}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%, -50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:2px;fill:rgba(0,0,0,0)}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:100%;fill:rgba(0,0,0,0)}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, 0.5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:rgba(0,0,0,0);background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown input[readonly]{pointer-events:none}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E");border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;background-color:rgba(0,0,0,0);width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:left;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:rgba(0,0,0,0);font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:bold;line-height:1.13;cursor:pointer;margin:3px 0;margin-right:.26em;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0);fill:var(--text-color, #404040)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));margin:3px 0;margin-right:.26em;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:rgba(0,0,0,0)}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text{cursor:default}.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0;margin-left:50%;transform:translate(-50%, 0);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:1.875em;font-weight:bold;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 72 72%27 style=%27enable-background:new 0 0 72 72;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class=%27st0%27 d=%27M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z%27/%3E%3Cpath class=%27st0%27 d=%27M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z%27/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0px;box-sizing:border-box}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top{display:block;width:100%;text-align:center}.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}:root{--sjs-transition-duration: 150ms}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5*(var(--sjs-corner-radius, 4px)));background-color:rgba(0,0,0,0);color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:calc(0.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--sjs-secondary-backcolor, var(--secondary, #ff9814))}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5*(var(--sjs-corner-radius, 4px)));background-color:rgba(0,0,0,0);cursor:pointer;line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-expand-action:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action--hidden .sv-action__content{min-width:fit-content}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));opacity:50%}:root{--sjs-transition-duration: 150ms}.sv-dragged-element-shortcut{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));min-width:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(4.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:grabbing;position:absolute;z-index:10000;box-shadow:0px 8px 16px rgba(0,0,0,.1);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);padding-left:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(0.75*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:move;margin-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}.sv-drag-drop-choices-shortcut{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content{min-width:100px;box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:calc(4.5*var(--sjs-base-unit, var(--base-unit, 8px)));padding-right:calc(2*var(--sjs-base-unit, var(--base-unit, 8px)));margin-left:0}:root{--sjs-transition-duration: 150ms}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:var(--sjs-corner-radius, 4px)}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto}.sv-popup--modal>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content .sv-popup__body-footer{padding-bottom:2px}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm-delete .sv-popup__shadow{height:initial}.sv-popup--confirm-delete .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm-delete .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm-delete .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));margin-bottom:0;align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm-delete .sv-popup__scrolling-content{display:none}.sv-popup--confirm-delete .sv-popup__body-footer{padding-bottom:0;max-width:max-content}.sv-popup--confirm-delete .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))), calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;margin-bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__button{margin:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__shadow{box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__shadow>.sv-popup__body-content .sv-list{background-color:rgba(0,0,0,0)}.sv-dropdown-popup .sv-popup__body-content{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));margin:0}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));margin-top:0;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;margin:0}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--hidden{opacity:0}.sv-popup--animate-enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--animate-enter{animation-duration:.25s}.sv-popup--animate-leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--animate-leave{animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveDown{from{transform:translateY(0)}to{transform:translateY(64px)}}@keyframes modalMoveUp{from{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--animate-leave .sv-popup__container{animation-name:modalMoveDown;animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--animate-enter .sv-popup__container{animation-name:modalMoveUp;animation-fill-mode:forwards;animation-duration:.25s}:root{--sjs-transition-duration: 150ms}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:var(--sjs-font-size, 16px);overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;appearance:none;width:100%;padding:11px calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));outline:none;font-size:var(--sjs-font-size, 16px);font-weight:400;background:var(--sjs-general-backcolor, var(--background, #fff));cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-button-group__item-icon{display:block;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:default}.sv-button-group__item--disabled .sv-button-group__item-decorator{opacity:.25;font-weight:normal}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none !important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 1 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}:root{--sjs-transition-duration: 150ms}:root{--sjs-transition-duration: 150ms}.sv_window{position:fixed;bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));border:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));background-clip:padding-box;z-index:100;max-height:50vh;overflow:auto;box-sizing:border-box;background:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));width:calc(100% - 4*(var(--sjs-base-unit, var(--base-unit, 8px)))) !important}@-moz-document url-prefix(){.sv_window,.sv_window *{scrollbar-width:thin;scrollbar-color:var(--sjs-border-default, var(--border, #d6d6d6)) rgba(0,0,0,0)}}.sv_window::-webkit-scrollbar,.sv_window *::-webkit-scrollbar{width:12px;height:12px;background-color:rgba(0,0,0,0)}.sv_window::-webkit-scrollbar-thumb,.sv_window *::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:32px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv_window::-webkit-scrollbar-track,.sv_window *::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.sv_window::-webkit-scrollbar-thumb:hover,.sv_window *::-webkit-scrollbar-thumb:hover{border:2px solid rgba(0,0,0,0);background-color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_window_root-content{height:100%}.sv_window--full-screen{top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));max-height:100%;width:initial !important;max-width:initial !important}.sv_window_header{display:flex;justify-content:flex-end}.sv_window_content{overflow:hidden}.sv_window--collapsed{height:initial}.sv_window--collapsed .sv_window_header{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv_window--collapsed .sv_window_content{display:none}.sv_window--collapsed .sv_window_buttons_container{margin-top:0;margin-right:0}.sv_window_header_title_collapsed{color:var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));flex:1;display:flex;justify-content:flex-start;align-items:center}.sv_window_header_description{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));font-feature-settings:"salt" on;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sv_window_buttons_container{position:fixed;margin-top:var(--sjs-base-unit, var(--base-unit, 8px));margin-right:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;gap:var(--sjs-base-unit, var(--base-unit, 8px));z-index:10000}.sv_window_button{display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));justify-content:center;align-items:center;border-radius:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:pointer}.sv_window_button:hover,.sv_window_button:active{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv_window_button:hover svg use,.sv_window_button:hover svg path,.sv_window_button:active svg use,.sv_window_button:active svg path{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv_window_button:active{opacity:.5}.sv_window_button svg use,.sv_window_button svg path{fill:var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:center;color:#161616;background:#fff;padding:32px 0;box-shadow:0px -1px 0px #d6d6d6}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sv-brand-info__text{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(0.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px)}.sv-brand-info__terms a{color:#909090}:root{--sjs-transition-duration: 150ms}:root{--sjs-transition-duration: 150ms}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));opacity:1}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(0.6*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--sjs-general-backcolor, var(--background, #fff));outline:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0px;border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__icon-container{position:relative;left:0;top:0;bottom:0;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--disabled.sv-ranking-item--disabled,.sv-ranking-item--readonly.sv-ranking-item--readonly,.sv-ranking-item--preview.sv-ranking-item--preview{cursor:initial;user-select:initial;-webkit-user-select:initial}.sv-ranking-item--disabled.sv-ranking-item--disabled .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--readonly.sv-ranking-item--readonly .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--preview.sv-ranking-item--preview .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__index.sv-ranking-item__index{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);border-radius:100%;border:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));box-sizing:border-box;font-weight:600;margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))));transition:outline var(--sjs-transition-duration, 150ms),background var(--sjs-transition-duration, 150ms);outline:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0)}.sv-ranking-item__index.sv-ranking-item__index svg{fill:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));width:var(--sjs-internal-font-editorfont-size);height:var(--sjs-internal-font-editorfont-size)}.sv-ranking-item__text{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);line-height:calc(1.5*(var(--sjs-internal-font-editorfont-size)));margin:0 calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));opacity:.25}.sv-ranking-item--disabled .sv-ranking-item__text{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));opacity:.25}.sv-ranking-item--readonly .sv-ranking-item__index{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-ranking-item--preview .sv-ranking-item__index{background-color:rgba(0,0,0,0);border:1px solid var(--sjs-general-forecolor, var(--foreground, #161616));box-sizing:border-box}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(31*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));z-index:1;position:absolute;left:0;top:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index{margin-left:0}.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__content{padding-left:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut{cursor:grabbing;position:absolute;z-index:10000;border-radius:calc(12.5*var(--sjs-base-unit, var(--base-unit, 8px)));min-width:100px;max-width:400px;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));background-color:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-ranking--select-to-rank{display:flex}.sv-ranking--select-to-rank-vertical{flex-direction:column-reverse}.sv-ranking--select-to-rank-vertical .sv-ranking__containers-divider{margin:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0;height:1px}.sv-ranking--select-to-rank-vertical .sv-ranking__container--empty{padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;justify-content:center;align-items:center}.sv-ranking-item--animate-item-removing{--animation-height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));animation-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, 150ms),var(--sjs-ranking-fade-out-duration, 100ms);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{--animation-height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, 150ms),var(--sjs-ranking-fade-in-duration, 100ms);animation-delay:0s,var(--sjs-ranking-fade-in-delay, 150ms)}.sv-ranking-item--animate-item-adding-empty{--animation-height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, 100ms);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{--animation-height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, 100ms);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}100%{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}100%{opacity:0}}.sv-ranking--select-to-rank-horizontal .sv-ranking__container{max-width:calc(50% - 1px)}.sv-ranking--select-to-rank-horizontal .sv-ranking__containers-divider{width:1px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item{left:initial}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking__container-placeholder{color:var(--sjs-font-questiondescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:normal;display:flex;justify-content:center;align-items:center;height:100%;padding-top:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-ranking__container{flex:1}.sv-ranking__container--empty{box-sizing:border-box;text-align:center}.sv-ranking__containers-divider{background:var(--sjs-border-default, var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16))))}.sv-ranking__container--from .sv-ranking-item__icon--focus{display:none}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:0 !important;padding-left:16px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item .sv-ranking-item__ghost{left:initial}:root{--sjs-transition-duration: 150ms}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));box-sizing:border-box;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__empty-text{line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-weight:400;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{position:relative;width:100%;align-items:center;box-sizing:border-box;padding-block:var(--sjs-base-unit, var(--base-unit, 8px));padding-inline-end:calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, 150ms),color var(--sjs-transition-duration, 150ms)}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:var(--sjs-corner-radius, 4px);padding-block:calc(0.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(7.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-0.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:focus .sv-list__item-body,.sv-list__item--hovered>.sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon>.sv-list__item-body{padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex}.sv-list__item-icon{float:left;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list-item__marker-icon{position:absolute;right:var(--sjs-base-unit, var(--base-unit, 8px));flex-shrink:0;padding:calc(0.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list-item__marker-icon svg{display:block}.sv-list-item__marker-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list--filtering .sv-list__item-separator{display:none}.sv-list__item.sv-list__item--selected>.sv-list__item-body,.sv-list__item.sv-list__item--selected:hover>.sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--sjs-general-backcolor, var(--background, #fff))}.sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use{fill:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item.sv-list__item--selected.sv-list__item--group>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item.sv-list__item--selected.sv-list__item--group>.sv-list__item-body use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__item-text--wrap span{white-space:normal;word-wrap:break-word}.sv-list__container{position:relative;display:flex;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));background:var(--sjs-general-backcolor, var(--background, #fff));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));inset-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--sjs-general-backcolor, var(--background, #fff));box-sizing:border-box;width:100%;min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));outline:none;font-size:var(--sjs-font-size, 16px);color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(7*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:rgba(0,0,0,0)}:root{--sjs-transition-duration: 150ms}.sv-save-data_root{position:fixed;left:50%;bottom:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));background:var(--sjs-general-backcolor, var(--background, #fff));opacity:0;padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));border-radius:calc(2*(var(--sjs-corner-radius, 4px)));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));text-align:center;z-index:1600;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translateX(-50%) translateY(calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translateX(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_root--with-buttons{padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error{background-color:var(--sjs-special-red, var(--red, #e60a3e));color:var(--sjs-general-backcolor, var(--background, #fff));font-weight:600;gap:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));color:#fff;background-color:var(--sjs-special-red, var(--red, #e60a3e));border:calc(0.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid #fff;border-radius:calc(1.5*(var(--sjs-corner-radius, 4px)));padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--sjs-special-red, var(--red, #e60a3e));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sv-string-viewer.sv-string-viewer--multiline{white-space:pre-wrap}.sjs_sp_container{position:relative;max-width:100%}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;user-select:none;pointer-events:none;width:100%;height:100%}.sjs_sp_canvas{position:relative;max-width:100%;display:block}.sjs_sp__background-image{position:absolute;top:0;left:0;object-fit:cover;max-width:100%;width:100%;height:100%}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path{display:none}.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv-components-row>.sv-components-column--expandable{width:1px}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media(max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, 0.5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top::after,.sv-matrix__drag-drop-ghost-position-bottom::after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top::after{top:0}.sv-matrix__drag-drop-ghost-position-bottom::after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3)))} -@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn-matrix,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.toggle-btn-matrix{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}:root{--muted-alpha: 0.2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:97%;max-height:1000px}.collapsible-box-matrix{border:2px solid #add8e6}.collapsible-box-table{border:unset;border-bottom:2px solid #add8e6}.collapsible-content{display:flex;opacity:1;max-height:1000px;transition:all .3s ease-out;overflow:hidden}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden}.collapsible-column{display:flex;flex-direction:column;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem rgba(0,0,0,.8)}.bg-color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year::before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{width:100%;overflow-x:auto;display:flex;flex-direction:row}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse}.colored-table table{width:60rem}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:bold;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid #fff;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem !important;background-color:#fff !important}.matrix-table tbody tr:nth-of-type(even) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.bottom-tooltip,.bottom-tooltip-small::after,.bottom-tooltip-small{position:relative}.bottom-tooltip::after,.bottom-tooltip-small::after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%, calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small::after{width:5em}.bottom-tooltip-small:hover::after,.bottom-tooltip:hover::after{display:block}.bottom-tooltip::before,.bottom-tooltip-small::before{display:none;position:absolute;transform:translate(-50%, calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover::before,.bottom-tooltip-small:hover::before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00a0c6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg, #d6e8f3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg, #fcdbd5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg, #d4f0d9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg, #fee8d0 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg, #d0e5f2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg, #d2f0e2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg, #f3cfd3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg, #c7ece9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg, #fdcfd1 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg, #e9e4e3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg, #fdc9e7 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg, #e5e5e5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg, #cddcec 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:bold}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:bold;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:#00bfff 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:bold}.imageoption>span{margin-left:.25rem}.imageoption::after{content:"";display:block;border-bottom:gray 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:bold;padding-left:1rem !important;background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, 0.2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:bold;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:bold;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:bold;text-align:center}.survey-tooltip{position:relative}.survey-tooltip::after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover::after{display:block}.survey-tooltip::before{display:none;position:absolute;transform:translate(-50%, calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover::before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]::after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]::after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem} +@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn-matrix,.toggle-btn-table,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}:root{--muted-alpha: 0.2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid #add8e6}.collapsible-box-table{border:unset;border-bottom:2px solid #add8e6}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem rgba(0,0,0,.8)}.bg-color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year::before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:bold;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid #fff;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem !important;background-color:#fff !important}.matrix-table tbody tr:nth-of-type(even) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.bottom-tooltip,.bottom-tooltip-small::after,.bottom-tooltip-small{position:relative}.bottom-tooltip::after,.bottom-tooltip-small::after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%, calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small::after{width:5em}.bottom-tooltip-small:hover::after,.bottom-tooltip:hover::after{display:block}.bottom-tooltip::before,.bottom-tooltip-small::before{display:none;position:absolute;transform:translate(-50%, calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover::before,.bottom-tooltip-small:hover::before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00a0c6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg, #d6e8f3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg, #fcdbd5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg, #d4f0d9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg, #fee8d0 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg, #d0e5f2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg, #d2f0e2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg, #f3cfd3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg, #c7ece9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg, #fdcfd1 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg, #e9e4e3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg, #fdc9e7 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg, #e5e5e5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg, #cddcec 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:bold}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:bold;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:#00bfff 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:bold}.imageoption>span{margin-left:.25rem}.imageoption::after{content:"";display:block;border-bottom:gray 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:bold;padding-left:1rem !important;background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, 0.2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:bold;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:bold;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:bold;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:bold;text-align:center}.survey-tooltip{position:relative}.survey-tooltip::after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover::after{display:block}.survey-tooltip::before{display:none;position:absolute;transform:translate(-50%, calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover::before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]::after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]::after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem} @charset "UTF-8";/*! * Bootstrap v5.3.3 (https://getbootstrap.com/) * Copyright 2011-2024 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), 0.05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), 0.1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23dee2e6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%28255, 255, 255, 0.25%29%27/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label::after,.form-floating>.form-control:focus~label::after,.form-floating>.form-control:not(:placeholder-shown)~label::after,.form-floating>.form-select~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.form-floating>.form-control:disabled~label::after,.form-floating>:disabled~label::after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:0.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), 0.65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), 0.8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), 0.3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%2833, 37, 41, 0.75%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0.15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%23212529%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpath d=%27M2 5L8 11L14 5%27/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%23052c65%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpath d=%27M2 5L8 11L14 5%27/%3e%3c/svg%3e");--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button::after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white{filter:var(--bs-btn-close-white-filter)}[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform 0.3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--bs-offcanvas-padding-y)) calc(-.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-underline-offset:0.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em!important}.link-offset-1-hover:hover{text-underline-offset:0.125em!important}.link-offset-2{text-underline-offset:0.25em!important}.link-offset-2-hover:hover{text-underline-offset:0.25em!important}.link-offset-3{text-underline-offset:0.375em!important}.link-offset-3-hover:hover{text-underline-offset:0.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}} -@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn-matrix,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.toggle-btn-matrix{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}:root{--muted-alpha: 0.2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:97%;max-height:1000px}.collapsible-box-matrix{border:2px solid #add8e6}.collapsible-box-table{border:unset;border-bottom:2px solid #add8e6}.collapsible-content{display:flex;opacity:1;max-height:1000px;transition:all .3s ease-out;overflow:hidden}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden}.collapsible-column{display:flex;flex-direction:column;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem rgba(0,0,0,.8)}.bg-color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year::before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{width:100%;overflow-x:auto;display:flex;flex-direction:row}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse}.colored-table table{width:60rem}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:bold;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid #fff;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem !important;background-color:#fff !important}.matrix-table tbody tr:nth-of-type(even) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.bottom-tooltip,.bottom-tooltip-small::after,.bottom-tooltip-small{position:relative}.bottom-tooltip::after,.bottom-tooltip-small::after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%, calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small::after{width:5em}.bottom-tooltip-small:hover::after,.bottom-tooltip:hover::after{display:block}.bottom-tooltip::before,.bottom-tooltip-small::before{display:none;position:absolute;transform:translate(-50%, calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover::before,.bottom-tooltip-small:hover::before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00a0c6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg, #d6e8f3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg, #fcdbd5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg, #d4f0d9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg, #fee8d0 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg, #d0e5f2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg, #d2f0e2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg, #f3cfd3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg, #c7ece9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg, #fdcfd1 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg, #e9e4e3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg, #fdc9e7 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg, #e5e5e5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg, #cddcec 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:bold}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:bold;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:#00bfff 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:bold}.imageoption>span{margin-left:.25rem}.imageoption::after{content:"";display:block;border-bottom:gray 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none} +@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:normal}.bold-20pt{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold}.bold-caps-16pt,.toggle-btn-matrix,.toggle-btn-table,.toggle-btn{font-family:"Open Sans",sans-serif;font-size:16pt;font-weight:bold;text-transform:uppercase}.bold-caps-17pt{font-family:"Open Sans",sans-serif;font-size:17pt;font-weight:bold;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:"Open Sans",sans-serif;font-size:20pt;font-weight:bold;text-transform:uppercase}.bold-caps-30pt{font-family:"Open Sans",sans-serif;font-size:30pt;font-weight:bold;text-transform:uppercase}.dark-teal{color:#003f5f}.geant-header{color:#003f5f}.bold-grey-12pt{font-family:"Open Sans",sans-serif;font-size:12pt;font-weight:bold;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);border:#f79e3b 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper{padding:.5rem;padding-top:.7rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.5rem;padding-top:.7rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid #f79e3b}:root{--muted-alpha: 0.2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid #b9bec5}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1;padding-bottom:4%}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:5px;padding-top:25px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid #f79e3b;padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid #add8e6}.collapsible-box-table{border:unset;border-bottom:2px solid #add8e6}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:rgba(0,0,0,.25)}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem rgba(0,0,0,.8)}.bg-color-of-the-year-blank{background-color:rgba(0,0,0,0)}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year::before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;left:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:bold;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid #fff;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem !important;background-color:#fff !important}.matrix-table tbody tr:nth-of-type(even) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(even){background-color:rgba(102,121,139,.178)}.table-bg-highlighted tr:hover{background-color:rgba(102,121,139,.521)}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border::after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:rgb(157, 40, 114)}.color-of-badge-1{background-color:rgb(241, 224, 79)}.color-of-badge-2{background-color:rgb(219, 42, 76)}.color-of-badge-3{background-color:rgb(237, 141, 24)}.color-of-badge-4{background-color:rgb(137, 166, 121)}.color-of-badge-blank{background-color:rgba(0,0,0,0)}.bottom-tooltip,.bottom-tooltip-small::after,.bottom-tooltip-small{position:relative}.bottom-tooltip::after,.bottom-tooltip-small::after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%, calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small::after{width:5em}.bottom-tooltip-small:hover::after,.bottom-tooltip:hover::after{display:block}.bottom-tooltip::before,.bottom-tooltip-small::before{display:none;position:absolute;transform:translate(-50%, calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover::before,.bottom-tooltip-small:hover::before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00a0c6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg, #d6e8f3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:rgba(0,0,0,0);stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg, #fcdbd5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg, #d4f0d9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:rgba(0,0,0,0);stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg, #fee8d0 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:rgba(0,0,0,0);stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg, #d0e5f2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:rgba(0,0,0,0);stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg, #d2f0e2 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:rgba(0,0,0,0);stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg, #f3cfd3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg, #c7ece9 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:rgba(0,0,0,0);stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg, #fdcfd1 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:rgba(0,0,0,0);stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg, #e9e4e3 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:rgba(0,0,0,0);stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg, #fdc9e7 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:rgba(0,0,0,0);stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg, #e5e5e5 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:rgba(0,0,0,0);stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg, #cddcec 0%, rgb(255, 255, 255) 100%);padding:1.5rem;margin:10px}.color-of-the-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:rgba(0,0,0,0);stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:bold}.nav-link-entry{border-radius:2px;font-family:"Open Sans",sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:"Open Sans",sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:bold;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:#00bfff 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:bold}.imageoption>span{margin-left:.25rem}.imageoption::after{content:"";display:block;border-bottom:gray 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none} diff --git a/compendium_v2/static/bundle.js b/compendium_v2/static/bundle.js index c9e2f8de35a1a90f93b1af7db02fc9164ef15efc..34b847923add96a9e4de4fd94cd5fbfae6e65f3a 100644 --- a/compendium_v2/static/bundle.js +++ b/compendium_v2/static/bundle.js @@ -1,5 +1,5 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var e,t,n={292:(e,t)=>{"use strict";t.o1=void 0,t.o1=function e(...t){if(!Array.isArray(t))throw new TypeError("Please, send an array.");const[n,r,...o]=t,i=function(e,t){const n=[];for(let r=0;r<e.length;r++)if(t)for(let o=0;o<t.length;o++)Array.isArray(e[r])?n.push([...e[r],t[o]]):n.push([e[r],t[o]]);else n.push([e[r]]);return n}(n,r);return o.length?e(i,...o):i}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,n)=>{"use strict";var r=n(540),o=n(982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),k=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function j(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function q(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case S:return"Profiler";case P:return"StrictMode";case V:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ie(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ce=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Pe=null;function Se(e){if(e=Co(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Ee?Pe?Pe.push(e):Pe=[e]:Ee=e}function Te(){if(Ee){var e=Ee,t=Pe;if(Pe=Ee=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function _e(e,t){return e(t)}function Ve(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return _e(e,t,n)}finally{Re=!1,(null!==Ee||null!==Pe)&&(Ve(),Te())}}function ke(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Ae=!1}function Ne(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,je=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function qe(e,t,n,r,o,i,s,a,l){Me=!1,Le=null,Ne.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(He(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Qe(o),e;if(s===r)return Qe(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var $e=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ke=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!=(i&=s)&&(r=pt(i))}else 0!=(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function Ct(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,xt,Et,Pt,St,Ot=!1,Tt=[],_t=null,Vt=null,Rt=null,It=new Map,kt=new Map,At=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Vt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Co(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void St(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Co(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ce=r,n.target.dispatchEvent(r),Ce=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Ot=!1,null!==_t&&jt(_t)&&(_t=null),null!==Vt&&jt(Vt)&&(Vt=null),null!==Rt&&jt(Rt)&&(Rt=null),It.forEach(Ft),kt.forEach(Ft)}function qt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return qt(t,e)}if(0<Tt.length){qt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&qt(_t,e),null!==Vt&&qt(Vt,e),null!==Rt&&qt(Rt,e),It.forEach(t),kt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Lt(n),null===n.blockedOn&&At.shift()}var zt=C.ReactCurrentBatchConfig,Qt=!0;function Ut(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=o,zt.transition=i}}function Wt(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=o,zt.transition=i}}function $t(e,t,n,r){if(Qt){var o=Jt(e,t,n,r);if(null===o)Qr(e,t,r,Gt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Mt(_t,e,t,n,r,o),!0;case"dragenter":return Vt=Mt(Vt,e,t,n,r,o),!0;case"mouseover":return Rt=Mt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Mt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,kt.set(i,Mt(kt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=Co(o);if(null!==i&&wt(i),null===(i=Jt(e,t,n,r))&&Qr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Gt=null;function Jt(e,t,n,r){if(Gt=null,null!==(e=bo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=L({},un,{view:0,detail:0}),dn=on(pn),hn=L({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(hn),mn=on(L({},hn,{dataTransfer:0})),gn=on(L({},pn,{relatedTarget:0})),yn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),Cn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Sn(){return Pn}var On=L({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(On),_n=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=on(L({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Rn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kn=on(In),An=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Nn,Ln=c&&(!Dn||Nn&&8<Nn&&11>=Nn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Oe(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,$n=null;function Gn(e){jr(e,0)}function Jn(e){if($(wo(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),$n=Wn=null)}function nr(e){if("value"===e.propertyName&&Jn($n)){var t=[];Un(t,$n,e,we(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn($n)}function ir(e,t){if("click"===e)return Jn(t)}function sr(e,t){if("input"===e||"change"===e)return Jn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},Pr={};function Sr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pr)return Er[e]=n[t];return e}c&&(Pr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Sr("animationend"),Tr=Sr("animationiteration"),_r=Sr("animationstart"),Vr=Sr("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){Rr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Ir.length;Ar++){var Dr=Ir[Ar];kr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}kr(Or,"onAnimationEnd"),kr(Tr,"onAnimationIteration"),kr(_r,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(Vr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(qe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,je||(je=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var qr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[qr]){e[qr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[qr]||(t[qr]=!0,Br("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Yt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Ie((function(){var r=i,o=we(n),s=[];e:{var a=Rr.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Vn;break;case Or:case Tr:case _r:l=yn;break;case Vr:l=Rn;break;case"scroll":l=dn;break;case"wheel":l=kn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var c=!!(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=ke(f,d))&&c.push(Ur(f,m,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ce||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(m,f+"leave",l,n,o)).target=p,a.relatedTarget=h,m=null,bo(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,f=0,h=c=l;h;h=$r(h))f++;for(h=0,m=d;m;m=$r(m))h++;for(;0<f-h;)c=$r(c),f--;for(;0<h-f;)d=$r(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=$r(c),d=$r(d)}c=null}else c=null;null!==l&&Gr(s,a,l,c,!1),null!==u&&null!==p&&Gr(s,p,u,c,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Yn;else if(Qn(a))if(Kn)g=sr;else{g=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(s,g,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?wo(r):window,e){case"focusin":(Qn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Cr(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Cr(s,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=en()):(Xt="value"in(Kt=o)?Kt.value:Kt.textContent,Hn=!0)),0<(y=Wr(r,b)).length&&(b=new Cn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=qn(n)))&&(b.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Zt=Xt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}jr(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=ke(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=ke(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=ke(n,i))&&s.unshift(Ur(n,l,a)):o||null!=(l=ke(n,i))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Jr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function Co(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[fo]||null}var Eo=[],Po=-1;function So(e){return{current:e}}function Oo(e){0>Po||(e.current=Eo[Po],Eo[Po]=null,Po--)}function To(e,t){Po++,Eo[Po]=e.current,e.current=t}var _o={},Vo=So(_o),Ro=So(!1),Io=_o;function ko(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=e.childContextTypes}function Do(){Oo(Ro),Oo(Vo)}function No(e,t,n){if(Vo.current!==_o)throw Error(i(168));To(Vo,t),To(Ro,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,z(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Io=Vo.current,To(Vo,e),To(Ro,Ro.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(Ro),Oo(Vo),To(Vo,e)):Oo(Ro),To(Ro,n)}var Fo=null,Bo=!1,qo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function zo(){if(!qo&&null!==Fo){qo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),$e(Ze,zo),t}finally{bt=t,qo=!1}}return null}var Qo=[],Uo=0,Wo=null,$o=0,Go=[],Jo=0,Yo=null,Ko=1,Xo="";function Zo(e,t){Qo[Uo++]=$o,Qo[Uo++]=Wo,Wo=e,$o=t}function ei(e,t,n){Go[Jo++]=Ko,Go[Jo++]=Xo,Go[Jo++]=Yo,Yo=e;var r=Ko;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ko=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Ko=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=Qo[--Uo],Qo[Uo]=null,$o=Qo[--Uo],Qo[Uo]=null;for(;e===Yo;)Yo=Go[--Jo],Go[Jo]=null,Xo=Go[--Jo],Go[Jo]=null,Ko=Go[--Jo],Go[Jo]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Ko,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=C.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function Ci(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===E?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===k&&bi(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Nu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case x:return(t=ju(t,e.mode,n)).return=e,t;case k:return d(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Nu(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case k:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:p(e,t,n,r,null);vi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return p(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=h(o,p,a[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===a.length)return n(o,p),ii&&Zo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Zo(o,m),u}for(p=r(o,p);m<a.length;m++)null!==(g=f(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),u}function g(o,a,l,u){var c=N(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=h(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),a=s(b,a,g),null===p?c=b:p.sibling=b,p=b,m=y}if(v.done)return n(o,m),ii&&Zo(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return ii&&Zo(o,g),c}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=f(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===k&&bi(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=yi(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===E?((i=Nu(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Du(s.type,s.key,s.props,null,r.mode,l)).ref=yi(r,i,s),l.return=r,r=l)}return a(r);case x:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ju(s,r.mode,l)).return=r,r=i}return a(r);case k:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return m(r,i,s,l);if(N(s))return g(r,i,s,l);vi(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Lu(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var wi=Ci(!0),xi=Ci(!1),Ei=So(null),Pi=null,Si=null,Oi=null;function Ti(){Oi=Si=Pi=null}function _i(e){var t=Ei.current;Oo(Ei),e._currentValue=t}function Vi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Pi=e,Oi=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===Pi)throw Error(i(308));Si=e,Pi.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var ki=null;function Ai(e){null===ki?ki=[e]:ki.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_l){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function qi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zi(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(d=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:Mi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=s,e.lanes=s,e.memoizedState=p}}function Qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui={},Wi=So(Ui),$i=So(Ui),Gi=So(Ui);function Ji(e){if(e===Ui)throw Error(i(174));return e}function Yi(e,t){switch(To(Gi,t),To($i,e),To(Wi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Wi),To(Wi,t)}function Ki(){Oo(Wi),Oo($i),Oo(Gi)}function Xi(e){Ji(Gi.current);var t=Ji(Wi.current),n=le(t,e.type);t!==n&&(To($i,e),To(Wi,n))}function Zi(e){$i.current===e&&(Oo(Wi),Oo($i))}var es=So(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ns=[];function rs(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var os=C.ReactCurrentDispatcher,is=C.ReactCurrentBatchConfig,ss=0,as=null,ls=null,us=null,cs=!1,ps=!1,ds=0,hs=0;function fs(){throw Error(i(321))}function ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function gs(e,t,n,r,o,s){if(ss=s,as=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:ea,e=n(r,o),ps){s=0;do{if(ps=!1,ds=0,25<=s)throw Error(i(301));s+=1,us=ls=null,t.updateQueue=null,os.current=ta,e=n(r,o)}while(ps)}if(os.current=Xs,t=null!==ls&&null!==ls.next,ss=0,us=ls=as=null,cs=!1,t)throw Error(i(300));return e}function ys(){var e=0!==ds;return ds=0,e}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?as.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=as.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?as.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?as.memoizedState=us=e:us=us.next=e}return us}function Cs(e,t){return"function"==typeof t?t(e):t}function ws(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ls,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((ss&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,as.lanes|=p,Ml|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,as.lanes|=s,Ml|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(ba=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Es(){}function Ps(e,t){var n=as,r=bs(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,ba=!0),r=r.queue,Ms(Ts.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==us&&1&us.memoizedState.tag){if(n.flags|=2048,Is(9,Os.bind(null,n,r,o,t),void 0,null),null===Vl)throw Error(i(349));30&ss||Ss(n,t,o)}return o}function Ss(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Os(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&Vs(e)}function Ts(e,t,n){return n((function(){_s(t)&&Vs(e)}))}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Vs(e){var t=Ni(e,1);null!==t&&nu(t,e,1,-1)}function Rs(e){var t=vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,as,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ks(){return bs().memoizedState}function As(e,t,n,r){var o=vs();as.flags|=e,o.memoizedState=Is(1|t,n,void 0,void 0===r?null:r)}function Ds(e,t,n,r){var o=bs();r=void 0===r?null:r;var i=void 0;if(null!==ls){var s=ls.memoizedState;if(i=s.destroy,null!==r&&ms(r,s.deps))return void(o.memoizedState=Is(t,n,i,r))}as.flags|=e,o.memoizedState=Is(1|t,n,i,r)}function Ns(e,t){return As(8390656,8,e,t)}function Ms(e,t){return Ds(2048,8,e,t)}function Ls(e,t){return Ds(4,2,e,t)}function js(e,t){return Ds(4,4,e,t)}function Fs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bs(e,t,n){return n=null!=n?n.concat([e]):null,Ds(4,4,Fs.bind(null,t,e),n)}function qs(){}function Hs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qs(e,t,n){return 21&ss?(ar(n,t)||(n=mt(),as.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n)}function Us(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{bt=n,is.transition=r}}function Ws(){return bs().memoizedState}function $s(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Js(e)?Ys(t,n):null!==(n=Di(e,t,n,r))&&(nu(n,e,r,eu()),Ks(n,t,r))}function Gs(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(e))Ys(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Ai(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nu(n,e,r,o=eu()),Ks(n,t,r))}}function Js(e){var t=e.alternate;return e===as||null!==t&&t===as}function Ys(e,t){ps=cs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ks(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Xs={readContext:Ii,useCallback:fs,useContext:fs,useEffect:fs,useImperativeHandle:fs,useInsertionEffect:fs,useLayoutEffect:fs,useMemo:fs,useReducer:fs,useRef:fs,useState:fs,useDebugValue:fs,useDeferredValue:fs,useTransition:fs,useMutableSource:fs,useSyncExternalStore:fs,useId:fs,unstable_isNewReconciler:!1},Zs={readContext:Ii,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Ns,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,As(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return As(4194308,4,e,t)},useInsertionEffect:function(e,t){return As(4,2,e,t)},useMemo:function(e,t){var n=vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$s.bind(null,as,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:Rs,useDebugValue:qs,useDeferredValue:function(e){return vs().memoizedState=e},useTransition:function(){var e=Rs(!1),t=e[0];return e=Us.bind(null,e[1]),vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=as,o=vs();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Vl)throw Error(i(349));30&ss||Ss(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ns(Ts.bind(null,r,s,e),[e]),r.flags|=2048,Is(9,Os.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vs(),t=Vl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Ko&~(1<<32-st(Ko)-1)).toString(32)+n),0<(n=ds++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=hs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:js,useMemo:zs,useReducer:ws,useRef:ks,useState:function(){return ws(Cs)},useDebugValue:qs,useDeferredValue:function(e){return Qs(bs(),ls.memoizedState,e)},useTransition:function(){return[ws(Cs)[0],bs().memoizedState]},useMutableSource:Es,useSyncExternalStore:Ps,useId:Ws,unstable_isNewReconciler:!1},ta={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:js,useMemo:zs,useReducer:xs,useRef:ks,useState:function(){return xs(Cs)},useDebugValue:qs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Qs(t,ls.memoizedState,e)},useTransition:function(){return[xs(Cs)[0],bs().memoizedState]},useMutableSource:Es,useSyncExternalStore:Ps,useId:Ws,unstable_isNewReconciler:!1};function na(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oa={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),qi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),qi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),qi(t,e,r))}};function ia(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function sa(e,t,n){var r=!1,o=_o,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Ao(t)?Io:Vo.current,i=(r=null!=(r=t.contextTypes))?ko(e,o):_o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function aa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oa.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Ao(t)?Io:Vo.current,o.context=ko(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ra(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&oa.enqueueReplaceState(o,o.state,null),zi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ua(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ca(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var da="function"==typeof WeakMap?WeakMap:Map;function ha(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Ul=r),pa(0,t)},n}function fa(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pa(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){pa(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new da;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function ga(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var va=C.ReactCurrentOwner,ba=!1;function Ca(e,t,n,r){t.child=null===e?xi(t,null,n,r):wi(t,e.child,n,r)}function wa(e,t,n,r,o){n=n.render;var i=t.ref;return Ri(t,o),r=gs(e,t,n,r,i,o),n=ys(),null===e||ba?(ii&&n&&ti(t),t.flags|=1,Ca(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qa(e,t,o))}function xa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ku(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ea(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Qa(e,t,o)}return t.flags|=1,(e=Au(i,r)).ref=t.ref,e.return=t,t.child=e}function Ea(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Qa(e,t,o);131072&e.flags&&(ba=!0)}}return Oa(e,t,n,r,o)}function Pa(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Al,kl),kl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Al,kl),kl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Al,kl),kl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Al,kl),kl|=r;return Ca(e,t,o,n),t.child}function Sa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=Ao(n)?Io:Vo.current;return i=ko(t,i),Ri(t,o),n=gs(e,t,n,r,i,o),r=ys(),null===e||ba?(ii&&r&&ti(t),t.flags|=1,Ca(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qa(e,t,o))}function Ta(e,t,n,r,o){if(Ao(n)){var i=!0;Lo(t)}else i=!1;if(Ri(t,o),null===t.stateNode)za(e,t),sa(t,n,r),la(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Ii(u):ko(t,u=Ao(n)?Io:Vo.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&aa(t,s,r,u),Mi=!1;var d=t.memoizedState;s.state=d,zi(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ro.current||Mi?("function"==typeof c&&(ra(t,n,c,r),l=t.memoizedState),(a=Mi||ia(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:na(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Ii(l):ko(t,l=Ao(n)?Io:Vo.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&aa(t,s,r,l),Mi=!1,d=t.memoizedState,s.state=d,zi(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Ro.current||Mi?("function"==typeof h&&(ra(t,n,h,r),f=t.memoizedState),(u=Mi||ia(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){Sa(e,t);var s=!!(128&t.flags);if(!r&&!s)return o&&jo(t,n,!1),Qa(e,t,i);r=t.stateNode,va.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,a,i)):Ca(e,t,a,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),Yi(e,t.containerInfo)}function Ra(e,t,n,r,o){return fi(),mi(o),t.flags|=256,Ca(e,t,n,r),t.child}var Ia,ka,Aa,Da,Na={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function La(e,t,n){var r,o=t.pendingProps,s=es.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),To(es,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Mu(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Nu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ma(n),t.memoizedState=Na,e):ja(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,r=ca(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Mu({mode:"visible",children:r.children},o,0,null),(s=Nu(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&wi(t,e.child,null,a),t.child.memoizedState=Ma(a),t.memoizedState=Na,s);if(!(1&t.mode))return Fa(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fa(e,t,a,r=ca(s=Error(i(419)),r,void 0))}if(l=!!(a&e.childLanes),ba||l){if(null!==(r=Vl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ni(e,o),nu(r,e,o,-1))}return mu(),Fa(e,t,a,r=ca(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&(Go[Jo++]=Ko,Go[Jo++]=Xo,Go[Jo++]=Yo,Ko=e.id,Xo=e.overflow,Yo=t),(t=ja(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===s?(o=Au(s,u)).subtreeFlags=14680064&s.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?a=Au(r,a):(a=Nu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ma(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Na,o}return e=(a=e.child).sibling,o=Au(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ja(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=ja(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Vi(e.return,t,n)}function qa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ha(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ca(e,t,r.children,n),2&(r=es.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(es,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ts(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qa(t,!0,n,null,i);break;case"together":qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function za(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wa(t),null;case 1:case 17:return Ao(t.type)&&Do(),Wa(t),null;case 3:return r=t.stateNode,Ki(),Oo(Ro),Oo(Vo),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),ka(e,t),Wa(t),null;case 5:Zi(t);var o=Ji(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Aa(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Wa(t),null}if(e=Ji(Wi.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ho]=t,r[fo]=s,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,s),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",r);break;case"textarea":oe(r,s),Fr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),Z(r,s,!0);break;case"textarea":W(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Ia(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Y(e,r),o=J(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":W(e),Z(e,r,!1);break;case"textarea":W(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wa(t),null;case 6:if(e&&null!=t.stateNode)Da(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ji(Gi.current),Ji(Wi.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Wa(t),null;case 13:if(Oo(es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wa(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&es.current?0===Dl&&(Dl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Wa(t),null);case 4:return Ki(),ka(e,t),null===e&&Hr(t.stateNode.containerInfo),Wa(t),null;case 10:return _i(t.type._context),Wa(t),null;case 19:if(Oo(es),null===(s=t.memoizedState))return Wa(t),null;if(r=!!(128&t.flags),null===(l=s.rendering))if(r)Ua(s,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ts(e))){for(t.flags|=128,Ua(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(es,1&es.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Hl&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ts(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Wa(t),null}else 2*Ke()-s.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=es.current,To(es,r?1&n|2:1&n),t):(Wa(t),null);case 22:case 23:return pu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&kl)&&(Wa(t),6&t.subtreeFlags&&(t.flags|=8192)):Wa(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ga(e,t){switch(ni(t),t.tag){case 1:return Ao(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),Oo(Ro),Oo(Vo),rs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Oo(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(es),null;case 4:return Ki(),null;case 10:return _i(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Ia=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ka=function(){},Aa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ji(Wi.current);var i,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Da=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ja=!1,Ya=!1,Ka="function"==typeof WeakSet?WeakSet:Set,Xa=null;function Za(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Pu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Pu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ya||Za(n,t);case 6:var r=cl,o=pl;cl=null,dl(e,t,n),pl=o,null!==(cl=r)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Ya&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(2&i||4&i)&&el(n,t,s),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Ya&&(Za(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Pu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,dl(e,t,n),Ya=r):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ka),t.forEach((function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,o),cl=null,pl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Pu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Pu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Pu(e,e.return,t)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&Za(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&Za(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Pu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Pu(e,e.return,t)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Pu(e,e.return,t)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Pu(e,e.return,t)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(ql=Ke())),4&r&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(c=Ya)||p,ml(t,e),Ya=c):ml(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&1&e.mode)for(Xa=e,p=e.child;null!==p;){for(d=Xa=p;null!==Xa;){switch(f=(h=Xa).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Za(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Pu(r,n,e)}}break;case 5:Za(h,h.return);break;case 22:if(null!==h.memoizedState){wl(d);continue}}null!==f?(f.return=h,Xa=f):wl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Pu(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Pu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),yl(e),4&r&&fl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,al(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(t){Pu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Xa=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xa;){var o=Xa,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ja;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Ja;var u=Ya;if(Ja=s,(Ya=l)&&!u)for(Xa=o;null!==Xa;)l=(s=Xa).child,22===s.tag&&null!==s.memoizedState?xl(o):null!==l?(l.return=s,Xa=l):xl(o);for(;null!==i;)Xa=i,bl(i,t,n),i=i.sibling;Xa=o,Ja=a,Ya=u}Cl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xa=i):Cl(e)}}function Cl(e){for(;null!==Xa;){var t=Xa;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ya||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Qi(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Ya||512&t.flags&&ol(t)}catch(e){Pu(t,t.return,e)}}if(t===e){Xa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xa=n;break}Xa=t.return}}function wl(e){for(;null!==Xa;){var t=Xa;if(t===e){Xa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xa=n;break}Xa=t.return}}function xl(e){for(;null!==Xa;){var t=Xa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Pu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Pu(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Pu(t,i,e)}break;case 5:var s=t.return;try{ol(t)}catch(e){Pu(t,s,e)}}}catch(e){Pu(t,t.return,e)}if(t===e){Xa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Xa=a;break}Xa=t.return}}var El,Pl=Math.ceil,Sl=C.ReactCurrentDispatcher,Ol=C.ReactCurrentOwner,Tl=C.ReactCurrentBatchConfig,_l=0,Vl=null,Rl=null,Il=0,kl=0,Al=So(0),Dl=0,Nl=null,Ml=0,Ll=0,jl=0,Fl=null,Bl=null,ql=0,Hl=1/0,zl=null,Ql=!1,Ul=null,Wl=null,$l=!1,Gl=null,Jl=0,Yl=0,Kl=null,Xl=-1,Zl=0;function eu(){return 6&_l?Ke():-1!==Xl?Xl:Xl=Ke()}function tu(e){return 1&e.mode?2&_l&&0!==Il?Il&-Il:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Kl=null,Error(i(185));yt(e,n,r),2&_l&&e===Vl||(e===Vl&&(!(2&_l)&&(Ll|=n),4===Dl&&au(e,Il)),ru(e,r),1===n&&0===_l&&!(1&t.mode)&&(Hl=Ke()+500,Bo&&zo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?a&n&&!(a&r)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Vl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),so((function(){!(6&_l)&&zo()})),n=null;else{switch(Ct(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Vu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&_l)throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Vl?Il:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gu(e,r);else{t=r;var o=_l;_l|=2;var s=fu();for(Vl===e&&Il===t||(zl=null,Hl=Ke()+500,du(e,t));;)try{vu();break}catch(t){hu(e,t)}Ti(),Sl.current=s,_l=o,null!==Rl?t=0:(Vl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=iu(e,o)),1===t)throw n=Nl,du(e,0),au(e,r),ru(e,Ke()),n;if(6===t)au(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gu(e,r),2===t&&(s=ft(e),0!==s&&(r=s,t=iu(e,s))),1!==t)))throw n=Nl,du(e,0),au(e,r),ru(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Bl,zl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=ql+500-Ke())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,Bl,zl),t);break}wu(e,Bl,zl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pl(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,Bl,zl),r);break}wu(e,Bl,zl);break;default:throw Error(i(329))}}}return ru(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&su(t)),e}function su(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function au(e,t){for(t&=~jl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&_l)throw Error(i(327));xu();var t=dt(e,0);if(!(1&t))return ru(e,Ke()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Nl,du(e,0),au(e,t),ru(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bl,zl),ru(e,Ke()),null}function uu(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(Hl=Ke()+500,Bo&&zo())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&_l)&&xu();var t=_l;_l|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(_l=t))&&zo()}}function pu(){kl=Al.current,Oo(Al)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Ki(),Oo(Ro),Oo(Vo),rs();break;case 5:Zi(r);break;case 4:Ki();break;case 13:case 19:Oo(es);break;case 10:_i(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Vl=e,Rl=e=Au(e.current,null),Il=kl=t,Dl=0,Nl=null,jl=Ll=Ml=0,Bl=Fl=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(r=(n=ki[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}ki=null}return e}function hu(e,t){for(;;){var n=Rl;try{if(Ti(),os.current=Xs,cs){for(var r=as.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}cs=!1}if(ss=0,us=ls=as=null,ps=!1,ds=0,Ol.current=null,null===n||null===n.return){Dl=1,Nl=t,Rl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(!(1&p.mode||0!==d&&11!==d&&15!==d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ga(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ma(s,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ga(a);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ya(y,a,l,0,t),mi(ua(u,l));break e}}s=u=ua(u,l),4!==Dl&&(Dl=2),null===Fl?Fl=[s]:Fl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,ha(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(!(128&s.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,fa(s,l,t));break e}}s=s.return}while(null!==s)}Cu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function fu(){var e=Sl.current;return Sl.current=Xs,null===e?Xs:e}function mu(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Vl||!(268435455&Ml)&&!(268435455&Ll)||au(Vl,Il)}function gu(e,t){var n=_l;_l|=2;var r=fu();for(Vl===e&&Il===t||(zl=null,du(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Ti(),_l=n,Sl.current=r,null!==Rl)throw Error(i(261));return Vl=null,Il=0,Dl}function yu(){for(;null!==Rl;)bu(Rl)}function vu(){for(;null!==Rl&&!Je();)bu(Rl)}function bu(e){var t=El(e.alternate,e,kl);e.memoizedProps=e.pendingProps,null===t?Cu(e):Rl=t,Ol.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ga(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Dl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$a(n,t,kl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Dl&&(Dl=5)}function wu(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Gl);if(6&_l)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Vl&&(Rl=Vl=null,Il=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Vu(tt,(function(){return xu(),null}))),s=!!(15990&n.flags),15990&n.subtreeFlags||s){s=Tl.transition,Tl.transition=null;var a=bt;bt=1;var l=_l;_l|=4,Ol.current=null,function(e,t){if(eo=Qt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=a),h===s&&++p===r&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Qt=!1,Xa=t;null!==Xa;)if(e=(t=Xa).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xa=e;else for(;null!==Xa;){t=Xa;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:na(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;default:throw Error(i(163))}}catch(e){Pu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xa=e;break}Xa=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(to),Qt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ye(),_l=l,bt=a,Tl.transition=s}else e.current=n;if($l&&($l=!1,Gl=e,Jl=o),0===(s=e.pendingLanes)&&(Wl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ql)throw Ql=!1,e=Ul,Ul=null,e;!!(1&Jl)&&0!==e.tag&&xu(),1&(s=e.pendingLanes)?e===Kl?Yl++:(Yl=0,Kl=e):Yl=0,zo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function xu(){if(null!==Gl){var e=Ct(Jl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Jl=0,6&_l)throw Error(i(331));var o=_l;for(_l|=4,Xa=e.current;null!==Xa;){var s=Xa,a=s.child;if(16&Xa.flags){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xa=c;null!==Xa;){var p=Xa;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Xa=d;else for(;null!==Xa;){var h=(p=Xa).sibling,f=p.return;if(il(p),p===c){Xa=null;break}if(null!==h){h.return=f,Xa=h;break}Xa=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Xa=s}}if(2064&s.subtreeFlags&&null!==a)a.return=s,Xa=a;else e:for(;null!==Xa;){if(2048&(s=Xa).flags)switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Xa=v;break e}Xa=s.return}}var b=e.current;for(Xa=b;null!==Xa;){var C=(a=Xa).child;if(2064&a.subtreeFlags&&null!==C)C.return=a,Xa=C;else e:for(a=b;null!==Xa;){if(2048&(l=Xa).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Pu(l,l.return,e)}if(l===a){Xa=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xa=w;break e}Xa=l.return}}if(_l=o,zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Eu(e,t,n){e=Bi(e,t=ha(0,t=ua(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Pu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bi(t,e=fa(t,e=ua(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Vl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Ke()-ql?du(e,0):jl|=n),ru(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Ni(e,t))&&(yt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Vu(e,t){return $e(e,t)}function Ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Ru(e,t,n,r)}function ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)ku(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case E:return Nu(n.children,o,s,t);case P:a=8,o|=8;break;case S:return(e=Iu(12,n,t,2|o)).elementType=S,e.lanes=s,e;case V:return(e=Iu(13,n,t,o)).elementType=V,e.lanes=s,e;case R:return(e=Iu(19,n,t,o)).elementType=R,e.lanes=s,e;case A:return Mu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case _:a=11;break e;case I:a=14;break e;case k:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Iu(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Nu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,s,a,l){return e=new Fu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function qu(e){if(!e)return _o;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ao(n))return Mo(e,n,t)}return t}function Hu(e,t,n,r,o,i,s,a,l){return(e=Bu(n,r,!0,e,0,i,0,a,l)).context=qu(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function zu(e,t,n,r){var o=t.current,i=eu(),s=tu(o);return n=qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,s))&&(nu(e,o,s,i),qi(e,o,s)),s}function Qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)ba=!0;else{if(!(e.lanes&n||128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:Va(t),fi();break;case 5:Xi(t);break;case 1:Ao(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(es,1&es.current),t.flags|=128,null):n&t.child.childLanes?La(e,t,n):(To(es,1&es.current),null!==(e=Qa(e,t,n))?e.sibling:null);To(es,1&es.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ha(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(es,es.current),r)break;return null;case 22:case 23:return t.lanes=0,Pa(e,t,n)}return Qa(e,t,n)}(e,t,n);ba=!!(131072&e.flags)}else ba=!1,ii&&1048576&t.flags&&ei(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=ko(t,Vo.current);Ri(t,n),o=gs(null,t,r,e,o,n);var s=ys();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(r)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=oa,t.stateNode=o,o._reactInternals=t,la(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),Ca(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===I)return 14}return 2}(r),e=na(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Ta(null,t,r,e,n);break e;case 11:t=wa(null,t,r,e,n);break e;case 14:t=xa(null,t,r,na(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ta(e,t,r,o=t.elementType===r?o:na(r,o),n);case 3:e:{if(Va(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),zi(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ra(e,t,r,n,o=ua(Error(i(423)),t));break e}if(r!==o){t=Ra(e,t,r,n,o=ua(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Qa(e,t,n);break e}Ca(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Sa(e,t),Ca(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return La(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):Ca(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 7:return Ca(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ca(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,To(Ei,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Ro.current){t=Qa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=Fi(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Vi(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Vi(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}Ca(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ri(t,n),r=r(o=Ii(o)),t.flags|=1,Ca(e,t,r,n),t.child;case 14:return o=na(r=t.type,t.pendingProps),xa(e,t,r,o=na(r.type,o),n);case 15:return Ea(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),za(e,t),t.tag=1,Ao(r)?(e=!0,Lo(t)):e=!1,Ri(t,n),sa(t,r,o),la(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Ha(e,t,n);case 22:return Pa(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ju(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Qu(s);a.call(e)}}zu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Qu(s);i.call(e)}}var s=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=s,e[mo]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Qu(l);a.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){zu(t,l,n,r)})),l}(n,t,e,o,r);return Qu(s)}Ju.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));zu(e,t,null,null)},Ju.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){zu(null,e,null,null)})),t[mo]=null}},Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),ru(t,Ke()),!(6&_l)&&(Hl=Ke()+500,zo()))}break;case 13:cu((function(){var t=Ni(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Wu(e,1)}},xt=function(e){if(13===e.tag){var t=Ni(e,134217728);null!==t&&nu(t,e,134217728,eu()),Wu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Ni(e,t);null!==n&&nu(n,e,t,eu()),Wu(e,t)}},Pt=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));$(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=uu,Ve=cu;var ec={usingClientEntryPoint:!1,Events:[Co,wo,xo,Oe,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(i(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,s,a),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ju(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(i(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=b.prototype=new v;C.constructor=b,m(C,y.prototype),C.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,o)&&!P.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function V(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+_(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),V(s,t,o,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+_(a=e[u],u);l+=V(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=V(a=a.value,t,o,c=i+_(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],o=0;return V(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k={current:null},A={transition:null},D={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:A,ReactCurrentOwner:E};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=N,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!P.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return k.current.useCallback(e,t)},t.useContext=function(e){return k.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return k.current.useDeferredValue(e)},t.useEffect=function(e,t){return k.current.useEffect(e,t)},t.useId=function(){return k.current.useId()},t.useImperativeHandle=function(e,t,n){return k.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.current.useMemo(e,t)},t.useReducer=function(e,t,n){return k.current.useReducer(e,t,n)},t.useRef=function(e){return k.current.useRef(e)},t.useState=function(e){return k.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)},463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,C(e),!m)if(null!==r(u))m=!0,A(x);else{var t=r(c);null!==t&&D(w,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(O),O=-1),f=!0;var i=h;try{for(C(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!V());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),C(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&D(w,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,P=!1,S=null,O=-1,T=5,_=-1;function V(){return!(t.unstable_now()-_<T)}function R(){if(null!==S){var e=t.unstable_now();_=e;var n=!0;try{n=S(!0,e)}finally{n?E():(P=!1,S=null)}}else P=!1}if("function"==typeof b)E=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,k=I.port2;I.port1.onmessage=R,E=function(){k.postMessage(null)}}else E=function(){y(R,0)};function A(e){S=e,P||(P=!0,E())}function D(e,n){O=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,A(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(O),O=-1):g=!0,D(w,i-s))):(e.sortIndex=a,n(u,e),m||f||(m=!0,A(x))),e},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},522:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));class r{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const o=e.x-t.x,i=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,p=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),m=c+(l-c)*f,g=p+(u-p)*f,y=t.x-m,v=t.y-g;return{c1:new r(l+y,u+v),c2:new r(c+y,p+v)}}constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=s-t;n+=Math.sqrt(r*r+o*o)}e=i,t=s}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class i{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends i{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,s=null;const a=()=>{i=Date.now(),s=null,n=e.apply(r,o),s||(r=null,o=[])};return function(...l){const u=Date.now(),c=t-(u-i);return r=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,n=e.apply(r,o),s||(r=null,o=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!a||!l){const e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const o=this.canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=o.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l;let p=c*e.startPoint.x;p+=3*u*i*e.control1.x,p+=3*l*s*e.control2.x,p+=a*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*l*s*e.control2.y,d+=a*e.endPoint.y;const h=Math.min(e.startWidth+a*r,t.maxWidth);this._drawCurveSegment(p,d,h)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const o of e){const{points:e}=o,i=this._getPointGroupOptions(o);if(e.length>1)for(let n=0;n<e.length;n+=1){const o=e[n],s=new r(o.x,o.y,o.pressure,o.time);0===n&&this._reset(i);const a=this._addPoint(s,i);a&&t(a,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const s=document.createElement("circle"),a=n>0?n:(r+o)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)})),i.outerHTML}}},"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"createPopupModelWithListModel",(function(){return m})),n.d(t,"getActionDropdownButtonTarget",(function(){return g})),n.d(t,"BaseAction",(function(){return y})),n.d(t,"Action",(function(){return v})),n.d(t,"ActionDropdownViewModel",(function(){return b}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return t.locOwner=n,f(e,t,t)}function f(e,t,n){var r,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.hasTitle&&(a.title=e.title),o&&o(e,t)};var i=m(t,n),s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!n,i.show()}}),a=new v(s);return a.data=null===(r=i.contentComponentData)||void 0===r?void 0:r.model,a}function m(e,t){var n=new a.ListModel(e);n.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var r=t||{};r.onDispose=function(){n.dispose()};var o=new l.PopupModel("sv-list",{model:n},r);return o.isFocusedContent=n.showFilter,o.onShow=function(){r.onShow&&r.onShow(),n.scrollToSelectedItem()},o}function g(e){return null==e?void 0:e.previousElementSibling}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.rendredIdValue=t.getNextRendredId(),n.markerIconSize=16,n}return p(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout((function(){t.clearPopupTimeouts(),t.showPopup()}),e)},t.prototype.hidePopupDelayed=function(e){var t,n=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout((function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1}),e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)({defaultValue:24})],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"markerIconName",void 0),d([Object(s.property)()],t.prototype,"markerIconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isPressed",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(o.Base),v=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)"locTitle"===r||"title"===r&&n.locTitle&&n.title||(n[r]=t[r]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var n=m(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});n.cssClass="sv-popup-inner",this.popupModel=n},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose(),this.locTitleValue&&(this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0)},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(y),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",n.push(t.innerItem))),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter((function(e){return!e.disableHide})).sort((function(e,t){return e.removePriority||0-t.removePriority||0}))},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.getActionsToHide().map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e,t){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){"small"==e&&t.disableShrink||(t.mode=e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach((function(n){n===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))}))},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return m})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),m=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRenderedEvent=!0,this.onElementRenderedEventEnabled=!1,this._onElementRerendered=new v,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&i.Helpers.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach((function(t){return e.dependencies[t].dispose()}))},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return a.settings.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return(new s.JsonObject).toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){(new s.JsonObject).toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultPropertyValue(e);if(void 0!==o)return o}return n},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[e]:void 0;return r&&r.localizationName?this.getLocalizationString(r.localizationName):"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(r,t)||this.setArrayPropertyDirectly(e,t):(this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t))},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n,r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r)};if(this.isInternal)i(this);else{o||(o=this);var s=this.getSurvey();s||(s=this),i(s),s!==this&&i(this)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.doBeforeAsynRun=function(e){this.asynExpressionHash||(this.asynExpressionHash=[]);var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,n=new l.ExpressionRunner(e);return n.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},n.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},n},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return a.settings.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!0},e.prototype.disableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRenderedEvent&&this.onElementRenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,void 0)},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/calculatedValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CalculatedValue",(function(){return u}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=n("./src/jsonobject.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ChoicesRestful",(function(){return p})),n.d(t,"ChoicesRestfull",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t.registerPropertyChangedHandlers(["url"],(function(){t.owner&&t.owner.setPropertyValue("isUsingRestful",!!t.url)})),t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.web.encodeUrlParams},set:function(e){l.settings.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return l.settings.web.onBeforeRequestChoices},set:function(e){l.settings.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.settings.web.encodeUrlParams),o=e.processTextEx(this.path,!1,l.settings.web.encodeUrlParams);r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var t=this,n=this.objHash;e.onload=function(){t.beforeLoadRequest(),200===e.status?t.onLoad(t.parseResponse(e.response),n):t.onError(e.statusText,e.responseText)};var r={request:e};l.settings.web.onBeforeRequestChoices&&l.settings.web.onBeforeRequestChoices(this,r),this.beforeSendRequest(),r.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url=void 0,this.path=void 0,this.valueName=void 0,this.titleName=void 0,this.imageLinkName=void 0;for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),r.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new a.WebRequestError(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return l.settings.web.onBeforeRequestChoices},set:function(e){l.settings.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];if(o){var i=o.toLowerCase();if(e.hasOwnProperty(o))return!0;if(o!==i&&e.hasOwnProperty(i))return!0;var s=this.getFirstName(o);if(e.hasOwnProperty(s)){if(o===s)return!0;var a=e[s];if(null!=a){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(o,l);l[s]=a.newValue;var c=this.getValue(o,l);if(!r.Helpers.isTwoValueEquals(u,c,!1,!1,!1))return!0}}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var r=new Array,o=0,i=this.getNonNestedObjectCore(e,t,n,r);!i&&o<r.length;)o=r.length,i=this.getNonNestedObjectCore(e,t,n,r);return i},e.prototype.getNonNestedObjectCore=function(e,t,n,o){var i=this.getFirstPropertyName(t,e,n,o);i&&o.push(i);for(var s=i?[i]:null;t!=i&&e;){if("["==t[0]){var a=this.getObjInArray(e,t);if(!a)return null;e=a.value,t=a.text,s.push(a.index)}else{if(!i&&t==this.getFirstName(t))return{value:e,text:t,path:s};if(e=this.getObjectValue(e,i),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(i.length)}t&&"."==t[0]&&(t=t.substring(1)),(i=this.getFirstPropertyName(t,e,n,o))&&s.push(i)}return{value:e,text:t,path:s}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=void 0),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),i=o[0],s=i.toUpperCase();for(var a in t)if(!(Array.isArray(r)&&r.indexOf(a)>-1)){var l=a[0];if(l===s||l===i){var u=a.toLowerCase();if(u==o)return a;if(o.length<=u.length)continue;var c=o[u.length];if("."!=c&&"["!=c)continue;if(u==o.substring(0,u.length))return a}}if(n&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return l})),n.d(t,"ExpressionRunnerBase",(function(){return u})),n.d(t,"ConditionRunner",(function(){return c})),n.d(t,"ExpressionRunner",(function(){return p}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditionsParser.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new s.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return this.expression&&i.ConsoleWarnings.warn("Invalid expression: "+this.expression),null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),u=function(){function e(t){this._id=e.IdCounter++,this.expression=t}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=l.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(this.id),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(this.id)},e.IdCounter=1,e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(1==t),e.prototype.doOnComplete.call(this,t)},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t)},t}(u)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e.error=function(e){console.error(e)},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};r.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultStandardCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};r.surveyCss.default=o,r.surveyCss.orange=o,r.surveyCss.darkblue=o,r.surveyCss.darkrose=o,r.surveyCss.stone=o,r.surveyCss.winter=o,r.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyCss",(function(){return r})),n.d(t,"defaultV2Css",(function(){return o})),n.d(t,"defaultV2ThemeName",(function(){return i}));var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentFadeIn:"sd-element__content--fade-in",contentFadeOut:"sd-element__content--fade-out",fadeIn:"sd-element-wrapper--fade-in",fadeOut:"sd-element-wrapper--fade-out",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperFadeIn:"sd-paneldynamic__panel-wrapper--fade-in",panelWrapperFadeOut:"sd-paneldynamic__panel-wrapper--fade-out",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowFadeIn:"sd-row--fade-in",rowDelayedFadeIn:"sd-row--delayed-fade-in",rowFadeOut:"sd-row--fade-out",pageRow:"sd-page__row",question:{contentFadeIn:"sd-element__content--fade-in",contentFadeOut:"sd-element__content--fade-out",fadeIn:"sd-element-wrapper--fade-in",fadeOut:"sd-element-wrapper--fade-out",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-v2check",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowFadeIn:"sd-table__row--fade-in",rowFadeOut:"sd-table__row--fade-out",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowFadeIn:"sd-table__row--fade-in",rowFadeOut:"sd-table__row--fade-out",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-v2check",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";r[i]=o},"./src/defaultTitle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultTitleModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new r.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropInfo",(function(){return r}));var r=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}},"./src/drag-drop-page-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPageHelperV1",(function(){return o}));var r=n("./src/drag-drop-helper-v1.ts"),o=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new r.DragDropInfo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(t),i=this.dragDropGetElementIndex(t,o);this.page.updateRowsRemoveElementFromRow(t,o);var s=[],a=[];if(!e&&o){if(this.page.isDesignModeV2){var l=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[i]&&o.panel.elements[i].startWithNewLine&&o.elements.length>1&&o.panel.elements[i]===r&&(s.push(t),a.push(o.panel.elements[i])),!(t.startWithNewLine&&o.elements.length>1)||o.panel.elements[i]&&o.panel.elements[i].startWithNewLine||a.push(t),l&&l.elements[0]===n&&l.elements[1]&&s.push(l.elements[1]),o.elements.length<=1&&s.push(t),t.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&a.push(t)}this.page.survey.startMovingQuestion(),n&&n.parent&&(o.panel==n.parent?(o.panel.dragDropMoveElement(n,t,i),i=-1):n.parent.removeElement(n)),i>-1&&o.panel.addElement(t,i),this.page.survey.stopMovingQuestion()}return s.map((function(e){e.startWithNewLine=!0})),a.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignModeV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPanelHelperV1",(function(){return o}));var r=n("./src/drag-drop-helper-v1.ts"),o=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,o){n||((n=new r.DragDropInfo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=o:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignModeV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var o=-1;n==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&r++;var i=this.panel.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=r)&&r!=o&&(o>-1&&(t.elements.splice(o,1),o<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),o<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var o=t.index;if(e.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var i=this.panel.findRowByElement(e.source);return!(i&&i.panel==r.panel&&1==i.elements.length&&i.index==o||(t.panel.rows.splice(o,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}()},"./src/dragdrop/choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropChoices",(function(){return a}));var r,o=n("./src/dragdrop/core.ts"),i=n("./src/global_variables_utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return s(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=i.DomDocumentHelper.createElement("div");if(r){r.className="sv-drag-drop-choices-shortcut";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.classList.add("sv-drag-drop-choices-shortcut__content"),o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(o);var s=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-s.x,r.shortcutYOffset=n.clientY-s.y,this.isBottom=null,"function"==typeof this.onShortcutCreated&&this.onShortcutCreated(r),r}},t.prototype.createImagePickerShortcut=function(e,t,n,r){var o=i.DomDocumentHelper.createElement("div");if(o){o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n ";var s=n.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=s.querySelector(".svc-image-item-value-controls");var a=s.querySelector(".sd-imagepicker__image-container"),l=s.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);n.splice(o,1),n.splice(r,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropCore",(function(){return s}));var r=n("./src/base.ts"),o=n("./src/dragdrop/dom-adapter.ts"),i=n("./src/global_variables_utils.ts"),s=function(){function e(e,t,n,i){var s,a=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new r.EventBase,this.onDragStart=new r.EventBase,this.onDragEnd=new r.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){a.allowDropHere=!1,a.doBanDropHere(),a.dropTarget=null,a.domAdapter.draggedElementShortcut.style.cursor="not-allowed",a.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,n,null===(s=this.survey)||void 0===s?void 0:s.fitToContainer)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){var e;return this.surveyValue||(null===(e=this.creator)||void 0===e?void 0:e.survey)},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){void 0===o&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.getRootElement=function(e,t){return t?t.rootElement:e.rootElement},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag(e)},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return null==e?void 0:e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=i.DomDocumentHelper.createElement("div");return r&&(r.innerText=e,r.className=this.getDraggedElementClass()),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!i.DomDocumentHelper.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.style.display=n||"block",r?this.findDropTargetNodeByDragOverNode(r):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropDOMAdapter",(function(){return s}));var r=n("./src/utils/utils.ts"),o=n("./src/utils/devices.ts"),i=n("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,n,r){var i=this;void 0===n&&(n=!0),void 0===r&&(r=!1),this.dd=t,this.longTap=n,this.fitToContainer=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),i.currentX=e.pageX,i.currentY=e.pageY,i.isMicroMovement||(i.returnUserSelectBack(),i.stopLongTap())},this.stopLongTap=function(e){clearTimeout(i.timeoutID),i.timeoutID=null,document.removeEventListener("pointerup",i.stopLongTap),document.removeEventListener("pointermove",i.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){i.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&i.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){i.moveShortcutElement(e),i.draggedElementShortcut.style.cursor="grabbing",i.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(i.scrollIntervalId),document.removeEventListener("pointermove",i.dragOver),document.removeEventListener("pointercancel",i.handlePointerCancel),document.removeEventListener("keydown",i.handleEscapeButton),document.removeEventListener("pointerup",i.drop),i.draggedElementShortcut.removeEventListener("pointerup",i.drop),o.IsTouch&&i.draggedElementShortcut.removeEventListener("contextmenu",i.onContextMenu),i.draggedElementShortcut.parentElement.removeChild(i.draggedElementShortcut),i.dd.clear(),i.draggedElementShortcut=null,i.scrollIntervalId=null,o.IsTouch&&(i.savedTargetNode.style.cssText=null,i.savedTargetNode&&i.savedTargetNode.parentElement.removeChild(i.savedTargetNode),i.insertNodeToParentAtIndex(i.savedTargetNodeParent,i.savedTargetNode,i.savedTargetNodeIndex),e.PreventScrolling=!1),i.savedTargetNode=null,i.savedTargetNodeParent=null,i.savedTargetNodeIndex=null,i.returnUserSelectBack()},this.drop=function(){i.dd.drop(),i.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"documentOrShadowRoot",{get:function(){return i.settings.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootElement",{get:function(){return Object(r.isShadowDOM)(i.settings.environment.root)?this.rootContainer||i.settings.environment.root.host:this.rootContainer||i.settings.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout((function(){i.doStartDrag(e,t,n,r),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n position: absolute;\n height: 1px!important;\n width: 1px!important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n ",i.savedTargetNodeParent=i.savedTargetNode.parentElement,i.savedTargetNodeIndex=i.getNodeIndexInParent(i.savedTargetNode),i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(e.clientY,e.clientX);var i=this.draggedElementShortcut.offsetHeight,s=this.draggedElementShortcut.offsetWidth,a=this.draggedElementShortcut.shortcutXOffset||s/2,l=this.draggedElementShortcut.shortcutYOffset||i/2;0!==document.querySelectorAll("[dir='rtl']").length&&(a=s/2,l=i/2);var u=document.documentElement.clientHeight,c=document.documentElement.clientWidth,p=e.pageX,d=e.pageY,h=e.clientX,f=e.clientY;t-=r,n-=o;var m=this.getShortcutBottomCoordinate(f,i,l);return this.getShortcutRightCoordinate(h,s,a)>=c?(this.draggedElementShortcut.style.left=c-s-t+"px",void(this.draggedElementShortcut.style.top=f-l-n+"px")):h-a<=0?(this.draggedElementShortcut.style.left=p-h-t+"px",void(this.draggedElementShortcut.style.top=f-n-l+"px")):m>=u?(this.draggedElementShortcut.style.left=h-a-t+"px",void(this.draggedElementShortcut.style.top=u-i-n+"px")):f-l<=0?(this.draggedElementShortcut.style.left=h-a-t+"px",void(this.draggedElementShortcut.style.top=d-f-n+"px")):(this.draggedElementShortcut.style.left=h-t-a+"px",void(this.draggedElementShortcut.style.top=f-n-l+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.requestAnimationFrame=function(e){return requestAnimationFrame(e)},e.prototype.scrollByDrag=function(e,t,n){var r,o,i,s,a=this,l=100;"HTML"===e.tagName?(r=0,o=document.documentElement.clientHeight,i=0,s=document.documentElement.clientWidth):(r=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().left,s=e.getBoundingClientRect().right);var u=function(){var c=t-r<=l,p=o-t<=l,d=n-i<=l,h=s-n<=l;!c||d||h?!p||d||h?!h||c||p?!d||c||p||(e.scrollLeft-=15):e.scrollLeft+=15:e.scrollTop+=15:e.scrollTop-=15,a.scrollIntervalId=a.requestAnimationFrame(u)};this.scrollIntervalId=this.requestAnimationFrame(u)},e.prototype.doScroll=function(e,t){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var o=this.documentOrShadowRoot.elementFromPoint(t,e);this.draggedElementShortcut.style.display=n||"block";var i=Object(r.findScrollableParent)(o);this.scrollByDrag(i,e,t)},e.prototype.doStartDrag=function(t,n,r,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,i),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},e.prototype.startDrag=function(e,t,n,r,i){void 0===i&&(i=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),o.IsTouch?this.startLongTapProcessing(e,t,n,r,i):this.doStartDrag(e,t,n,r)},e.prototype.getNodeIndexInParent=function(e){return function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.parentElement.childNodes).indexOf(e)},e.prototype.insertNodeToParentAtIndex=function(e,t,n){e.insertBefore(t,e.childNodes[n])},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropMatrixRows",(function(){return a}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/dragdrop/core.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return s(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=o.DomDocumentHelper.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,i=o.DomDocumentHelper.createElement("div");if(i){if(i.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));\n ",t){var s=t.closest("[data-sv-drop-target-matrix-row]"),a=s.cloneNode(!0);a.style.cssText="\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: "+s.offsetWidth+"px;\n ",a.classList.remove("sv-matrix__drag-drop--moveup"),a.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,i.appendChild(a);var l=t.getBoundingClientRect();i.shortcutXOffset=n.clientX-l.x,i.shortcutYOffset=n.clientY-l.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),i}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row&&t.row.id===e}))[0].row},t.prototype.canInsertIntoThisRow=function(e){var t=this.parentElement.lockedRowCount;return t<=0||e.rowIndex>t},t.prototype.isDropTargetValid=function(e,t){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(r,0,i),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var t=o.DomDocumentHelper.getBody();t&&(t.style.userSelect=this.restoreUserSelectValue||"initial"),e.prototype.clear.call(this)},t}(i.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingChoices",(function(){return c}));var r,o=n("./src/itemvalue.ts"),i=n("./src/dragdrop/choices.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/utils/devices.ts"),l=n("./src/global_variables_utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.reorderRankedItem=function(e,n,r){if(n!=r){var o=e.rankingChoices,i=o[n];e.isValueSetByUser=!0,o.splice(n,1),o.splice(r,0,i),t.updateDraggedElementShortcut(r+1)}},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t}return u(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=l.DomDocumentHelper.createElement("div");if(r){r.className=this.shortcutClass+" sv-ranking-shortcut";var o=t.cloneNode(!0);r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new s.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,a.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){return-1!==this.parentElement.rankingChoices.indexOf(e)},t.prototype.calculateIsBottom=function(t,n){if(this.dropTarget instanceof o.ItemValue&&this.draggedElement!==this.dropTarget){var r=n.getBoundingClientRect();return t>=r.y+r.height/2}return e.prototype.calculateIsBottom.call(this,t)},t.prototype.getIndices=function(e,t,n){var r=t.indexOf(this.draggedElement),i=n.indexOf(this.dropTarget);return r<0&&this.draggedElement&&(this.draggedElement=o.ItemValue.getItemByValue(t,this.draggedElement.value)||this.draggedElement,r=t.indexOf(this.draggedElement)),-1===i?i=e.value.length:t==n?(!this.isBottom&&r<i&&i--,this.isBottom&&r>i&&i++):t!=n&&this.isBottom&&i++,{fromIndex:r,toIndex:i}},t.prototype.afterDragOver=function(e){var t=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),n=t.fromIndex,r=t.toIndex;this.reorderRankedItem(this.parentElement,n,r)},t.prototype.updateDraggedElementShortcut=function(e){var t;if(null===(t=this.domAdapter)||void 0===t?void 0:t.draggedElementShortcut){var n=null!==e?e+"":"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=n}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(i.DragDropChoices)},"./src/dragdrop/ranking-select-to-rank.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingSelectToRank",(function(){return s}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectToRank=function(e,n,r){var o=[].concat(e.rankingChoices),i=e.unRankingChoices[n];o.splice(r,0,i),t.updateChoices(e,o)},t.unselectFromRank=function(e,n,r){var o=[].concat(e.rankingChoices);o.splice(n,1),t.updateChoices(e,o)},t}return i(t,e),t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;var n=t.closest("[data-ranking='to-container']"),r=t.closest("[data-ranking='from-container']");return 0===this.parentElement.unRankingChoices.length&&r?r:0===this.parentElement.rankingChoices.length&&n?n:e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,n){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,n)},t.prototype.isDropTargetValid=function(t,n){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,n)},t.prototype.afterDragOver=function(e){var t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;this.isDraggedElementUnranked&&this.isDropTargetRanked?this.doRankBetween(e,r,n,this.selectToRank):this.isDraggedElementRanked&&this.isDropTargetRanked?this.doRankBetween(e,n,n,this.reorderRankedItem):!this.isDraggedElementRanked||this.isDropTargetRanked||this.doRankBetween(e,n,r,this.unselectFromRank)},t.prototype.doRankBetween=function(e,t,n,r){var o=this.parentElement,i=this.getIndices(o,t,n);r(o,i.fromIndex,i.toIndex,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return-1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,t){e.isValueSetByUser=!0,e.rankingChoices=t,e.updateUnRankingChoices(t)},t}(o.DragDropRankingChoices)},"./src/dropdownListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownListModel",(function(){return y}));var r,o=n("./src/base.ts"),i=n("./src/global_variables_utils.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/list.ts"),u=n("./src/popup.ts"),c=n("./src/question_dropdown.ts"),p=n("./src/settings.ts"),d=n("./src/utils/cssClassBuilder.ts"),h=n("./src/utils/devices.ts"),f=n("./src/utils/utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(t,n){var r=e.call(this)||this;return r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.isRunningLoadQuestionChoices=!1,r.popupCssClasses="sv-single-select-list",r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},r.qustionPropertyChangedHandler=function(e,t){r.onPropertyChangedHandler(e,t)},r.htmlCleanerElement=i.DomDocumentHelper.createElement("div"),t.onPropertyChanged.add(r.qustionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings(),r}return m(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return h.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var t=this;this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.isRunningLoadQuestionChoices=!1,t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.filterString&&p.settings.dropdownSearchDelay>0?(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.timer=setTimeout((function(){t.loadQuestionChoices(e)}),p.settings.dropdownSearchDelay)):this.loadQuestionChoices(e))}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new u.PopupModel("sv-list",{model:this.listModel},{verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1}),this._popupModel.displayMode=h.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=h.IsTouch,this._popupModel.setWidthByTarget=!h.IsTouch,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,n){n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),n.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.processPopupVisiblilityChanged(e.popupModel,n.isVisible)}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var t=this;e.setOnTextSearchCallback((function(e,n){if(t.filteredItems)return t.filteredItems.indexOf(e)>=0;var r=e.text.toLocaleLowerCase(),o=(r=p.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(n.toLocaleLowerCase());return"startsWith"==t.question.searchMode?0==o:o>-1}))},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e.popupModel.hide()});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new l.ListModel(r);return this.setOnTextSearchCallbackForListModel(o),o.renderElements=!1,o.forceShowFilter=!0,o.areSameItemsCallback=function(e,t){return e===t},o},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.onPropertyChanged.add((function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach((function(e){return e.disableTabStop=!0}))},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new d.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,this.filterString||this.popupModel.isVisible){var t={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,t),this.filteredItems=t.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var n=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(n)):n()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(null==e?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return h.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=h.IsTouch,this.listModel.showSearchClearButton=h.IsTouch,this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focus())},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent),"textWrapEnabled"==t.name&&this.setTextWrapEnabled(t.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;!n&&this.question.selectedItem?s.ItemValue.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.hide();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(f.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof c.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else 32===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),13===e.keyCode&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.focused=!1,this.popupModel.isVisible&&h.IsTouch?this._popupModel.show():(Object(f.doKey2ClickBlur)(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation())},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.qustionPropertyChangedHandler),this.qustionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},g([Object(a.property)({defaultValue:!1})],t.prototype,"focused",void 0),g([Object(a.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),g([Object(a.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),g([Object(a.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),g([Object(a.property)({})],t.prototype,"showInputFieldComponent",void 0),g([Object(a.property)()],t.prototype,"ariaActivedescendant",void 0),g([Object(a.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),g([Object(a.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownMultiSelectListModel",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/dropdownListModel.ts"),s=n("./src/jsonobject.ts"),a=n("./src/multiSelectListModel.ts"),l=n("./src/settings.ts"),u=n("./src/utils/devices.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupCssClasses="sv-multi-select-list",r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return c(t,e),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.id?e.selectAllItems():"added"===n&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new a.MultiSelectListModel(r);return o.actions.forEach((function(e){return e.disableTabStop=!0})),this.setOnTextSearchCallbackForListModel(o),o.forceShowFilter=!0,o},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,n){e.prototype.onPropertyChangedHandler.call(this,t,n),"value"!==n.name&&"renderedValue"!==n.name&&"placeholder"!==n.name||this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dxSurveyService",(function(){return i}));var r=n("./src/settings.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.settings.web.surveyServiceUrl},set:function(e){r.settings.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(e,t){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+e),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);t(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+e+"&clientId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response),t=e?e.survey:null,o=e?e.isCompleted:null;n(200==r.status,t,o,r.response)},r.send()},e.prototype.canSendResult=function(e){return!this.isSurveJSIOService||JSON.stringify(e).length<65536},Object.defineProperty(e.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf("surveyjs.io")>=0},enumerable:!1,configurable:!0}),e.prototype.sendResult=function(e,t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=!1),this.canSendResult(t)?this.sendResultCore(e,t,n,r,i):n(!1,o.surveyLocalization.getString("savingExceedSize",this.locale),void 0)},e.prototype.sendResultCore=function(e,t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=!1);var i=new XMLHttpRequest;i.open("POST",this.serviceUrl+"/post/"),i.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:e,surveyResult:JSON.stringify(t)};r&&(s.clientId=r),o&&(s.isPartialCompleted=!0);var a=JSON.stringify(s);i.onload=i.onerror=function(){n&&n(200===i.status,i.response,i)},i.send(a)},e.prototype.sendFile=function(e,t,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(200==r.status,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",t),o.append("postId",e),r.send(o)},e.prototype.getResult=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&name="+t;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null,t=null;if(200==r.status)for(var o in t=[],(e=JSON.parse(r.response)).QuestionResult){var i={name:o,value:e.QuestionResult[o]};t.push(i)}n(200==r.status,e,t,r.response)},r.send()},e.prototype.isCompleted=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&clientId="+t;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null;200==r.status&&(e=JSON.parse(r.response)),n(200==r.status,e,r.response)},r.send()},Object.defineProperty(e.prototype,"serviceUrl",{get:function(){return e.serviceUrl||""},enumerable:!1,configurable:!0}),e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return o}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=r.DomDocumentHelper.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return Be})),n.d(t,"ReleaseDate",(function(){return qe})),n.d(t,"checkLibraryVersion",(function(){return ze})),n.d(t,"setLicenseKey",(function(){return Qe})),n.d(t,"slk",(function(){return Ue})),n.d(t,"hasLicense",(function(){return We}));var r=n("./src/global_variables_utils.ts"),o=n("./src/settings.ts");n.d(t,"settings",(function(){return o.settings}));var i=n("./src/helpers.ts");n.d(t,"Helpers",(function(){return i.Helpers}));var s=n("./src/validator.ts");n.d(t,"AnswerCountValidator",(function(){return s.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return s.EmailValidator})),n.d(t,"NumericValidator",(function(){return s.NumericValidator})),n.d(t,"RegexValidator",(function(){return s.RegexValidator})),n.d(t,"SurveyValidator",(function(){return s.SurveyValidator})),n.d(t,"TextValidator",(function(){return s.TextValidator})),n.d(t,"ValidatorResult",(function(){return s.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return s.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return s.ValidatorRunner}));var a=n("./src/itemvalue.ts");n.d(t,"ItemValue",(function(){return a.ItemValue}));var l=n("./src/base.ts");n.d(t,"Base",(function(){return l.Base})),n.d(t,"Event",(function(){return l.Event})),n.d(t,"EventBase",(function(){return l.EventBase})),n.d(t,"ArrayChanges",(function(){return l.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return l.ComputedUpdater}));var u=n("./src/survey-error.ts");n.d(t,"SurveyError",(function(){return u.SurveyError}));var c=n("./src/survey-element.ts");n.d(t,"SurveyElementCore",(function(){return c.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return c.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return c.DragTypeOverMeEnum}));var p=n("./src/calculatedValue.ts");n.d(t,"CalculatedValue",(function(){return p.CalculatedValue}));var d=n("./src/error.ts");n.d(t,"CustomError",(function(){return d.CustomError})),n.d(t,"AnswerRequiredError",(function(){return d.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return d.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return d.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return d.ExceedSizeError}));var h=n("./src/localizablestring.ts");n.d(t,"LocalizableString",(function(){return h.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return h.LocalizableStrings}));var f=n("./src/expressionItems.ts");n.d(t,"HtmlConditionItem",(function(){return f.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return f.UrlConditionItem}));var m=n("./src/choicesRestful.ts");n.d(t,"ChoicesRestful",(function(){return m.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return m.ChoicesRestfull}));var g=n("./src/functionsfactory.ts");n.d(t,"FunctionFactory",(function(){return g.FunctionFactory})),n.d(t,"registerFunction",(function(){return g.registerFunction}));var y=n("./src/conditions.ts");n.d(t,"ConditionRunner",(function(){return y.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return y.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return y.ExpressionExecutor}));var v=n("./src/expressions/expressions.ts");n.d(t,"Operand",(function(){return v.Operand})),n.d(t,"Const",(function(){return v.Const})),n.d(t,"BinaryOperand",(function(){return v.BinaryOperand})),n.d(t,"Variable",(function(){return v.Variable})),n.d(t,"FunctionOperand",(function(){return v.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return v.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return v.UnaryOperand}));var b=n("./src/conditionsParser.ts");n.d(t,"ConditionsParser",(function(){return b.ConditionsParser}));var C=n("./src/conditionProcessValue.ts");n.d(t,"ProcessValue",(function(){return C.ProcessValue}));var w=n("./src/jsonobject.ts");n.d(t,"JsonError",(function(){return w.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return w.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return w.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return w.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return w.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return w.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return w.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return w.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return w.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return w.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return w.Serializer})),n.d(t,"property",(function(){return w.property})),n.d(t,"propertyArray",(function(){return w.propertyArray}));var x=n("./src/question_matrixdropdownbase.ts");n.d(t,"MatrixDropdownCell",(function(){return x.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return x.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return x.QuestionMatrixDropdownModelBase}));var E=n("./src/question_matrixdropdowncolumn.ts");n.d(t,"MatrixDropdownColumn",(function(){return E.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return E.matrixDropdownColumnTypes}));var P=n("./src/question_matrixdropdownrendered.ts");n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return P.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var S=n("./src/question_matrixdropdown.ts");n.d(t,"MatrixDropdownRowModel",(function(){return S.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return S.QuestionMatrixDropdownModel}));var O=n("./src/question_matrixdynamic.ts");n.d(t,"MatrixDynamicRowModel",(function(){return O.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return O.QuestionMatrixDynamicModel}));var T=n("./src/question_matrix.ts");n.d(t,"MatrixRowModel",(function(){return T.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return T.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return T.QuestionMatrixModel}));var _=n("./src/martixBase.ts");n.d(t,"QuestionMatrixBaseModel",(function(){return _.QuestionMatrixBaseModel}));var V=n("./src/question_multipletext.ts");n.d(t,"MultipleTextItemModel",(function(){return V.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return V.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return V.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return V.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return V.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return V.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return V.MultipleTextEditorModel}));var R=n("./src/panel.ts");n.d(t,"PanelModel",(function(){return R.PanelModel})),n.d(t,"PanelModelBase",(function(){return R.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return R.QuestionRowModel}));var I=n("./src/flowpanel.ts");n.d(t,"FlowPanelModel",(function(){return I.FlowPanelModel}));var k=n("./src/page.ts");n.d(t,"PageModel",(function(){return k.PageModel})),n("./src/template-renderer.ts");var A=n("./src/defaultTitle.ts");n.d(t,"DefaultTitleModel",(function(){return A.DefaultTitleModel}));var D=n("./src/question.ts");n.d(t,"Question",(function(){return D.Question}));var N=n("./src/questionnonvalue.ts");n.d(t,"QuestionNonValue",(function(){return N.QuestionNonValue}));var M=n("./src/question_empty.ts");n.d(t,"QuestionEmptyModel",(function(){return M.QuestionEmptyModel}));var L=n("./src/question_baseselect.ts");n.d(t,"QuestionCheckboxBase",(function(){return L.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return L.QuestionSelectBase}));var j=n("./src/question_checkbox.ts");n.d(t,"QuestionCheckboxModel",(function(){return j.QuestionCheckboxModel}));var F=n("./src/question_tagbox.ts");n.d(t,"QuestionTagboxModel",(function(){return F.QuestionTagboxModel}));var B=n("./src/question_ranking.ts");n.d(t,"QuestionRankingModel",(function(){return B.QuestionRankingModel}));var q=n("./src/question_comment.ts");n.d(t,"QuestionCommentModel",(function(){return q.QuestionCommentModel}));var H=n("./src/question_dropdown.ts");n.d(t,"QuestionDropdownModel",(function(){return H.QuestionDropdownModel}));var z=n("./src/questionfactory.ts");n.d(t,"QuestionFactory",(function(){return z.QuestionFactory})),n.d(t,"ElementFactory",(function(){return z.ElementFactory}));var Q=n("./src/question_file.ts");n.d(t,"QuestionFileModel",(function(){return Q.QuestionFileModel}));var U=n("./src/question_html.ts");n.d(t,"QuestionHtmlModel",(function(){return U.QuestionHtmlModel}));var W=n("./src/question_radiogroup.ts");n.d(t,"QuestionRadiogroupModel",(function(){return W.QuestionRadiogroupModel}));var $=n("./src/question_rating.ts");n.d(t,"QuestionRatingModel",(function(){return $.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return $.RenderedRatingItem}));var G=n("./src/question_expression.ts");n.d(t,"QuestionExpressionModel",(function(){return G.QuestionExpressionModel}));var J=n("./src/question_textbase.ts");n.d(t,"QuestionTextBase",(function(){return J.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return J.CharacterCounter}));var Y=n("./src/question_text.ts");n.d(t,"QuestionTextModel",(function(){return Y.QuestionTextModel}));var K=n("./src/question_boolean.ts");n.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var X=n("./src/question_imagepicker.ts");n.d(t,"QuestionImagePickerModel",(function(){return X.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return X.ImageItemValue}));var Z=n("./src/question_image.ts");n.d(t,"QuestionImageModel",(function(){return Z.QuestionImageModel}));var ee=n("./src/question_signaturepad.ts");n.d(t,"QuestionSignaturePadModel",(function(){return ee.QuestionSignaturePadModel}));var te=n("./src/question_paneldynamic.ts");n.d(t,"QuestionPanelDynamicModel",(function(){return te.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return te.QuestionPanelDynamicItem}));var ne=n("./src/surveytimer.ts");n.d(t,"SurveyTimer",(function(){return ne.SurveyTimer}));var re=n("./src/surveyTimerModel.ts");n.d(t,"SurveyTimerModel",(function(){return re.SurveyTimerModel}));var oe=n("./src/surveyToc.ts");n.d(t,"tryFocusPage",(function(){return oe.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return oe.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return oe.getTocRootCss})),n.d(t,"TOCModel",(function(){return oe.TOCModel}));var ie=n("./src/surveyProgress.ts");n.d(t,"SurveyProgressModel",(function(){return ie.SurveyProgressModel}));var se=n("./src/progress-buttons.ts");n.d(t,"ProgressButtons",(function(){return se.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return se.ProgressButtonsResponsivityManager})),n("./src/themes.ts");var ae=n("./src/survey.ts");n.d(t,"SurveyModel",(function(){return ae.SurveyModel})),n("./src/survey-events-api.ts");var le=n("./src/trigger.ts");n.d(t,"SurveyTrigger",(function(){return le.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return le.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return le.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return le.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return le.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return le.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return le.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return le.Trigger}));var ue=n("./src/popup-survey.ts");n.d(t,"PopupSurveyModel",(function(){return ue.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return ue.SurveyWindowModel}));var ce=n("./src/textPreProcessor.ts");n.d(t,"TextPreProcessor",(function(){return ce.TextPreProcessor}));var pe=n("./src/notifier.ts");n.d(t,"Notifier",(function(){return pe.Notifier}));var de=n("./src/header.ts");n.d(t,"Cover",(function(){return de.Cover})),n.d(t,"CoverCell",(function(){return de.CoverCell}));var he=n("./src/dxSurveyService.ts");n.d(t,"dxSurveyService",(function(){return he.dxSurveyService}));var fe=n("./src/localization/english.ts");n.d(t,"englishStrings",(function(){return fe.englishStrings}));var me=n("./src/surveyStrings.ts");n.d(t,"surveyLocalization",(function(){return me.surveyLocalization})),n.d(t,"surveyStrings",(function(){return me.surveyStrings}));var ge=n("./src/questionCustomWidgets.ts");n.d(t,"QuestionCustomWidget",(function(){return ge.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return ge.CustomWidgetCollection}));var ye=n("./src/question_custom.ts");n.d(t,"QuestionCustomModel",(function(){return ye.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return ye.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return ye.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return ye.ComponentCollection}));var ve=n("./src/stylesmanager.ts");n.d(t,"StylesManager",(function(){return ve.StylesManager}));var be=n("./src/list.ts");n.d(t,"ListModel",(function(){return be.ListModel}));var Ce=n("./src/multiSelectListModel.ts");n.d(t,"MultiSelectListModel",(function(){return Ce.MultiSelectListModel}));var we=n("./src/popup.ts");n.d(t,"PopupModel",(function(){return we.PopupModel})),n.d(t,"createDialogOptions",(function(){return we.createDialogOptions}));var xe=n("./src/popup-view-model.ts");n.d(t,"PopupBaseViewModel",(function(){return xe.PopupBaseViewModel}));var Ee=n("./src/popup-dropdown-view-model.ts");n.d(t,"PopupDropdownViewModel",(function(){return Ee.PopupDropdownViewModel}));var Pe=n("./src/popup-modal-view-model.ts");n.d(t,"PopupModalViewModel",(function(){return Pe.PopupModalViewModel}));var Se=n("./src/popup-utils.ts");n.d(t,"createPopupViewModel",(function(){return Se.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return Se.createPopupModalViewModel}));var Oe=n("./src/dropdownListModel.ts");n.d(t,"DropdownListModel",(function(){return Oe.DropdownListModel}));var Te=n("./src/dropdownMultiSelectListModel.ts");n.d(t,"DropdownMultiSelectListModel",(function(){return Te.DropdownMultiSelectListModel}));var _e=n("./src/question_buttongroup.ts");n.d(t,"QuestionButtonGroupModel",(function(){return _e.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return _e.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return _e.ButtonGroupItemValue}));var Ve=n("./src/utils/devices.ts");n.d(t,"IsMobile",(function(){return Ve.IsMobile})),n.d(t,"IsTouch",(function(){return Ve.IsTouch})),n.d(t,"_setIsTouch",(function(){return Ve._setIsTouch}));var Re=n("./src/utils/utils.ts");n.d(t,"confirmAction",(function(){return Re.confirmAction})),n.d(t,"confirmActionAsync",(function(){return Re.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return Re.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return Re.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return Re.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return Re.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return Re.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return Re.increaseHeightByContent})),n.d(t,"createSvg",(function(){return Re.createSvg})),n.d(t,"chooseFiles",(function(){return Re.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return Re.sanitizeEditableContent}));var Ie=n("./src/mask/mask_base.ts");n.d(t,"InputMaskBase",(function(){return Ie.InputMaskBase}));var ke=n("./src/mask/mask_pattern.ts");n.d(t,"InputMaskPattern",(function(){return ke.InputMaskPattern}));var Ae=n("./src/mask/mask_numeric.ts");n.d(t,"InputMaskNumeric",(function(){return Ae.InputMaskNumeric}));var De=n("./src/mask/mask_datetime.ts");n.d(t,"InputMaskDateTime",(function(){return De.InputMaskDateTime}));var Ne=n("./src/mask/mask_currency.ts");n.d(t,"InputMaskCurrency",(function(){return Ne.InputMaskCurrency}));var Me=n("./src/utils/cssClassBuilder.ts");n.d(t,"CssClassBuilder",(function(){return Me.CssClassBuilder}));var Le=n("./src/defaultCss/defaultV2Css.ts");n.d(t,"surveyCss",(function(){return Le.surveyCss})),n.d(t,"defaultV2Css",(function(){return Le.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return Le.defaultV2ThemeName}));var je=n("./src/dragdrop/core.ts");n.d(t,"DragDropCore",(function(){return je.DragDropCore}));var Fe=n("./src/dragdrop/choices.ts");n.d(t,"DragDropChoices",(function(){return Fe.DragDropChoices}));var Be,qe,He=n("./src/dragdrop/ranking-select-to-rank.ts");function ze(e,t){if(Be!=e){var n="survey-core has version '"+Be+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}function Qe(e){Ue(e)}function Ue(e){!function(e,t,n){if(e){var o=function(e){var t,n,r,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<u;n++)for(i=(i<<6)+o[e.charAt(n)],s+=6;s>=8;)((r=i>>>(s-=8)&255)||n<u-2)&&(a+=l(r));return a}(e);if(o){var i=o.indexOf(";");i<0||function(e){if(!e)return!0;var t="domains:",n=e.indexOf(t);if(n<0)return!0;var o=e.substring(n+8).toLowerCase().split(",");if(!Array.isArray(o)||0===o.length)return!0;var i=r.DomWindowHelper.getLocation();if(i&&i.hostname){var s=i.hostname.toLowerCase();o.push("localhost");for(var a=0;a<o.length;a++)if(s.indexOf(o[a])>-1)return!0;return!1}return!0}(o.substring(0,i))&&(o=o.substring(i+1)).split(",").forEach((function(e){var r=e.indexOf("=");r>0&&(t[e.substring(0,r)]=new Date(n)<=new Date(e.substring(r+1)))}))}}}(e,$e,qe)}function We(e){return!0===$e[e.toString()]}n.d(t,"DragDropRankingSelectToRank",(function(){return He.DragDropRankingSelectToRank})),Be="1.11.5",qe="2024-07-03";var $e={}},"./src/entries/core-wo-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/chunks/model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"slk",(function(){return r.slk})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return r.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return r.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return r.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return r.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return r.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"ProgressButtons",(function(){return r.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return r.ProgressButtonsResponsivityManager})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return r.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"Cover",(function(){return r.Cover})),n.d(t,"CoverCell",(function(){return r.CoverCell})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"confirmActionAsync",(function(){return r.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"chooseFiles",(function(){return r.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"InputMaskBase",(function(){return r.InputMaskBase})),n.d(t,"InputMaskPattern",(function(){return r.InputMaskPattern})),n.d(t,"InputMaskNumeric",(function(){return r.InputMaskNumeric})),n.d(t,"InputMaskDateTime",(function(){return r.InputMaskDateTime})),n.d(t,"InputMaskCurrency",(function(){return r.InputMaskCurrency})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank}));var o=n("./src/defaultCss/cssstandard.ts");n.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=n("./src/defaultCss/cssmodern.ts");n.d(t,"modernCss",(function(){return i.modernCss}));var s=n("./src/svgbundle.ts");n.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=n("./src/rendererFactory.ts");n.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return u.unwrap})),n.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),n.d(t,"getElement",(function(){return u.getElement}));var c=n("./src/actions/action.ts");n.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),n.d(t,"createPopupModelWithListModel",(function(){return c.createPopupModelWithListModel})),n.d(t,"getActionDropdownButtonTarget",(function(){return c.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return c.BaseAction})),n.d(t,"Action",(function(){return c.Action})),n.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=n("./src/utils/animation.ts");n.d(t,"AnimationUtils",(function(){return p.AnimationUtils})),n.d(t,"AnimationPropertyUtils",(function(){return p.AnimationPropertyUtils})),n.d(t,"AnimationGroupUtils",(function(){return p.AnimationGroupUtils})),n.d(t,"AnimationProperty",(function(){return p.AnimationProperty})),n.d(t,"AnimationBoolean",(function(){return p.AnimationBoolean})),n.d(t,"AnimationGroup",(function(){return p.AnimationGroup})),n.d(t,"AnimationTab",(function(){return p.AnimationTab}));var d=n("./src/actions/adaptive-container.ts");n.d(t,"AdaptiveActionContainer",(function(){return d.AdaptiveActionContainer}));var h=n("./src/actions/container.ts");n.d(t,"defaultActionBarCss",(function(){return h.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return h.ActionContainer}));var f=n("./src/utils/dragOrClickHelper.ts");n.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/core-wo-model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"slk",(function(){return r.slk})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return r.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return r.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return r.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return r.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return r.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"ProgressButtons",(function(){return r.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return r.ProgressButtonsResponsivityManager})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return r.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"Cover",(function(){return r.Cover})),n.d(t,"CoverCell",(function(){return r.CoverCell})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"confirmActionAsync",(function(){return r.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"chooseFiles",(function(){return r.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"InputMaskBase",(function(){return r.InputMaskBase})),n.d(t,"InputMaskPattern",(function(){return r.InputMaskPattern})),n.d(t,"InputMaskNumeric",(function(){return r.InputMaskNumeric})),n.d(t,"InputMaskDateTime",(function(){return r.InputMaskDateTime})),n.d(t,"InputMaskCurrency",(function(){return r.InputMaskCurrency})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank})),n.d(t,"defaultStandardCss",(function(){return r.defaultStandardCss})),n.d(t,"modernCss",(function(){return r.modernCss})),n.d(t,"SvgIconRegistry",(function(){return r.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return r.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return r.SvgBundleViewModel})),n.d(t,"RendererFactory",(function(){return r.RendererFactory})),n.d(t,"ResponsivityManager",(function(){return r.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return r.VerticalResponsivityManager})),n.d(t,"unwrap",(function(){return r.unwrap})),n.d(t,"getOriginalEvent",(function(){return r.getOriginalEvent})),n.d(t,"getElement",(function(){return r.getElement})),n.d(t,"createDropdownActionModel",(function(){return r.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return r.createDropdownActionModelAdvanced})),n.d(t,"createPopupModelWithListModel",(function(){return r.createPopupModelWithListModel})),n.d(t,"getActionDropdownButtonTarget",(function(){return r.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return r.BaseAction})),n.d(t,"Action",(function(){return r.Action})),n.d(t,"ActionDropdownViewModel",(function(){return r.ActionDropdownViewModel})),n.d(t,"AnimationUtils",(function(){return r.AnimationUtils})),n.d(t,"AnimationPropertyUtils",(function(){return r.AnimationPropertyUtils})),n.d(t,"AnimationGroupUtils",(function(){return r.AnimationGroupUtils})),n.d(t,"AnimationProperty",(function(){return r.AnimationProperty})),n.d(t,"AnimationBoolean",(function(){return r.AnimationBoolean})),n.d(t,"AnimationGroup",(function(){return r.AnimationGroup})),n.d(t,"AnimationTab",(function(){return r.AnimationTab})),n.d(t,"AdaptiveActionContainer",(function(){return r.AdaptiveActionContainer})),n.d(t,"defaultActionBarCss",(function(){return r.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return r.ActionContainer})),n.d(t,"DragOrClickHelper",(function(){return r.DragOrClickHelper}));var o=n("./src/survey.ts");n.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnswerRequiredError",(function(){return a})),n.d(t,"OneAnswerRequiredError",(function(){return l})),n.d(t,"RequreNumericError",(function(){return u})),n.d(t,"ExceedSizeError",(function(){return c})),n.d(t,"WebRequestError",(function(){return p})),n.d(t,"WebRequestEmptyError",(function(){return d})),n.d(t,"OtherEmptyError",(function(){return h})),n.d(t,"UploadingFileError",(function(){return f})),n.d(t,"RequiredInAllRowsError",(function(){return m})),n.d(t,"EachRowUniqueError",(function(){return g})),n.d(t,"MinRowCountError",(function(){return y})),n.d(t,"KeyDuplicationError",(function(){return v})),n.d(t,"CustomError",(function(){return b}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/survey-error.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(i.SurveyError),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),b=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionItem",(function(){return l})),n.d(t,"HtmlConditionItem",(function(){return u})),n.d(t,"UrlConditionItem",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:An},c=An,p=function(e,t){return rr(e,t,!0)},d="||",h=_n("||",!1),f="or",m=_n("or",!0),g=function(){return"or"},y="&&",v=_n("&&",!1),b="and",C=_n("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},E="<=",P=_n("<=",!1),S="lessorequal",O=_n("lessorequal",!0),T=function(){return"lessorequal"},_=">=",V=_n(">=",!1),R="greaterorequal",I=_n("greaterorequal",!0),k=function(){return"greaterorequal"},A="==",D=_n("==",!1),N="equal",M=_n("equal",!0),L=function(){return"equal"},j="=",F=_n("=",!1),B="!=",q=_n("!=",!1),H="notequal",z=_n("notequal",!0),Q=function(){return"notequal"},U="<",W=_n("<",!1),$="less",G=_n("less",!0),J=function(){return"less"},Y=">",K=_n(">",!1),X="greater",Z=_n("greater",!0),ee=function(){return"greater"},te="+",ne=_n("+",!1),re=function(){return"plus"},oe="-",ie=_n("-",!1),se=function(){return"minus"},ae="*",le=_n("*",!1),ue=function(){return"mul"},ce="/",pe=_n("/",!1),de=function(){return"div"},he="%",fe=_n("%",!1),me=function(){return"mod"},ge="^",ye=_n("^",!1),ve="power",be=_n("power",!0),Ce=function(){return"power"},we="*=",xe=_n("*=",!1),Ee="contains",Pe=_n("contains",!0),Se="contain",Oe=_n("contain",!0),Te=function(){return"contains"},_e="notcontains",Ve=_n("notcontains",!0),Re="notcontain",Ie=_n("notcontain",!0),ke=function(){return"notcontains"},Ae="anyof",De=_n("anyof",!0),Ne=function(){return"anyof"},Me="allof",Le=_n("allof",!0),je=function(){return"allof"},Fe="(",Be=_n("(",!1),qe=")",He=_n(")",!1),ze=function(e){return e},Qe=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=_n("!",!1),$e="negate",Ge=_n("negate",!0),Je=function(e){return new o.UnaryOperand(e,"negate")},Ye=function(e,t){return new o.UnaryOperand(e,t)},Ke="empty",Xe=_n("empty",!0),Ze=function(){return"empty"},et="notempty",tt=_n("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=_n("undefined",!1),it="null",st=_n("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=_n("{",!1),pt="}",dt=_n("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=_n("''",!1),yt=function(){return""},vt='""',bt=_n('""',!1),Ct="'",wt=_n("'",!1),xt=function(e){return"'"+e+"'"},Et='"',Pt=_n('"',!1),St="[",Ot=_n("[",!1),Tt="]",_t=_n("]",!1),Vt=function(e){return e},Rt=",",It=_n(",",!1),kt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},At="true",Dt=_n("true",!0),Nt=function(){return!0},Mt="false",Lt=_n("false",!0),jt=function(){return!1},Ft="0x",Bt=_n("0x",!1),qt=function(){return parseInt(Tn(),16)},Ht=/^[\-]/,zt=Vn(["-"],!1,!1),Qt=function(e,t){return null==e?t:-t},Ut=".",Wt=_n(".",!1),$t=function(){return parseFloat(Tn())},Gt=function(){return parseInt(Tn(),10)},Jt="0",Yt=_n("0",!1),Kt=function(){return 0},Xt=function(e){return e.join("")},Zt="\\'",en=_n("\\'",!1),tn=function(){return"'"},nn='\\"',rn=_n('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=Vn(['"',"'"],!0,!1),ln=function(){return Tn()},un=/^[^{}]/,cn=Vn(["{","}"],!0,!1),pn=/^[0-9]/,dn=Vn([["0","9"]],!1,!1),hn=/^[1-9]/,fn=Vn([["1","9"]],!1,!1),mn=/^[a-zA-Z_]/,gn=Vn([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=Vn([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],En=0,Pn=[],Sn=0,On={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Tn(){return e.substring(wn,Cn)}function _n(e,t){return{type:"literal",text:e,ignoreCase:t}}function Vn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function kn(e){Cn<En||(Cn>En&&(En=Cn,Pn=[]),Pn.push(e))}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Nn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Dn(){var t,n,r=34*Cn+1,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Sn&&kn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Sn&&kn(m))),n!==l&&(wn=t,n=g()),t=n,On[r]={nextPos:Cn,result:t},t)}function Nn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Mn(){var t,n,r=34*Cn+3,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Sn&&kn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Sn&&kn(C))),n!==l&&(wn=t,n=w()),t=n,On[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function jn(){var t,n,r=34*Cn+5,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===E?(n=E,Cn+=2):(n=l,0===Sn&&kn(P)),n===l&&(e.substr(Cn,11).toLowerCase()===S?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(O))),n!==l&&(wn=t,n=T()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===_?(n=_,Cn+=2):(n=l,0===Sn&&kn(V)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Sn&&kn(I))),n!==l&&(wn=t,n=k()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===A?(n=A,Cn+=2):(n=l,0===Sn&&kn(D)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=j,Cn++):(n=l,0===Sn&&kn(F)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Sn&&kn(q)),n===l&&(e.substr(Cn,8).toLowerCase()===H?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(z))),n!==l&&(wn=t,n=Q()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Sn&&kn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===$?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(G))),n!==l&&(wn=t,n=J()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=Y,Cn++):(n=l,0===Sn&&kn(K)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Z))),n!==l&&(wn=t,n=ee()),t=n)))))),On[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Sn&&kn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Sn&&kn(ie)),n!==l&&(wn=t,n=se()),t=n),On[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+9,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Sn&&kn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Sn&&kn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Sn&&kn(fe)),n!==l&&(wn=t,n=me()),t=n)),On[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+11,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=ge,Cn++):(n=l,0===Sn&&kn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(be))),n!==l&&(wn=t,n=Ce()),t=n,On[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=$n())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Sn&&kn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Ee?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(Pe)),n===l&&(e.substr(Cn,7).toLowerCase()===Se?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Oe)))),n!==l&&(wn=t,n=Te()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===_e?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(Ve)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Sn&&kn(Ie))),n!==l&&(wn=t,n=ke()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ae?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(De)),n!==l&&(wn=t,n=Ne()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Me?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Le)),n!==l&&(wn=t,n=je()),t=n))),On[r]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+14,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Fe,Cn++):(n=l,0===Sn&&kn(Be)),n!==l&&nr()!==l&&(r=An())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=qe,Cn++):(o=l,0===Sn&&kn(He)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=On[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Zn())!==l?(40===e.charCodeAt(Cn)?(r=Fe,Cn++):(r=l,0===Sn&&kn(Be)),r!==l&&(o=Jn())!==l?(41===e.charCodeAt(Cn)?(i=qe,Cn++):(i=l,0===Sn&&kn(He)),i===l&&(i=null),i!==l?(wn=t,t=n=Qe(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),On[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Sn&&kn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===$e?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Sn&&kn(Ge))),n!==l&&nr()!==l&&(r=An())!==l?(wn=t,t=n=Je(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=Gn())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ke?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Xe)),n!==l&&(wn=t,n=Ze()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(tt)),n!==l&&(wn=t,n=nt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ye(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=Gn())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=St,Cn++):(n=l,0===Sn&&kn(Ot)),n!==l&&(r=Jn())!==l?(93===e.charCodeAt(Cn)?(o=Tt,Cn++):(o=l,0===Sn&&kn(_t)),o!==l?(wn=t,t=n=Vt(r)):(Cn=t,t=l)):(Cn=t,t=l),On[i]={nextPos:Cn,result:t},t)}()))),On[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+18,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Sn&&kn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Sn&&kn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===At?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(Dt)),n!==l&&(wn=t,n=Nt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Mt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Lt)),n!==l&&(wn=t,n=jt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===Ft?(n=Ft,Cn+=2):(n=l,0===Sn&&kn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=qt()):(Cn=t,t=l),t===l&&(t=Cn,Ht.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Sn&&kn(Wt)),r!==l&&er()!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn));else t=l;return On[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Jt,Cn++):(n=l,0===Sn&&kn(Yt)),n!==l&&(wn=t,n=Kt()),t=n)),On[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Qt(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Zn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===mt?(n=mt,Cn+=2):(n=l,0===Sn&&kn(gt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Sn&&kn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Sn&&kn(wt)),n!==l&&(r=Yn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Sn&&kn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Et,Cn++):(n=l,0===Sn&&kn(Pt)),n!==l&&(r=Yn())!==l?(34===e.charCodeAt(Cn)?(o=Et,Cn++):(o=l,0===Sn&&kn(Pt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),On[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Sn&&kn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Sn&&kn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),On[i]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=On[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=An())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=kt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return On[c]={nextPos:Cn,result:t},t}function Yn(){var e,t,n,r=34*Cn+26,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Kn())!==l)for(;n!==l;)t.push(n),n=Kn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}function Kn(){var t,n,r=34*Cn+27,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Zt?(n=Zt,Cn+=2):(n=l,0===Sn&&kn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Sn&&kn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(an)),n!==l&&(wn=t,n=ln()),t=n)),On[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(cn)),n!==l&&(wn=t,n=ln()),t=n,On[r]={nextPos:Cn,result:t},t)}function Zn(){var e,t,n,r,o,i,s=34*Cn+29,a=On[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return On[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn));else t=l;return On[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn)),n!==l)for(;n!==l;)t.push(n),mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn));else t=l;return On[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=On[r];if(o)return Cn=o.nextPos,o.result;for(Sn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));return Sn--,t===l&&(n=l,0===Sn&&kn(yn)),On[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&kn({type:"end"}),r=Pn,i=En<e.length?e.charAt(En):null,a=En<e.length?In(En,En+1):In(En,En),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return m})),n.d(t,"OperandMaker",(function(){return g}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=g.unaryFunctions[n],null==r.consumer&&g.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]&&(e.length<2||"."!==e[1]&&","!==e[1])?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n,r){return!e.binaryFunctions.equal(t,n,r)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FlowPanelModel",(function(){return l}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],(function(){n.onContentChanged()})),n}return a(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!s.DomWindowHelper.isAvailable())return!1;var n=s.DomWindowHelper.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);r.deleteContents();var o=new Text(e);if(r.insertNode(o),this.getContent){var i=this.getContent(t);this.content=i}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new l}),"panel")},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return a})),n.d(t,"registerFunction",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditions.ts"),a=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n,r){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return i.ConsoleWarnings.warn("Unknown function name: "+e),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(t,r)},e.Instance=new e,e}(),l=a.Instance.register;function u(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)u(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function c(e){var t=[];u(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function p(e,t){var n=[];u(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function d(e,t,n,o,i,s){return!e||r.Helpers.isValueEmpty(e[t])||s&&!s.run(e)?n:o(n,i?"string"==typeof(a=e[t])?r.Helpers.isNumber(a)?r.Helpers.getNumber(a):void 0:a:1);var a}function h(e,t,n,r){void 0===r&&(r=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var n=e[0];if(!n)return null;if(!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;var r=e[1];if("string"!=typeof r&&!(r instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"==typeof o||o instanceof String||(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:n,name:r,expression:o}}(e,t);if(o){var i=o.expression?new s.ConditionRunner(o.expression):void 0;i&&i.isAsync&&(i=void 0);var a=void 0;if(Array.isArray(o.data))for(var l=0;l<o.data.length;l++)a=d(o.data[l],o.name,a,n,r,i);else for(var u in o.data)a=d(o.data[u],o.name,a,n,r,i);return a}}function f(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==n?n:0}function m(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==n?n:0}function g(e,t,n){if("days"===n)return b([e,t]);var r=e?new Date(e):new Date,o=t?new Date(t):new Date;n=n||"years";var i=12*(o.getFullYear()-r.getFullYear())+o.getMonth()-r.getMonth();return o.getDate()<r.getDate()&&(i-=1),"months"===n?i:~~(i/12)}function y(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function v(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function b(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}function C(e){var t=v(void 0);return e&&e[0]&&(t=new Date(e[0])),t}function w(e,t){if(e&&t){for(var n=["row","panel","survey"],r=0;r<n.length;r++){var o=e[n[r]];if(o&&o.getQuestionByName){var i=o.getQuestionByName(t);if(i)return i}}return null}}a.Instance.register("sum",c),a.Instance.register("min",(function(e){return p(e,!0)})),a.Instance.register("max",(function(e){return p(e,!1)})),a.Instance.register("count",(function(e){var t=[];return u(e,t),t.length})),a.Instance.register("avg",(function(e){var t=[];u(e,t);var n=c(e);return t.length>0?n/t.length:0})),a.Instance.register("sumInArray",f),a.Instance.register("minInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),a.Instance.register("maxInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),a.Instance.register("countInArray",m),a.Instance.register("avgInArray",(function(e,t){var n=m(e,t);return 0==n?0:f(e,t)/n})),a.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),a.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),a.Instance.register("age",(function(e){return!Array.isArray(e)||e.length<1||!e[0]?null:g(e[0],void 0,(e.length>1?e[1]:"")||"years")})),a.Instance.register("dateDiff",(function(e){return!Array.isArray(e)||e.length<2||!e[0]||!e[1]?null:g(e[0],e[1],(e.length>2?e[2]:"")||"days")})),a.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!y(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return y(n)})),a.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),a.Instance.register("currentDate",(function(){return new Date})),a.Instance.register("today",v),a.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),a.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),a.Instance.register("diffDays",b),a.Instance.register("year",(function(e){return C(e).getFullYear()})),a.Instance.register("month",(function(e){return C(e).getMonth()+1})),a.Instance.register("day",(function(e){return C(e).getDate()})),a.Instance.register("weekday",(function(e){return C(e).getDay()})),a.Instance.register("displayValue",(function(e){var t=w(this,e[0]);return t?t.displayValue:""})),a.Instance.register("propertyValue",(function(e){if(2===e.length&&e[0]&&e[1]){var t=w(this,e[0]);return t?t[e[1]]:void 0}})),a.Instance.register("substring",(function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var n=e[1];if(!r.Helpers.isNumber(n))return"";var o=e.length>2?e[2]:void 0;return r.Helpers.isNumber(o)?t.substring(n,o):t.substring(n)}))},"./src/global_variables_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DomWindowHelper",(function(){return r})),n.d(t,"DomDocumentHelper",(function(){return o}));var r=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}()},"./src/header.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CoverCell",(function(){return c})),n.d(t,"Cover",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/utils/utils.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(){function e(e,t,n){this.cover=e,this.positionX=t,this.positionY=n}return e.prototype.calcRow=function(e){return"top"===e?1:"middle"===e?2:3},e.prototype.calcColumn=function(e){return"left"===e?1:"center"===e?2:3},e.prototype.calcAlignItems=function(e){return"left"===e?"flex-start":"center"===e?"center":"flex-end"},e.prototype.calcAlignText=function(e){return"left"===e?"start":"center"===e?"center":"end"},e.prototype.calcJustifyContent=function(e){return"top"===e?"flex-start":"middle"===e?"center":"flex-end"},Object.defineProperty(e.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return e.CLASSNAME+" "+e.CLASSNAME+"--"+this.positionX+" "+e.CLASSNAME+"--"+this.positionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e={};return e.gridColumn=this.calcColumn(this.positionX),e.gridRow=this.calcRow(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e={};return e.textAlign=this.calcAlignText(this.positionX),e.alignItems=this.calcAlignItems(this.positionX),e.justifyContent=this.calcJustifyContent(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),e.CLASSNAME="sv-header__cell",e}(),p=function(e){function t(){var t=e.call(this)||this;return t.cells=[],["top","middle","bottom"].forEach((function(e){return["left","center","right"].forEach((function(n){return t.cells.push(new c(t,n,e))}))})),t.init(),t}return l(t,e),t.prototype.calcBackgroundSize=function(e){return"fill"===e?"100% 100%":"tile"===e?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=(new s.CssClassBuilder).append("sv-header").append("sv-header__without-background","transparent"===this.backgroundColor&&!this.backgroundImage).append("sv-header__background-color--none","transparent"===this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&"transparent"!==this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth="survey"===this.inheritWidthFrom&&!!e&&"static"===e&&this.survey.renderedWidth,this.contentClasses=(new s.CssClassBuilder).append("sv-header__content").append("sv-header__content--static","survey"===this.inheritWidthFrom&&!!e&&"static"===e).append("sv-header__content--responsive","container"===this.inheritWidthFrom||!!e&&"responsive"===e).toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=(new s.CssClassBuilder).append("sv-header__background-image").append("sv-header__background-image--contain","contain"===this.backgroundImageFit).append("sv-header__background-image--tile","tile"===this.backgroundImageFit).toString()},t.prototype.fromTheme=function(t){e.prototype.fromJSON.call(this,t.header||{}),t.cssVariables&&(this.backgroundColor=t.cssVariables["--sjs-header-backcolor"],this.titleColor=t.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=t.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=Object(a.wrapUrlForBackgroundImage)(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.height&&(this.survey&&!this.survey.isMobile||!this.survey)?Math.max(this.height,this.actualHeight+40)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var t=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add((function(e,n){"widthMode"!=n.name&&"width"!=n.name||t.updateContentClasses()}))))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"backgroundColor"!==t&&"backgroundImage"!==t&&"overlapEnabled"!==t||this.updateHeaderClasses(),"inheritWidthFrom"===t&&this.updateContentClasses(),"backgroundImageFit"===t&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,t,n){var r=["top","middle","bottom"],o=r.indexOf(this.logoPositionY),i=r.indexOf(this.titlePositionY),s=r.indexOf(this.descriptionPositionY),a=["left","center","right"],l=a.indexOf(this.logoPositionX),u=a.indexOf(this.titlePositionX),c=a.indexOf(this.descriptionPositionX),p=[[0,0,0],[0,0,0],[0,0,0]];return p[o][l]=e,p[i][u]+=t,p[s][c]+=n,p.reduce((function(e,t){return e+Math.max.apply(Math,t)}),0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement){var t=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],n=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],o=t?t.getBoundingClientRect().height:0,i=n?n.getBoundingClientRect().height:0,s=r?r.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(o,i,s)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||"transparent"!==this.backgroundColor},enumerable:!1,configurable:!0}),u([Object(i.property)({defaultValue:0})],t.prototype,"actualHeight",void 0),u([Object(i.property)()],t.prototype,"height",void 0),u([Object(i.property)()],t.prototype,"inheritWidthFrom",void 0),u([Object(i.property)()],t.prototype,"textAreaWidth",void 0),u([Object(i.property)()],t.prototype,"textGlowEnabled",void 0),u([Object(i.property)()],t.prototype,"overlapEnabled",void 0),u([Object(i.property)()],t.prototype,"backgroundColor",void 0),u([Object(i.property)()],t.prototype,"titleColor",void 0),u([Object(i.property)()],t.prototype,"descriptionColor",void 0),u([Object(i.property)({onSet:function(e,t){t.renderBackgroundImage=Object(a.wrapUrlForBackgroundImage)(e)}})],t.prototype,"backgroundImage",void 0),u([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),u([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),u([Object(i.property)()],t.prototype,"backgroundImageOpacity",void 0),u([Object(i.property)()],t.prototype,"logoPositionX",void 0),u([Object(i.property)()],t.prototype,"logoPositionY",void 0),u([Object(i.property)()],t.prototype,"titlePositionX",void 0),u([Object(i.property)()],t.prototype,"titlePositionY",void 0),u([Object(i.property)()],t.prototype,"descriptionPositionX",void 0),u([Object(i.property)()],t.prototype,"descriptionPositionY",void 0),u([Object(i.property)()],t.prototype,"logoStyle",void 0),u([Object(i.property)()],t.prototype,"titleStyle",void 0),u([Object(i.property)()],t.prototype,"descriptionStyle",void 0),u([Object(i.property)()],t.prototype,"headerClasses",void 0),u([Object(i.property)()],t.prototype,"contentClasses",void 0),u([Object(i.property)()],t.prototype,"maxWidth",void 0),u([Object(i.property)()],t.prototype,"backgroundImageClasses",void 0),t}(o.Base);i.Serializer.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],(function(){return new p}))},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),r=t.split("."),o=n.length,i=r.length,s=0;s<o&&s<i;s++){var a=n[s],l=r[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/images sync \\.svg$":function(e,t,n){var r={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChangeCamera.svg":"./src/images/ChangeCamera.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./CloseCamera.svg":"./src/images/CloseCamera.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./NavMenu_24x24.svg":"./src/images/NavMenu_24x24.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./ShowCamera.svg":"./src/images/ShowCamera.svg","./TakePicture.svg":"./src/images/TakePicture.svg","./TakePicture_24x24.svg":"./src/images/TakePicture_24x24.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./back-to-panel_16x16.svg":"./src/images/back-to-panel_16x16.svg","./chevron.svg":"./src/images/chevron.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./close_16x16.svg":"./src/images/close_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./drag-n-drop.svg":"./src/images/drag-n-drop.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./full-screen_16x16.svg":"./src/images/full-screen_16x16.svg","./loading.svg":"./src/images/loading.svg","./minimize_16x16.svg":"./src/images/minimize_16x16.svg","./next_16x16.svg":"./src/images/next_16x16.svg","./no-image.svg":"./src/images/no-image.svg","./ranking-arrows.svg":"./src/images/ranking-arrows.svg","./ranking-dash.svg":"./src/images/ranking-dash.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./restore_16x16.svg":"./src/images/restore_16x16.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChangeCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/CloseCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.41 12L20.7 4.71C21.09 4.32 21.09 3.69 20.7 3.3C20.31 2.91 19.68 2.91 19.29 3.3L12 10.59L4.71 3.29C4.32 2.9 3.68 2.9 3.29 3.29C2.9 3.68 2.9 4.32 3.29 4.71L10.58 12L3.29 19.29C2.9 19.68 2.9 20.31 3.29 20.7C3.49 20.9 3.74 20.99 4 20.99C4.26 20.99 4.51 20.89 4.71 20.7L12 13.41L19.29 20.7C19.49 20.9 19.74 20.99 20 20.99C20.26 20.99 20.51 20.89 20.71 20.7C21.1 20.31 21.1 19.68 20.71 19.29L13.42 12H13.41Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/NavMenu_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/ShowCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/TakePicture.svg":function(e,t){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./src/images/TakePicture_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/back-to-panel_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15.0001 6C15.0001 6.55 14.5501 7 14.0001 7H10.0001C9.45006 7 9.00006 6.55 9.00006 6V2C9.00006 1.45 9.45006 1 10.0001 1C10.5501 1 11.0001 1.45 11.0001 2V3.59L13.2901 1.29C13.4901 1.09 13.7401 1 14.0001 1C14.2601 1 14.5101 1.1 14.7101 1.29C15.1001 1.68 15.1001 2.31 14.7101 2.7L12.4201 4.99H14.0101C14.5601 4.99 15.0101 5.44 15.0101 5.99L15.0001 6ZM6.00006 9H2.00006C1.45006 9 1.00006 9.45 1.00006 10C1.00006 10.55 1.45006 11 2.00006 11H3.59006L1.29006 13.29C0.900059 13.68 0.900059 14.31 1.29006 14.7C1.68006 15.09 2.31006 15.09 2.70006 14.7L4.99006 12.41V14C4.99006 14.55 5.44006 15 5.99006 15C6.54006 15 6.99006 14.55 6.99006 14V10C6.99006 9.45 6.54006 9 5.99006 9H6.00006Z"></path></svg>'},"./src/images/chevron.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/close_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/drag-n-drop.svg":function(e,t){e.exports='<svg viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/full-screen_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./src/images/loading.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_885_24957)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_885_24957"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./src/images/minimize_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./src/images/next_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/ranking-arrows.svg":function(e,t){e.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./src/images/ranking-dash.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./src/images/restore_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,n){var r={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ItemValue",(function(){return f}));var r,o=n("./src/localizablestring.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/conditions.ts"),l=n("./src/base.ts"),u=n("./src/settings.ts"),c=n("./src/actions/action.ts"),p=n("./src/question.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return d(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],s=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.Helpers.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.Helpers.isValueEmpty(e[r].value))return e[r];if(s.Helpers.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(r,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var n=e.toString(),r=n.indexOf(u.settings.itemValueSeparator);r>-1&&(e=n.slice(0,r),t=n.slice(r+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.serialization.itemValueSerializeAsObject||u.settings.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(u.settings.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var n=new i.JsonObject,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof p.Question&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return t.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof p.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},h([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),h([Object(i.property)()],t.prototype,"selectedValue",void 0),h([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var n=null;return(n=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new f(null,void 0,e.getType()):new f(null)).setData(e),n},l.Base.itemValueLocStrChanged=function(e){f.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var n=new Array;return f.setData(n,Array.isArray(e)?e:[],t),n},i.Serializer.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new f(e)}))},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return m})),n.d(t,"JsonMetadata",(function(){return g})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonRequiredArrayPropertyError",(function(){return E})),n.d(t,"JsonIncorrectPropertyValueError",(function(){return P})),n.d(t,"JsonObject",(function(){return S})),n.d(t,"Serializer",(function(){return O}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);if(!r){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),r=e.createLocalizableString(n,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback)}}function c(e){return void 0===e&&(e={}),function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&O.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){var n=this.getDefaultValue(e);return s.Helpers.isValueEmpty(n)?this.isLocalizable?null==t:!1===t&&("boolean"==this.type||"switch"==this.type)||""===t||s.Helpers.isValueEmpty(t):s.Helpers.isTwoValueEquals(t,n,!1,!0,!1)},e.prototype.getSerializableValue=function(e){return this.onSerializeValue?this.onSerializeValue(e):this.getValue(e)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&O.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?O.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||s.Helpers.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.defaultValue;var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(O.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=O.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?O.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!O.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=O.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=O.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),r=O.findProperty(n.getType(),t);if(r)return this.getObjPropertyValueCore(n,r)}var o=O.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new m(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e),o=r.length-1;o>=0;o--)this.findProperty(t,r[o].name)&&r.splice(o,1);return 0===r.length?n:[].concat(n).concat(r)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var r=this;n.forEach((function(n){r.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&r.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&r.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)}))},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,r){var o={configurable:!0,get:function(){return t[n]}};r||(o.set=function(e){t[n]=e}),Object.defineProperty(e,n,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var r=t+"-"+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<o.length;u++){var c=o[u];!i[c.name]&&n.indexOf(c.name)<0&&l.push(c)}return this.dynamicPropsCache[r]=l,l},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=O.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&O.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=new Array;return e.forEach((function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)})),t},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+t+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.baseClassName=t,o.type=n,o.message=r,o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),E=function(e){function t(t,n){var r=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(e){function t(t,n){var r=e.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+t.name+"'.")||this;return r.property=t,r.value=n,r}return a(t,e),t}(y),S=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)},e.prototype.toObjectCore=function(t,n,r){if(t){var o=null,i=void 0,s=!0;if(n.getType&&(i=n.getType(),o=O.getProperties(i),s=!!i&&!O.isDescendantOf(i,"itemvalue")),o){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(t),o=this.addDynamicProperties(n,t,o),this.options=r,t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var l=this.findProperty(o,a);l?this.valueToObj(t[a],n,l,t,r):s&&this.addNewError(new v(a.toString(),i),t,n)}else n[a]=t[a];this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType()));var i=!0===r;return r&&!0!==r||(r={}),i&&(r.storeDefaults=i),this.propertiesToJson(t,O.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return O.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){var r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}var o=this.getDynamicProperties(e);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.propertiesToJson=function(e,t,n,r){for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){r||(r={}),!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r)},e.prototype.valueToJsonCore=function(e,t,n,r){var o=n.getSerializedProperty(e,r.version);if(o&&o!==n)this.valueToJsonCore(e,t,o,r);else{var i=n.getSerializableValue(e);if(r.storeDefaults||!n.isDefaultValueByObj(e,i)){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],n,r));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,n,r);if(null!=i){var l=n.getSerializedName(r.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(r.storeDefaults&&u||!n.isDefaultValueByObj(e,i))&&(O.onSerializingProperty&&O.onSerializingProperty(e,n,i,t)||(t[l]=this.removePosOnValueToJson(n,i)))}}}},e.prototype.valueToObj=function(e,t,n,r,o){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else{if(n.isArray&&!Array.isArray(e)&&e){e=[e];var i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new E(i,t.getType()),r||e,t)}if(this.isValueArray(e))this.valueToArray(e,t,n.name,n,o);else{var s=this.createNewObj(e,n);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),s.error||(null!=n?(n.setValue(t,e,this),o&&o.validatePropertyValues&&(n.validateValue(e)||this.addNewError(new P(n,e),r,t))):t[n.name]=e)}}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if("object"==typeof t)for(var r in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[r])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(e,t){var n={newObj:null,error:null},r=this.getClassNameForNewObj(e,t);return n.newObj=r?O.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var n=O.findClass(e.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var i=r[o];if(s.Helpers.isValueEmpty(i.defaultValue)&&!t[i.name])return new x(i.name,e.getType())}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r,o){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r,o),t[n]||(t[n]=i)}},e.prototype.addValuesIntoArray=function(e,t,n,r){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,r)):i.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),O=S.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s){var l=e.call(this)||this;if(l.onSelectionChanged=r,l.allowSelection=o,l.elementId=s,l.onItemClick=function(e){if(!l.isItemDisabled(e)){l.isExpanded=!1,l.allowSelection&&(l.selectedItem=e),l.onSelectionChanged&&l.onSelectionChanged(e);var t=e.action;t&&t(e)}},l.onItemHover=function(e){l.mouseOverHandler(e)},l.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},l.isItemSelected=function(e){return l.areSameItems(l.selectedItem,e)},l.isItemFocused=function(e){return l.areSameItems(l.focusedItem,e)},l.getListClass=function(){return(new a.CssClassBuilder).append(l.cssClasses.itemsContainer).append(l.cssClasses.itemsContainerFiltering,!!l.filterString&&l.visibleActions.length!==l.visibleItems.length).toString()},l.getItemClass=function(e){return(new a.CssClassBuilder).append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!e.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(e)).append(l.cssClasses.itemFocused,l.isItemFocused(e)).append(l.cssClasses.itemSelected,l.isItemSelected(e)).append(l.cssClasses.itemGroup,e.hasSubItems).append(l.cssClasses.itemHovered,e.isHovered).append(l.cssClasses.itemTextWrap,l.textWrapEnabled).append(e.css).toString()},l.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},-1!==Object.keys(n).indexOf("items")){var u=n;Object.keys(u).forEach((function(e){switch(e){case"items":l.setItems(u.items);break;case"onFilterStringChangedCallback":l.setOnFilterStringChangedCallback(u.onFilterStringChangedCallback);break;case"onTextSearchCallback":l.setOnTextSearchCallback(u.onTextSearchCallback);break;default:l[e]=u[e]}}))}else l.setItems(n),l.selectedItem=i;return l}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var r=n.toLocaleLowerCase();return(r=c.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return t.forEach((function(e){n.push(e),e.items&&e.items.forEach((function(t){var r=new s.Action(t);r.iconName||(r.iconName=e.iconName),n.push(r)}))})),n}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener((function(){e.hidePopup()}))},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return u})),n.d(t,"LocalizableStrings",(function(){return c}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=n("./src/jsonobject.ts"),l=n("./src/survey-element.ts"),u=function(){function e(e,t,n){var r;void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this._allowLineBreaks=!1,this.onStringChanged=new s.EventBase,e instanceof l.SurveyElementCore&&(this._allowLineBreaks="text"==(null===(r=a.Serializer.findProperty(e.getType(),n))||void 0===r?void 0:r.type)),this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){return this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(o.surveyLocalization.defaultLocale)),this.isValueEmpty(t)){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return this.getLocaleTextCore(e)||""},e.prototype.getLocaleTextCore=function(e){return e||(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||!this.isLocaleTextEqualsWithDefault(e,t)){if(i.settings.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,r)}}else{if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&!this.isValueEmpty(a)&&(this.setValue(s,t),this.fireStrChanged(s,a))}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length)return null;if(1==e.length&&e[0]==i.settings.localization.defaultLocaleName&&!i.settings.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var t={};for(var n in this.values)t[n]=this.values[n];return t},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},null!=e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return this.setHtmlValue(e,""),!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),c=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"}},"./src/martixBase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixBaseModel",(function(){return d}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);return t&&this.hideIfRowsEmpty?this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0):t},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return o.ItemValue.runEnabledConditionsForItems(this.rows,void 0,e,t),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==n&&(n={}),n[a]=t[a]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),i=!1;for(var s in n)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==r&&(r={}),r[s]=n[s],i=!0);i&&(this.value=r)},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some((function(e){return!!e.width}))},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(null===(e=this.renderedTable)||void 0===e?void 0:e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,t){return(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase()+" "+e+", "+(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase()+" "+t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),p([Object(s.property)()],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/mask/input_element_adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputElementAdapter",(function(){return r}));var r=function(){function e(e,t,n){var r=this;this.inputMaskInstance=e,this.inputElement=t,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(e,t){if("saveMaskedValue"!==t.name){var n=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=n}},this.clickHandler=function(e){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&(r.inputElement.setSelectionRange(0,0),e.preventDefault())},this.beforeInputHandler=function(e){var t=r.createArgs(e),n=r.inputMaskInstance.processInput(t);r.inputElement.value=n.value,r.inputElement.setSelectionRange(n.caretPosition,n.caretPosition),n.cancelPreventDefault||e.preventDefault()};var o=n;null==o&&(o=""),this.inputElement.value=e.getMaskedValue(o),this.prevUnmaskedValue=o,e.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return e.prototype.createArgs=function(e){var t={insertedChars:e.data,selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd,prevValue:e.target.value,inputDirection:"forward"};return"deleteContentBackward"===e.inputType&&(t.inputDirection="backward",t.selectionStart===t.selectionEnd&&(t.selectionStart=Math.max(t.selectionStart-1,0))),"deleteContentForward"===e.inputType&&t.selectionStart===t.selectionEnd&&(t.selectionEnd+=1),t},e.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler))},e.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler))},e.prototype.dispose=function(){this.removeInputEventListener(),this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},e}()},"./src/mask/mask_base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputMaskBase",(function(){return a}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var t=this;i.Serializer.getProperties(this.getType()).forEach((function(n){var r=e[n.name];t[n.name]=void 0!==r?r:n.defaultValue}))},t.prototype.getData=function(){var e=this,t={};return i.Serializer.getProperties(this.getType()).forEach((function(n){var r=e[n.name];n.isDefaultValue(r)||(t[n.name]=r)})),t},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)()],t.prototype,"saveMaskedValue",void 0),t}(o.Base);i.Serializer.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(e){return!!e&&"masksettings"!==e.getType()}}],(function(){return new a}))},"./src/mask/mask_currency.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputMaskCurrency",(function(){return l}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_numeric.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var t=this.prefix||"",n=this.suffix||"",r=e;return r?(-1===r.indexOf(t)&&(r=t+r),-1===r.indexOf(n)&&(r+=n),r):r},t.prototype.unwrapInputArgs=function(e){var t=e.prevValue;if(t){if(this.prefix&&-1!==t.indexOf(this.prefix)){t=t.slice(t.indexOf(this.prefix)+this.prefix.length);var n=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-n,0),e.selectionEnd-=n}this.suffix&&-1!==t.indexOf(this.suffix)&&(t=t.slice(0,t.indexOf(this.suffix))),e.prevValue=t}},t.prototype.processInput=function(t){this.unwrapInputArgs(t);var n=e.prototype.processInput.call(this,t),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(t){var n=e.prototype.getMaskedValue.call(this,t);return this.wrapText(n)},a([Object(o.property)()],t.prototype,"prefix",void 0),a([Object(o.property)()],t.prototype,"suffix",void 0),t}(i.InputMaskNumeric);o.Serializer.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],(function(){return new l}),"numericmask")},"./src/mask/mask_datetime.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"getDateTimeLexems",(function(){return d})),n.d(t,"InputMaskDateTime",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_pattern.ts"),s=n("./src/mask/mask_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function c(e,t){switch(e){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function p(e,t){var n=2e3;if(n>t&&(n=100*parseInt(t.toString().slice(0,t.toString().length-2))),n<e){var r=(t-e)/2+e;n=10*parseInt(r.toString().slice(0,r.toString().length-1))}return n>=e&&n<=t?n:e}function d(e){for(var t,n=[],r=function(e,r,o){if(void 0===o&&(o=!1),t&&t===e){n[n.length-1].count++;var i=c(e,n[n.length-1].count);n[n.length-1].maxCount=i}else i=c(e,1),n.push({type:e,value:r,count:1,maxCount:i,upperCase:o})},o=0;o<e.length;o++){var i=e[o];switch(i){case"m":r("month",i);break;case"d":r("day",i);break;case"y":r("year",i);break;case"h":r("hour",i,!1);break;case"H":r("hour",i,!0);break;case"M":r("minute",i);break;case"s":r("second",i);break;case"t":r("timeMarker",i);break;case"T":r("timeMarker",i,!0);break;default:n.push({type:"separator",value:i,count:1,maxCount:1,upperCase:!1})}t=n[n.length-1].type}return n}var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultDate="1970-01-01T",t.turnOfTheCentury=68,t.twelve=12,t.lexems=[],t.inputDateTimeData=[],t.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},t}return a(t,e),Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some((function(e){return"day"===e.type||"month"===e.type||"year"===e.type}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some((function(e){return"hour"===e.type||"minute"===e.type||"second"===e.type}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter((function(e){return"hour"===e.type&&!e.upperCase})).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.updateLiterals=function(){this.lexems=d(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var t="",n=0;n<e.length;n++)e[n].match(s.numberDefinition)&&(t+=e[n]);return t},t.prototype.getMaskedStrFromISO=function(e){var t=this,n=new Date(e);return this.initInputDateTimeData(),this.hasDatePart||(n=new Date(this.defaultDate+e)),isNaN(n)||this.lexems.forEach((function(e,r){var o=t.inputDateTimeData[r];switch(o.isCompleted=!0,e.type){case"hour":t.is12Hours?o.value=((n.getHours()-1)%t.twelve+1).toString():o.value=n.getHours().toString();break;case"minute":o.value=n.getMinutes().toString();break;case"second":o.value=n.getSeconds().toString();break;case"timeMarker":var i=n.getHours()>=t.twelve?"pm":"am";o.value=e.upperCase?i.toUpperCase():i;break;case"day":o.value=n.getDate().toString();break;case"month":o.value=(n.getMonth()+1).toString();break;case"year":var s=n.getFullYear();2==e.count&&(s%=100),o.value=s.toString()}})),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach((function(t){e.inputDateTimeData.push({lexem:t,isCompleted:!1,value:void 0})}))},t.prototype.getISO_8601Format=function(e){var t=[],n=[];if(void 0!==e.year){var r=this.getPlaceholder(4,e.year.toString(),"0")+e.year;t.push(r)}if(void 0!==e.month&&void 0!==e.year){var o=this.getPlaceholder(2,e.month.toString(),"0")+e.month;t.push(o)}if(void 0!==e.day&&void 0!==e.month&&void 0!==e.year){var i=this.getPlaceholder(2,e.day.toString(),"0")+e.day;t.push(i)}if(void 0!==e.hour){var s=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;n.push(s)}if(void 0!==e.minute&&void 0!==e.hour){var a=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;n.push(a)}if(void 0!==e.second&&void 0!==e.minute&&void 0!==e.hour){var l=this.getPlaceholder(2,e.second.toString(),"0")+e.second;n.push(l)}var u=[];return t.length>0&&u.push(t.join("-")),n.length>1&&u.push(n.join(":")),u.join("T")},t.prototype.isYearValid=function(e){if(void 0===e.min&&void 0===e.max)return!1;var t=e.year.toString(),n=e.min.toISOString().slice(0,t.length),r=e.max.toISOString().slice(0,t.length);return e.year>=parseInt(n)&&e.year<=parseInt(r)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,t){var n=e.min,r=e.max,o=void 0!==e.year?e.year:p(n.getFullYear(),r.getFullYear()),i=void 0!==e.month?e.month:t&&this.hasDatePart?12:1;return{year:o,month:i,day:void 0!==e.day?e.day:t&&this.hasDatePart?this.getMaxDateForMonth(o,i):1,hour:void 0!==e.hour?e.hour:t?23:0,minute:void 0!==e.minute?e.minute:t?59:0,second:void 0!==e.second?e.second:t?59:0}},t.prototype.getMaxDateForMonth=function(e,t){return 2==t?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]},t.prototype.isDateValid=function(e){var t=e.min,n=e.max,r=void 0!==e.year?e.year:p(t.getFullYear(),n.getFullYear()),o=void 0!==e.month?e.month:1,i=void 0!==e.day?e.day:1,s=o-1,a=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),l=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(a)&&a.getDate()===i&&a.getMonth()===s&&a.getFullYear()===r&&l>=e.min&&a<=e.max},t.prototype.getPlaceholder=function(e,t,n){var r=e-(t||"").length;return r>0?n.repeat(r):""},t.prototype.isDateValid12=function(e){return this.is12Hours?!(this.is12Hours&&e.hour>this.twelve)&&(e.timeMarker?"p"===e.timeMarker[0].toLowerCase()?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):!!this.isDateValid(e)||(e.hour+=this.twelve,this.isDateValid(e))):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,t){var n=e.value;if(n){var r="timeMarker",o=l({},t);o[r]=n,this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1),e.value=n||void 0,t[r]=n||void 0}},t.prototype.updateInputDateTimeData=function(e,t){var n=e.value;if(n){var r=e.lexem.type,o=l({},t);if(o[r]=parseInt(n),n.length===e.lexem.maxCount){if(this.isDateValid12(o))return e.isCompleted=!0,e.value=n||void 0,void(t[r]=parseInt(n)>0?parseInt(n):void 0);n=n.slice(0,n.length-1)}o[r]=parseInt(n);var i=parseInt(n[0]),s=this.validBeginningOfNumbers[r+(e.lexem.upperCase?"U":"")];"year"!==r||this.isYearValid(o)?void 0!==s&&i>s?this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1):void 0!==s&&0!==i&&i<=s&&(this.checkValidationDateTimePart(o,r,e),e.isCompleted&&!this.isDateValid12(o)&&(n=n.slice(0,n.length-1))):(n=n.slice(0,n.length-1),e.isCompleted=!1),e.value=n||void 0,t[r]=parseInt(n)>0?parseInt(n):void 0}},t.prototype.checkValidationDateTimePart=function(e,t,n){var r=e[t],o=10*r,i=10;"month"===t&&(i=3),"hour"===t&&(i=this.is12Hours?3:5),n.isCompleted=!0;for(var s=0;s<i;s++)if(e[t]=o+s,this.isDateValid12(e)){n.isCompleted=!1;break}e[t]=r},t.prototype.getCorrectDatePartFormat=function(e,t){var n=e.lexem,r=e.value||"";return r&&"timeMarker"===n.type?(t&&(r+=this.getPlaceholder(n.count,r,n.value)),r):(r&&e.isCompleted&&(r=parseInt(r).toString()),r&&e.isCompleted?r=this.getPlaceholder(n.count,r,"0")+r:(r=function(e,t){var n=t;return e.count<e.maxCount&&("day"===e.type&&0===parseInt(t[0])||"month"===e.type&&0===parseInt(t[0]))&&(n=t.slice(1,t.length)),n}(n,r),t&&(r+=this.getPlaceholder(n.count,r,n.value))),r)},t.prototype.createIDateTimeComposition=function(){var e,t;return this.hasDatePart?(e=this.min||"0001-01-01",t=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),t=this.defaultDate+(this.max||"23:59:59")),{hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(t)}},t.prototype.parseTwoDigitYear=function(e){var t=e.value;return"year"!==e.lexem.type||e.lexem.count>2?t:(this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4))),(parseInt(t)>this.turnOfTheCentury?"19":"20")+t)},t.prototype.getFormatedString=function(e){var t="",n="",r=!1,o=this.inputDateTimeData.length-1;if(!e){var i=this.inputDateTimeData.filter((function(e){return!!e.value}));o=this.inputDateTimeData.indexOf(i[i.length-1])}for(var s=0;s<this.inputDateTimeData.length;s++){var a=this.inputDateTimeData[s];switch(a.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(void 0===a.value&&!e)return t+(r?n:"");var l=e||o>s;t+=n+this.getCorrectDatePartFormat(a,l),r=a.isCompleted;break;case"separator":n=a.lexem.value}}return t},t.prototype.cleanTimeMarker=function(e,t){var n="";e=e.toUpperCase();for(var r=0;r<e.length;r++)(!n&&("P"==e[r]||"A"==e[r])||n&&"M"==e[r])&&(n+=e[r]);return t?n.toUpperCase():n.toLowerCase()},t.prototype.setInputDateTimeData=function(e){var t=this,n=0;this.initInputDateTimeData(),this.lexems.forEach((function(r,o){if(e.length>0&&n<e.length){if("separator"===r.type)return;var i=t.inputDateTimeData[o],s=e[n],a=void 0;a="timeMarker"===r.type?t.cleanTimeMarker(s,r.upperCase):t.leaveOnlyNumbers(s),i.value=a.slice(0,r.maxCount),n++}}))},t.prototype._getMaskedValue=function(e,t){var n=this;void 0===t&&(t=!0);var r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=this.createIDateTimeComposition();return this.inputDateTimeData.forEach((function(e){"timeMarker"===e.lexem.type?n.updateTimeMarkerInputDateTimeData(e,i):n.updateInputDateTimeData(e,i)})),this.getFormatedString(t)},t.prototype.getParts=function(e){for(var t=[],n=this.lexems.filter((function(e){return"separator"!==e.type})),r=this.lexems.filter((function(e){return"separator"===e.type})).map((function(e){return e.value})),o="",i=!1,a=!1,l=0;l<e.length;l++){var u=e[l];if(u.match(s.numberDefinition)||u===n[t.length].value||"timeMarker"===n[t.length].type?(i=!1,a=!1,o+=u):-1!==r.indexOf(u)?a||(i=!0,t.push(o),o=""):i||(a=!0,t.push(o),o=""),t.length>=n.length){i=!1;break}}return(""!=o||i)&&t.push(o),t},t.prototype.getUnmaskedValue=function(e){var t,n=this,r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=null===(t=this.inputDateTimeData.filter((function(e){return"timeMarker"===e.lexem.type}))[0])||void 0===t?void 0:t.value.toLowerCase()[0],s=this.createIDateTimeComposition(),a=!1;return this.inputDateTimeData.forEach((function(e){var t=e.value;if("timeMarker"!=e.lexem.type&&"separator"!=e.lexem.type)if(!t||t.length<e.lexem.count)a=!0;else{var r=parseInt(n.parseTwoDigitYear(e));"hour"==e.lexem.type&&"p"===i&&r!=n.twelve&&(r+=n.twelve),s[e.lexem.type]=r}})),a?"":this.getISO_8601Format(s)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart),r=e.prevValue.slice(e.selectionEnd);return t.value=this._getMaskedValue(n+(e.insertedChars||"")+r),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n+(e.insertedChars||""),!1).length:t.caretPosition=e.selectionStart,t},u([Object(o.property)()],t.prototype,"min",void 0),u([Object(o.property)()],t.prototype,"max",void 0),t}(i.InputMaskPattern);o.Serializer.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(e){return!!e.pattern}},{name:"max",type:"datetime",enableIf:function(e){return!!e.pattern}}],(function(){return new h}),"patternmask")},"./src/mask/mask_numeric.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"splitString",(function(){return u})),n.d(t,"InputMaskNumeric",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_base.ts"),s=n("./src/mask/mask_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function u(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3);var r=[];if(t){for(var o=e.length-n;o>-n;o-=n)r.push(e.substring(o,o+n));r=r.reverse()}else for(o=0;o<e.length;o+=n)r.push(e.substring(o,o+n));return r}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.calccaretPosition=function(e,t,n){for(var r=e?this.displayNumber(this.parseNumber(e),!1).length:0,o=0,i=t.selectionStart,s=!t.insertedChars&&"forward"===t.inputDirection,a=0;a<n.length;a++)if(n[a]!==this.thousandsSeparator&&o++,o===r+(s?1:0)){i=s?a:a+1;break}return i},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.integralPart;t&&r&&(r=u(r).join(this.thousandsSeparator));var o=e.fractionalPart,i=e.isNegative?"-":"";if(""===o){if(n)return r&&"0"!==r?i+r:r;var s=r+(e.hasDecimalSeparator&&!n?this.decimalSeparator:"");return"0"===s?s:i+s}return[i+(r=r||"0"),o=o.substring(0,this.precision)].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var t=e.isNegative?"-":"";return e.fractionalPart?parseFloat(t+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):parseInt(t+e.integralPart||"0")},t.prototype.validateNumber=function(e,t){var n=this.min||Number.MIN_SAFE_INTEGER,r=this.max||Number.MAX_SAFE_INTEGER;if(void 0!==this.min||void 0!==this.max){var o=this.convertNumber(e);if(Number.isNaN(o))return!0;if(o>=n&&o<=r)return!0;if(!t){if(e.hasDecimalSeparator||0==o){var i=Math.pow(.1,(e.fractionalPart||"").length);if(o>=0)return o+i>n&&o<=r;if(o<0)return o>=n&&o-i<r}else{var s=o,a=o;if(o>0){if(o+1>n&&o<=r)return!0;for(;s=10*s+9,!((a*=10)>r);)if(s>n)return!0;return!1}if(o<0){if(o>=n&&o-1<r)return!0;for(;a=10*a-9,!((s*=10)<n);)if(a<r)return!0;return!1}}return o>=0&&o<=r||o<0&&o>=n}return!1}return!0},t.prototype.parseNumber=function(e){for(var t={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},n=null==e?"":e.toString(),r=0,o=0;o<n.length;o++){var i=n[o];switch(i){case"-":this.allowNegativeValues&&(void 0===this.min||this.min<0)&&r++;break;case this.decimalSeparator:this.precision>0&&(t.hasDecimalSeparator=!0);break;case this.thousandsSeparator:break;default:i.match(s.numberDefinition)&&(t.hasDecimalSeparator?t.fractionalPart+=i:t.integralPart+=i)}}return t.isNegative=r%2!=0,t.integralPart.length>1&&"0"===t.integralPart[0]&&(t.integralPart=t.integralPart.slice(1)),t},t.prototype.getNumberMaskedValue=function(e,t){void 0===t&&(t=!1);var n=this.parseNumber(e);return this.validateNumber(n,t)?this.displayNumber(n,!0,t):null},t.prototype.getNumberUnmaskedValue=function(e){var t=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(t))return this.convertNumber(t)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var t=null==e?"":e.toString();return t=t.replace(".",this.decimalSeparator),this.getNumberMaskedValue(t,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=n+e.prevValue.slice(e.selectionEnd),o=this.parseNumber(r);if(!this.validateNumber(o,!1))return t;var i=this.getNumberMaskedValue(r),s=this.calccaretPosition(n,e,i);return t.value=i,t.caretPosition=s,t},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return""===e||null==e},l([Object(o.property)()],t.prototype,"allowNegativeValues",void 0),l([Object(o.property)()],t.prototype,"decimalSeparator",void 0),l([Object(o.property)()],t.prototype,"precision",void 0),l([Object(o.property)()],t.prototype,"thousandsSeparator",void 0),l([Object(o.property)()],t.prototype,"min",void 0),l([Object(o.property)()],t.prototype,"max",void 0),t}(i.InputMaskBase);o.Serializer.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],(function(){return new c}),"masksettings")},"./src/mask/mask_pattern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"getLiterals",(function(){return l})),n.d(t,"getMaskedValueByPattern",(function(){return c})),n.d(t,"getUnmaskedValueByPattern",(function(){return p})),n.d(t,"InputMaskPattern",(function(){return d}));var r,o=n("./src/settings.ts"),i=n("./src/jsonobject.ts"),s=n("./src/mask/mask_base.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e){for(var t=[],n=!1,r=Object.keys(o.settings.maskSettings.patternDefinitions),i=0;i<e.length;i++){var s=e[i];s===o.settings.maskSettings.patternEscapeChar?n=!0:n?(n=!1,t.push({type:"fixed",value:s})):t.push({type:-1!==r.indexOf(s)?"regex":"const",value:s})}return t}function u(e,t,n){for(var r=o.settings.maskSettings.patternDefinitions[n.value];t<e.length;){if(e[t].match(r))return t;t++}return t}function c(e,t,n){for(var r=null==e?"":e,i="",s=0,a="string"==typeof t?l(t):t,c=0;c<a.length;c++)switch(a[c].type){case"regex":if(s<r.length&&(s=u(r,s,a[c])),s<r.length)i+=r[s];else{if(!n)return i;i+=o.settings.maskSettings.patternPlaceholderChar}s++;break;case"const":case"fixed":i+=a[c].value,a[c].value===r[s]&&s++}return i}function p(e,t,n,r){void 0===r&&(r=!1);var i="";if(!e)return i;for(var s="string"==typeof t?l(t):t,a=0;a<s.length;a++)if("fixed"!==s[a].type||r||(i+=s[a].value),"regex"===s[a].type){var u=o.settings.maskSettings.patternDefinitions[s[a].value];if(!e[a]||!e[a].match(u)){if(n){i="";break}break}i+=e[a]}return i}var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.literals=[],t}return a(t,e),t.prototype.updateLiterals=function(){this.literals=l(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,t,n){"pattern"===e&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(t,n){e.prototype.fromJSON.call(this,t,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,t){return void 0===t&&(t=!1),c(null==e?"":e,this.literals,t)},t.prototype._getUnmaskedValue=function(e,t){return void 0===t&&(t=!1),p(null==e?"":e,this.literals,t)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return t;var n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=p(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),o=p(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return t.value=this._getMaskedValue(r+(e.insertedChars||"")+o,!0),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n).length:t.caretPosition=e.selectionStart,t},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)()],t.prototype,"pattern",void 0),t}(s.InputMaskBase);i.Serializer.addClass("patternmask",[{name:"pattern"}],(function(){return new d}),"masksettings")},"./src/mask/mask_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"numberDefinition",(function(){return r}));var r=/[0-9]/},"./src/multiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultiSelectListModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/list.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.onItemClick=function(e){n.isItemDisabled(e)||(n.isExpanded=!1,n.isItemSelected(e)?(n.selectedItems.splice(n.selectedItems.indexOf(e),1)[0],n.onSelectionChanged&&n.onSelectionChanged(e,"removed")):(n.selectedItems.push(e),n.onSelectionChanged&&n.onSelectionChanged(e,"added")))},n.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},n.isItemSelected=function(e){return!!n.allowSelection&&n.selectedItems.filter((function(t){return n.areSameItems(t,e)})).length>0},n.setSelectedItems(t.selectedItems||[]),n}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Notifier",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/settings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/actions/container.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=i.settings.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new l.ActionContainer,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},n.css=n.cssClasses.root,n}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(n){return n.visible=t.showActions&&t.actionsVisibility[n.id]===e}))},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout((function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout((function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)}),r.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PageModel",(function(){return u}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/drag-drop-page-helper-v1.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n.locTitle.onGetTextCallback=function(e){return n.canShowPageNumber()&&e?n.num+". "+e:e},n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new a.DragDropPageHelperV1(n),n}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowFadeIn:"",rowFadeOut:"",rowDelayedFadeIn:""};return this.copyCssClasses(t.page,e.page),this.copyCssClasses(t.error,e.error),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),e.rowFadeIn&&(t.rowFadeIn=e.rowFadeIn),e.rowDelayedFadeIn&&(t.rowDelayedFadeIn=e.rowDelayedFadeIn),e.rowFadeOut&&(t.rowFadeOut=e.rowFadeOut),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){return(new s.CssClassBuilder).append(e.prototype.getCssError.call(this,t)).append(t.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRowModel",(function(){return w})),n.d(t,"PanelModelBase",(function(){return x})),n.d(t,"PanelModel",(function(){return E}));var r,o=n("./src/jsonobject.ts"),i=n("./src/helpers.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/question.ts"),u=n("./src/questionfactory.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=n("./src/utils/utils.ts"),h=n("./src/utils/cssClassBuilder.ts"),f=n("./src/drag-drop-panel-helper-v1.ts"),m=n("./src/utils/animation.ts"),g=n("./src/global_variables_utils.ts"),y=n("./src/page.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},w=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.visibleElementsAnimation=new m.AnimationGroup(r.getVisibleElementsAnimationOptions(),(function(e){r.setWidth(e),r.setPropertyValue("visibleElements",e)}),(function(){return r.visibleElements})),r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return v(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;if(void 0===t&&(t=d.findScrollableParent),g.DomDocumentHelper.isAvailable()){this._scrollableParent=t(e),this._scrollableParent===g.DomDocumentHelper.getDocumentElement()&&(this._scrollableParent=g.DomWindowHelper.getWindow());var r=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!r,r&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var t;return e.prototype.getIsAnimationAllowed.call(this)&&this.visible&&(null===(t=this.panel)||void 0===t?void 0:t.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,t=function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px"),e.style.setProperty("--animation-width",Object(d.getElementWidth)(e)+"px")};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(e){return e.getWrapperElement()},getLeaveOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).fadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).fadeIn,onBeforeRunAnimation:t}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(!e.length)return this.visible=!1,void this.visibleElementsAnimation.cancel();this.visible=!0,this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var t,n=e.length;if(0!=n){for(var r=1===e.length,o=0,i=[],s=0;s<this.elements.length;s++)if((l=this.elements[s]).isVisible){l.isSingleInRow=r;var a=this.getElementWidth(l);a&&(l.renderWidth=this.getRenderedWidthFromWidth(a),i.push(l)),o<n-1&&!this.panel.isDefaultV2Theme&&!(null===(t=this.panel.parentQuestion)||void 0===t?void 0:t.isDefaultV2Theme)?l.rightIndent=1:l.rightIndent=0,o++}else l.renderWidth="";for(s=0;s<this.elements.length;s++){var l;!(l=this.elements[s]).isVisible||i.indexOf(l)>-1||(0==i.length?l.renderWidth=Number.parseFloat((100/n).toFixed(6))+"%":l.renderWidth=this.getRenderedCalcWidth(l,i,n))}}},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,b([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),x=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r.rowsAnimation=new m.AnimationGroup(r.getRowsAnimationOptions(),(function(e){r.setPropertyValue("visibleRows",e)}),(function(){return r.visibleRows})),r.isRandomizing=!1,r.locCountRowUpdates=0,r.createNewArray("rows",(function(e,t){r.onAddRow(e)}),(function(e){r.onRemoveRow(e)})),r.createNewArray("visibleRows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("requiredErrorText",r),r.createLocalizableString("navigationTitle",r,!0).onGetTextCallback=function(e){return e||r.title||r.name},r.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)})),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){r.updateVisibleIndexes()})),r.dragDropPanelHelper=new f.DragDropPanelHelperV1(r),r}return v(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var t=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return t.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this,t=function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(n){return{cssClass:e.cssClasses.rowFadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:(new h.CssClassBuilder).append(o.rowFadeIn).append(o.rowDelayedFadeIn,r.isDeletingRunning).toString(),onBeforeRunAnimation:t}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter((function(e){return e.visible})),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter((function(e){return e.visible}))},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){this.blockAnimations(),e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.locTitle.textOrHtml.length>0||this.isDesignMode&&this.showTitle&&p.settings.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){void 0===e&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,t=0;t<e.length;t++){var n=e[t];n.isPanel&&n.deletePanel(),this.onRemoveElementNotifySurvey(n)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!(!this.hasTitle&&this.isDesignMode)&&(this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.designMode.showEmptyDescriptions)},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},t.prototype.getMarkdownHtml=function(t,n){return"navigationTitle"===n&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:e.prototype.getMarkdownHtml.call(this,t,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowFadeIn:"",rowFadeOut:"",rowDelayedFadeIn:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowFadeIn&&(t.rowFadeIn=e.rowFadeIn),e.rowFadeOut&&(t.rowFadeOut=e.rowFadeOut),e.rowDelayedFadeIn&&(t.rowDelayedFadeIn=e.rowDelayedFadeIn),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var n=[];return t.forEach((function(e){n.push(e),e.getNestedQuestions().forEach((function(e){return n.push(e)}))})),n},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),!n.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=null,o=0;o<t.length;o++)if((n=t[o]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var i=n;i.validate(e.fireCallback,e)||(r||(r=i),e.firstErrorQuestion||(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!r&&this.errors.length>0&&(r=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=r)),e.fireCallback&&r&&(r===e.firstErrorQuestion&&e.focusOnFirstError?r.focus(!0):r.expandAllParents())},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){return"left"===this.getQuestionTitleLocation()||this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){return this.elements.some((function(e){return e instanceof t?e.hasElementWithTitleLocationLeft():e instanceof l.Question?"left"===e.getTitleLocation():void 0}))},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new w(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var t=this,n=this.findRowByElement(e),r=this.rows.indexOf(n),o=n.elements.indexOf(e);n.elements.splice(o,1),0==n.elements.length?this.rows.splice(r,1):!n.elements[0].startWithNewLine&&this.rows[r-1]?(n.elements.forEach((function(e){return t.rows[r-1].addElement(e)})),this.rows.splice(r,1)):n.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var t=this,n=this.elements.indexOf(e),r=this.elements[n+1],o=function(e){var n=t.createRowAndSetLazy(e);return t.isDesignModeV2&&n.setIsLazyRendering(!1),t.rows.splice(e,0,n),n},i=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=(r=e.elements).splice.apply(r,C([t,n],o));return e.updateVisible(),s};if(r){var s=this.findRowByElement(r);if(s){var a=this.rows.indexOf(s),l=s.elements.indexOf(r);0==l?r.startWithNewLine?e.startWithNewLine||a<1?o(a).addElement(e):this.rows[a-1].addElement(e):i(s,0,0,e):e.startWithNewLine?i.apply(void 0,C([o(a+1),0,0],[e].concat(i(s,l,s.elements.length)))):i(s,l,0,e)}}else 0==n||e.startWithNewLine?i(o(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e)},t.prototype.onAddElement=function(e,t){var n=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),e.isPanel){var r=e;this.survey&&this.survey.panelAdded(r,t,this,this.root)}else if(this.survey){var o=e;this.survey.questionAdded(o,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){n.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){n.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onRemoveElementNotifySurvey=function(e){this.survey&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e))},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,o=r?this.createRowAndSetLazy(e.length):e[e.length-1];r&&e.push(o),o.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(this.blockRowsUpdates(),t.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach((function(e){return e.onHidingContent()}))},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&"none"!==this.survey.getQuestionClearIfInvisible("default")&&!this.isLoadingFromJson))for(var e=this.questions,t=this.isVisible,n=0;n<e.length;n++){var r=e[n];t?r.updateValueWithDefaults():(r.clearValueIfInvisible("onHiddenContainer"),r.onHidingContent())}},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.questions.forEach((function(e){return e.onHidingContent()}))},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),this.wasRendered&&e.onFirstRendering(),!0)},t.prototype.insertElement=function(e,t,n){if(void 0===n&&(n="bottom"),t){this.blockRowsUpdates();var r=this.elements.indexOf(t),o=this.findRowByElement(t);"left"==n||"right"==n?"right"==n?(e.startWithNewLine=!1,r++):0==o.elements.indexOf(t)?(t.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r="top"==n?this.elements.indexOf(o.elements[0]):this.elements.indexOf(o.elements[o.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,r)}else this.addElement(e)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.questionErrorLocation?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return(new h.CssClassBuilder).append(e.error.root).toString()},t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,b([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),b([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),b([Object(o.property)()],t.prototype,"questionTitleWidth",void 0),t}(a.SurveyElement),E=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],(function(){n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),n}return v(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.notifyStateChanged=function(t){this.isLoadingFromJson||this.locTitle.strChanged(),e.prototype.notifyStateChanged.call(this,t)},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||"default"===t.state||(e=t.name),e},n},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t,n=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){n.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var o=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";o||(o=null===(t=this.cssClasses.panel)||void 0===t?void 0:t.footer),o&&(this.footerToolbarValue.containerCss=o),this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&this.parent&&this.parent instanceof y.PageModel},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){var n=(new h.CssClassBuilder).append(e.prototype.getCssError.call(this,t)).append(t.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){var e=this;return!!e.originalPage||e.survey.isShowingPreview&&e.survey.isSinglePage&&!!e.parent&&!!e.parent.originalPage},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){var t=this;if(null!=this.survey&&!this.isLoadingFromJson){var n=this.getFirstQuestionToFocus(!1);n&&setTimeout((function(){!t.isDisposed&&t.survey&&t.survey.scrollElementToTop(n,n,null,n.inputId,!1,{behavior:"smooth"})}),e?0:15)}},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,this.showPanelAsPage).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(x);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(e){return!!e&&e.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],(function(){return new x})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new E}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new E(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupDropdownViewModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/utils/popup.ts"),s=n("./src/popup-view-model.ts"),a=n("./src/utils/devices.ts"),l=n("./src/settings.ts"),u=n("./src/survey.ts"),c=n("./src/global_variables_utils.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.targetElement=n,o.areaElement=r,o.scrollEventCallBack=function(e){if(o.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();o.hidePopup()},o.resizeEventCallback=function(){if(c.DomWindowHelper.isAvailable()){var e=c.DomWindowHelper.getVisualViewport(),t=c.DomDocumentHelper.getDocumentElement();t&&e&&t.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")}},o.resizeWindowCallback=function(){o.isOverlay||o.updatePosition(!0,"vue"===u.SurveyModel.platform||"vue3"===u.SurveyModel.platform||"react"==u.SurveyModel.platform)},o.clientY=0,o.isTablet=!1,o.touchStartEventCallback=function(e){o.clientY=e.touches[0].clientY},o.touchMoveEventCallback=function(e){o.preventScrollOuside(e,o.clientY-e.changedTouches[0].clientY)},o.model.onRecalculatePosition.add(o.recalculatePositionHandler),o}return p(t,e),t.prototype.calculateIsTablet=function(e,n){var r=Math.min(e,n);this.isTablet=r>=t.tabletSizeBreakpoint},t.prototype.getAvailableAreaRect=function(){if(this.areaElement){var e=this.areaElement.getBoundingClientRect();return new i.Rect(e.x,e.y,e.width,e.height)}return new i.Rect(0,0,c.DomWindowHelper.getInnerWidth(),c.DomWindowHelper.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.targetElement.getBoundingClientRect(),t=this.getAvailableAreaRect();return new i.Rect(e.left-t.left,e.top-t.top,e.width,e.height)},t.prototype._updatePosition=function(){var e,t,n;if(this.targetElement){var r=this.getTargetElementRect(),o=this.getAvailableAreaRect(),s=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(s){var a=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),l=s.querySelector(this.scrollingContentSelector),u=c.DomDocumentHelper.getComputedStyle(s),p=parseFloat(u.marginLeft)||0,d=parseFloat(u.marginRight)||0,h=s.offsetHeight-l.offsetHeight+l.scrollHeight,f=s.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=r.width+"px");var m=this.model.verticalPosition,g=this.getActualHorizontalPosition();if(c.DomWindowHelper.isAvailable()){var y=[h,.9*c.DomWindowHelper.getInnerHeight(),null===(n=c.DomWindowHelper.getVisualViewport())||void 0===n?void 0:n.height];h=Math.ceil(Math.min.apply(Math,y.filter((function(e){return"number"==typeof e})))),m=i.PopupUtils.updateVerticalPosition(r,h,this.model.horizontalPosition,this.model.verticalPosition,o.height),g=i.PopupUtils.updateHorizontalPosition(r,f,this.model.horizontalPosition,o.width)}this.popupDirection=i.PopupUtils.calculatePopupDirection(m,g);var v=i.PopupUtils.calculatePosition(r,h,f+p+d,m,g,this.model.positionMode);if(c.DomWindowHelper.isAvailable()){var b=i.PopupUtils.getCorrectedVerticalDimensions(v.top,h,o.height,m,this.model.canShrink);if(b&&(this.height=b.height+"px",v.top=b.top),this.model.setWidthByTarget)this.width=r.width+"px",v.left=r.left;else{var C=i.PopupUtils.updateHorizontalDimensions(v.left,f,c.DomWindowHelper.getInnerWidth(),g,this.model.positionMode,{left:p,right:d});C&&(this.width=C.width?C.width+"px":void 0,v.left=C.left)}}if(a){var w=a.getBoundingClientRect();v.top-=w.top,v.left-=w.left}v.left+=o.left,v.top+=o.top,this.left=v.left+"px",this.top=v.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(r,v.top,v.left,m,g,p,d),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return c.DomDocumentHelper.isAvailable()&&"rtl"==c.DomDocumentHelper.getComputedStyle(c.DomDocumentHelper.getBody()).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&"overlay"!==this.model.overlayDisplayMode).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||"top"==this.popupDirection||"bottom"==this.popupDirection))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t,n,r){e.prototype.setComponentElement.call(this,t),t&&t.parentElement&&!this.isModal&&(this.targetElement=n||t.parentElement,this.areaElement=r)},t.prototype.resetComponentElement=function(){e.prototype.resetComponentElement.call(this),this.targetElement=void 0},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),c.DomWindowHelper.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(c.DomWindowHelper.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(c.DomWindowHelper.getInnerWidth(),c.DomWindowHelper.getInnerHeight()),this.resizeEventCallback()),c.DomWindowHelper.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!c.DomWindowHelper.getVisualViewport()&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){n._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),c.DomWindowHelper.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(c.DomWindowHelper.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),c.DomWindowHelper.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(t){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(e,t){n.isOverlay||n.updatePosition(t.isResetHeight)}),e.prototype.onModelChanging.call(this,t),t.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,d([Object(o.property)()],t.prototype,"isTablet",void 0),d([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),d([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModalViewModel",(function(){return s}));var r,o=n("./src/popup-view-model.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.onScrollOutsideCallback=function(e){n.preventScrollOuside(e,e.deltaY)},n}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurveyModel",(function(){return u})),n.d(t,"SurveyWindowModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/survey.ts"),s=n("./src/jsonobject.ts"),a=n("./src/global_variables_utils.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.fitToContainer=!0,r.windowElement=a.DomDocumentHelper.createElement("div"),r.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),r.registerPropertyChangedHandlers(["isShowing"],(function(){r.showingChangedCallback&&r.showingChangedCallback()})),r.registerPropertyChangedHandlers(["isExpanded"],(function(){r.onExpandedChanged()})),r.width=new o.ComputedUpdater((function(){return r.survey.width})),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return l(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitleCollapsed",t.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",t.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",t.collapseButton),this.setPropertyValue("cssHeaderCloseButton",t.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",t.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t=setInterval((function(){e.hide(),clearInterval(t)}),1e3*this.closeOnCompleteTimeout)}},t.prototype.onScroll=function(){this.survey.onScroll()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/popup-utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createPopupModalViewModel",(function(){return l})),n.d(t,"createPopupViewModel",(function(){return u}));var r=n("./src/global_variables_utils.ts"),o=n("./src/popup.ts"),i=n("./src/popup-dropdown-view-model.ts"),s=n("./src/popup-modal-view-model.ts"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function l(e,t){var n,i=a({},e);i.verticalPosition="top",i.horizontalPosition="left",i.showPointer=!1,i.isModal=!0,i.displayMode=e.displayMode||"popup";var l=new o.PopupModel(e.componentName,e.data,i);l.isFocusedContent=null===(n=e.isFocusedContent)||void 0===n||n;var u=new s.PopupModalViewModel(l);if(t&&t.appendChild){var c=r.DomDocumentHelper.createElement("div");t.appendChild(c),u.setComponentElement(c)}u.container||u.initializePopupContainer();var p=function(e,t){t.isVisible||c&&u.resetComponentElement(),u.onVisibilityChanged.remove(p)};return u.onVisibilityChanged.add(p),u}function u(e,t){return e.isModal?new s.PopupModalViewModel(e):new i.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FOCUS_INPUT_SELECTOR",(function(){return f})),n.d(t,"PopupBaseViewModel",(function(){return m}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/actions/container.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/utils/animation.ts"),p=n("./src/global_variables_utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',m=function(e){function t(t){var n=e.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new c.AnimationBoolean(n,(function(e){n._isVisible!==e&&(e?(n.updateBeforeShowing(),n.updateIsVisible(e)):(n.updateOnHiding(),n.updateIsVisible(e),n.updateAfterHiding(),n._isPositionSetValue=!1))}),(function(){return n._isVisible})),n.onVisibilityChanged=new o.EventBase,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=t,n.locale=n.model.locale,n}return d(t,e),t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--animate-leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--animate-enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return"overlay"!==this.model.displayMode&&l.settings.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return null===(e=this.container)||void 0===e?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(f),n=t[0],r=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||f);t?t.focus():e.focusContainer()}}),100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=p.DomDocumentHelper.createElement("div");this.createdContainer=e,Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e,t,n){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var n=e.target;n!==this.container;){if("auto"===p.DomDocumentHelper.getComputedStyle(n).overflowY&&n.scrollHeight!==n.offsetHeight){var r=n.scrollHeight,o=n.scrollTop,i=n.clientHeight;if(!(t>0&&Math.abs(r-i-o)<1||t<0&&o<=0))return}n=n.parentElement}e.cancelable&&e.preventDefault()},h([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),h([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"_isVisible",void 0),h([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return u})),n.d(t,"createDialogOptions",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/console-warnings.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},u=function(e){function t(t,n,r,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=n,r&&"string"==typeof r)i.verticalPosition=r,i.horizontalPosition=o;else if(r){var s=r;for(var a in s)i[a]=s[a]}return i}return a(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},l([Object(i.property)()],t.prototype,"contentComponentName",void 0),l([Object(i.property)()],t.prototype,"contentComponentData",void 0),l([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),l([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"showPointer",void 0),l([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"canShrink",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),l([Object(i.property)({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),l([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),l([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function c(e,t,n,r,o,i,a,l,u){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===u&&(u="popup"),s.ConsoleWarnings.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:a,title:l,displayMode:u}}},"./src/progress-buttons.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProgressButtons",(function(){return u})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/defaultCss/defaultV2Css.ts"),s=n("./src/page.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;return n.survey=t,n.onResize=n.addEvent(),n}return l(t,e),t.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){void 0===e&&(e="center");var t=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(t+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(-1!==["footer","contentBottom"].indexOf(e)?"bottom":"top"),t+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(t+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(t+=" "+this.survey.css.progressButtonsFitSurveyWidth),t},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new a.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,t){return(new a.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof s.PageModel||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var t=e.querySelector("."+this.survey.css.progressButtonsListContainer);return!!t&&t.scrollWidth>t.offsetWidth},t.prototype.isCanShowItemTitles=function(e){var t=e.querySelector("ul");if(!t||t.children.length<2)return!0;if(t.clientWidth>t.parentElement.clientWidth)return!1;for(var n=t.children[0].clientWidth,r=0;r<t.children.length;r++)if(Math.abs(t.children[r].clientWidth-n)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var t=e.querySelectorAll(".sd-progress-buttons__connector"),n=0;n<t.length;n++)t[n].style.width=""},t.prototype.adjustConnectors=function(e){var t=e.querySelector("ul");if(t)for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=this.showItemNumbers?17:5,o=this.survey.isMobile?0:t.children[0].clientWidth,i=(t.clientWidth-o)/(t.children.length-1)-r,s=0;s<n.length;s++)n[s].style.width=i+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return"defaultV2"===i.surveyCss.currentType&&"survey"===this.survey.progressBarInheritWidthFrom&&"static"==this.survey.widthMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return"defaultV2"===i.surveyCss.currentType&&this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return"defaultV2"!==i.surveyCss.currentType||this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var t="";return this.showItemNumbers&&(t+=this.survey.visiblePages.indexOf(e)+1),t},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(o.Base),c=function(){function e(e,t,n){var r=this;this.model=e,this.element=t,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(e,t){if(r.viewModel.onUpdateScroller(e.isListContainerHasScroller(r.element)),e.showItemTitles){if(e.survey.isMobile)return r.prevWidth=t.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),void r.viewModel.onResize(r.canShowItemTitles);r.model.clearConnectorsWidth(r.element),void 0!==r.timer&&clearTimeout(r.timer),r.timer=setTimeout((function(){(void 0===r.prevWidth||r.prevWidth<t.width&&!r.canShowItemTitles||r.prevWidth>t.width&&r.canShowItemTitles)&&(r.prevWidth=t.width,r.canShowItemTitles=e.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)}),10)}else r.model.adjustConnectors(r.element)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,(function(){return r.forceUpdate()}),"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return e.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},e.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},e}()},"./src/question.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Question",(function(){return E}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/error.ts"),l=n("./src/validator.ts"),u=n("./src/localizablestring.ts"),c=n("./src/conditions.ts"),p=n("./src/questionCustomWidgets.ts"),d=n("./src/settings.ts"),h=n("./src/rendererFactory.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=n("./src/console-warnings.ts"),y=n("./src/conditionProcessValue.ts"),v=n("./src/global_variables_utils.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},w=function(e,t,n){this.name=e,this.canRun=t,this.doComplete=n,this.runSecondCheck=function(e){return!1}};function x(e,t){return e.querySelector(t)||e!=v.DomWindowHelper.getWindow()&&e.matches(t)&&e}var E=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.hasCssErrorCallback=function(){return!1},r.isReadyValue=!0,r.dependedQuestions=[],r.onReadyChanged=r.addEvent(),r.triggersInfo=[],r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",(function(e){e.errorOwner=r})),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.createLocalizableString("requiredErrorText",r),r.addTriggerInfo("resetValueIf",(function(){return!r.isEmpty()}),(function(){r.clearValue(),r.updateValueWithDefaults()})),r.addTriggerInfo("setValueIf",(function(){return!0}),(function(){return r.runSetValueExpression()})).runSecondCheck=function(e){return r.checkExpressionIf(e)},r.registerPropertyChangedHandlers(["width"],(function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["isRequired"],(function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()})),r.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){r.onIndentChanged()})),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){r.initCommentFromSurvey()})),r.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],(function(){r.updateQuestionCss()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.onMobileChanged()})),r}return b(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnly.commentRenderMode},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){this.isMobile=e&&(this.allowMobileInDesignMode()||!this.isDesignMode)},t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(e){return e||(e=t.getDefaultTitle()),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e)for(var t=this.getIsReadyDependsOn(),n=0;n<t.length;n++)if(!t[n].getIsQuestionReady()){e=!1;break}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!e[t].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&(this.getIsReadyDependends().forEach((function(e){return e.updateIsReady()})),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var t=this;if(!this.survey)return[];var n=this.survey.questionsByValueName(this.getValueName()),r=new Array;return n.forEach((function(e){e!==t&&r.push(e)})),e||(this.parentQuestion&&r.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach((function(e){return r.push(e)}))),r},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){void 0===e&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.onHidingContent()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),t=this.isVisible;e!==t&&(this.setPropertyValue("isVisible",t),t||this.onHidingContent())},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new c.ExpressionRunner(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(t){e.runExpressionSetValue(t)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),!!this.setValueExpressionRunner&&(new y.ProcessValue).isAnyKeyChanged(e,this.setValueExpressionRunner.getVariables())},t.prototype.addTriggerInfo=function(e,t,n){var r=new w(e,t,n);return this.triggersInfo.push(r),r},t.prototype.runTriggerInfo=function(e,t,n){var r=this[e.name],o={};o[t]=n,r&&!e.isRunning&&e.canRun()?(e.runner?e.runner.expression=r:(e.runner=new c.ExpressionRunner(r),e.runner.onRunComplete=function(t){!0===t&&e.doComplete(),e.isRunning=!1}),((new y.ProcessValue).isAnyKeyChanged(o,e.runner.getVariables())||e.runSecondCheck(o))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))):e.runSecondCheck(o)&&e.doComplete()},t.prototype.runTriggers=function(e,t){var n=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||this.triggersInfo.forEach((function(r){n.runTriggerInfo(r,e,t)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions(),this.calcRenderedCommentPlaceholder(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if("left"===this.getTitleLocation()&&this.parent)return this.parent.getQuestionTitleWidth()},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return"default"!==this.errorLocation?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){return this.getPropertyValue("renderedCommentPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.calcRenderedCommentPlaceholder=function(){var e=this.isReadOnly?void 0:this.commentPlaceHolder;this.setPropertyValue("renderedCommentPlaceholder",e)},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(m.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var n=d.settings.environment.root.getElementById(e);n&&t.commentElements.push(n)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){var n=this.hasCssError();return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(t.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(t.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(t.hasError,n).append(t.hasErrorTop,n&&"top"==this.getErrorLocation()).append(t.hasErrorBottom,n&&"bottom"==this.getErrorLocation()).append(t.small,!this.width).append(t.answered,this.isAnswered).append(t.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(t.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new f.CssClassBuilder).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var n=this.page;n&&this.survey.activePage!==n?this.survey.focusQuestionByInstance(this,e):this.focuscore(e,t)}},t.prototype.focuscore=function(e,t){void 0===e&&(e=!1),this.survey&&(this.expandAllParents(),this.survey.scrollElementToTop(this,this,null,this.id,t));var n=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(n)&&this.fireCallback(this.focusCallback)},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode,r=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||n||t||r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return void 0!==this.forceIsInputReadOnly?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.calcRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||this.isClearValueOnHidden&&!this.isVisibleInSurvey||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.calcRenderedCommentPlaceholder(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){void 0!==this.value&&(this.value=void 0),this.comment&&!0!==e&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return!(("onHiddenContainer"!==e||this.isParentVisible)&&(this.isVisibleInSurvey||this.page&&this.page.isStartPage||this.survey&&this.survey.hasVisibleQuestionByValueName(this.getValueName())))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();"none"!==t&&("onHidden"===e&&"onComplete"===t||"onHiddenContainer"===e&&t!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&(this.clearValue(),this.setValueChangedDirectly(void 0))},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t.getPlainDataCalculatedValue(e.propertyName)})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=o.Helpers.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),d.settings.comparator.caseSensitive,!0),t=e?1:0,n={result:e,correctAnswer:t,correctAnswers:t,incorrectAnswers:this.quizQuestionCount-t};return this.survey&&this.survey.onCorrectQuestionAnswer(this,n),n.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=this.createExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore((function(t){e.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){return e(t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValueCore(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var t=this;this.runExpressionSetValueCore(e,(function(e){t.isTwoValueEquals(t.value,e)||(t.value=e)}))},t.prototype.runDefaultValueExpression=function(e,t,n,r){var o=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){o.runExpressionSetValue(e)}),t||(t=this.defaultValueExpression?this.data.getFilteredValues():{}),n||(n=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,r(e),o.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=d.settings.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){void 0===e&&(e=!1);var t=[];return this.collectNestedQuestions(t,e),1===t.length&&t[0]===this?[]:t},t.prototype.collectNestedQuestions=function(e,t){void 0===t&&(t=!1),t&&!this.isVisible||this.collectNestedQuestionsCore(e,t)},t.prototype.collectNestedQuestionsCore=function(e,t){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.JsonObject).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n,this.errors!==n&&this.errors.forEach((function(e){return e.locText.strChanged()}))),this.updateContainsErrors(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?this.addCustomError(e):e,this.errors.push(t)}},t.prototype.addCustomError=function(e){return new a.CustomError(e,this.survey)},t.prototype.removeError=function(e){if(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)}},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly||d.settings.readOnly.enableValidation},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var n=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var r=new a.AnswerRequiredError(this.requiredErrorText,this);r.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(r)}if(!this.isEmpty()&&this.customWidget){var o=this.customWidget.validate(this);o&&e.push(this.addCustomError(o))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0)},t.prototype.checkIsValueCorrect=function(e){var t=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return t||g.ConsoleWarnings.inCorrectQuestionValue(this.name,e),t},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!(!this.isTwoValueEquals(e,t,!1,!1)||e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.getIsInputTextUpdate()&&"text")},t.prototype.getValidName=function(e){return P(e)},t.prototype.updateValueFromSurvey=function(e,t){var n=this;if(void 0===t&&(t=!1),e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.checkIsValueCorrect(e)){var r=this.isValueEmpty(e);!r&&this.defaultValueExpression?this.setDefaultValueCore((function(t){n.updateValueFromSurveyCore(e,n.isTwoValueEquals(e,t))})):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),t&&r&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,t){this.isChangingViaDefaultValue=t,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),e=this.convertToCorrectValue(e);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.isParentChangingViaDefaultValue||this.setValueChangedDirectly(!0),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return!0===(null===(e=this.data)||void 0===e?void 0:e.isChangingViaDefaultValue)},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!d.settings.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,t){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.onTextKeyDownHandler=function(e){13===e.keyCode&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!x(e,n))return;var r=!1,o=void 0;this.triggerResponsivenessCallback=function(i){i&&(o=void 0,t.renderAs="default",r=!1);var s=function(){var i=x(e,n);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),r=!(r||!Object(m.isContainerVisible)(i))&&t.processResponsiveness(o,Object(m.getElementWidth)(i))};i?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver((function(e){v.DomWindowHelper.requestAnimationFrame((function(){t.triggerResponsiveness(!1)}))})),this.onMobileChangedCallback=function(){setTimeout((function(){var r=x(e,n);r&&t.processResponsiveness(o,Object(m.getElementWidth)(r))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return e>t?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,C([Object(i.property)({defaultValue:!1})],t.prototype,"isMobile",void 0),C([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),C([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),C([Object(i.property)()],t.prototype,"renderAs",void 0),C([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function P(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return P(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return P(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCustomWidget",(function(){return o})),n.d(t,"CustomWidgetCollection",(function(){return i}));var r=n("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.validate=function(e){if(this.widgetJson.validate)return this.widgetJson.validate(e)},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new o(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSelectBase",(function(){return v})),n.d(t,"QuestionCheckboxBase",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/survey.ts"),s=n("./src/question.ts"),a=n("./src/itemvalue.ts"),l=n("./src/surveyStrings.ts"),u=n("./src/error.ts"),c=n("./src/choicesRestful.ts"),p=n("./src/conditions.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new a.ItemValue("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n.headItemsCount=0,n.footItemsCount=0,n.allowMultiColumns=!0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(h.settings.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(h.settings.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(h.settings.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){n.onVisibleChanged()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return g(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=o.Serializer.createClass(this.getItemValueType(),{value:e});return n.locOwner=this,t&&(n.text=t),n},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){var n=e?"select":t?"array":void 0;this.setPropertyValue("carryForwardQuestionType",n)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&a.ItemValue.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var t=this.otherValue;e!==t&&(this.prevOtherErrorValue=t)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,t,n){var r=new a.ItemValue(e),o=this.createLocalizableString(t,r,!0,n);return r.locOwner=this,r.setLocText(o),r},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var t=this.comment;e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&t!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e&&this.value==e.id||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisibility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return n?n(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.updatePrevOtherErrorValue(t),this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(t){e.prototype.clearValue.call(this,t),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.isReadOnlyAttr||(this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e))},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(t){e.prototype.setValueCore.call(this,t),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.ItemValue.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!this.waitingGetChoiceDisplayValueResponse&&this.survey&&!this.isEmpty()){var t=this.value,n=Array.isArray(t)?t:[t];n.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}))&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:n,setItems:function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(e.waitingGetChoiceDisplayValueResponse=!1,r&&r.length){var s=r.map((function(t,r){return e.createItemValue(n[r],t)}));e.setCustomValuesIntoItems(s,o),Array.isArray(t)?e.selectedItemValues=s:e.selectedItemValues=s[0],e.updateIsReady()}else e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,t){Array.isArray(t)&&0!==t.length&&t.forEach((function(t){var n=t.values,r=t.propertyName;if(Array.isArray(n))for(var o=0;o<e.length&&o<n.length;o++)e[o][r]=n[o]}))},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,t,n,r);for(var o=0;o<e.length;o++)if(this.hasUnknownValueItem(e,t,n,r))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.showNoneItem&&e==this.noneItem.value)return!1;if(this.showRefuseItem&&e==this.refuseItem.value)return!1;if(this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&(t.removeDependedQuestion(this),this.isDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson&&!this.isDisposed){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);var r=this.visibleChoices;this.isTwoValueEquals(r,e)&&!this.choicesLazyLoadEnabled||this.setArrayPropertyDirectly("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!(this.isAddDefaultItems||this.showNoneItem||this.showRefuseItem||this.showDontKnowItem||this.hasOther||"none"!=this.choicesOrder)},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,t);var n=new Array;this.addNonChoicesItems(n,t),n.sort((function(e,t){return e.index===t.index?0:e.index<t.index?-1:1}));for(var r=0;r<n.length;r++){var o=n[r];o.index<0?(e.splice(r,0,o.item),this.headItemsCount++):(e.push(o.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,t){var n=this;t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",(function(){n.updateVisibleChoices()}))),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,t){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,t,this.showNoneItem,h.settings.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,t,this.showRefuseItem,h.settings.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,t,this.showDontKnowItem,h.settings.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,t,this.hasOther,h.settings.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,t,n,r,o){this.canShowOptionItem(t,n,r)&&o.forEach((function(n){return e.push({index:n,item:t})}))},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisibility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.showDefaultItemsInCreatorV2&&this.isDesignModeV2&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map((function(e,r){var o=a.ItemValue.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i})))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,t):t},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=this.getSingleSelectedItem();if(n&&this.isTwoValueEquals(n.value,t))return n.locText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this,o=this.visibleChoices,i=[],s=[],a=0;a<t.length;a++)s.push(n?n(a):t[a]);if(d.Helpers.isTwoValueEquals(this.value,s)&&this.getMultipleSelectedItems().forEach((function(e,t){return i.push(r.getItemDisplayValue(e,s[t]))})),0===i.length)for(a=0;a<s.length;a++){var l=this.getChoicesDisplayValue(o,s[a]);l&&i.push(l)}return i.join(h.settings.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,t){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&t)return t;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null},t.prototype.getIsReadyDependsOn=function(){var t=e.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&t.push(this.carryForwardQuestion),t},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&o.Serializer.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var n=[],r=0;r<t.length;r++){var o=t[r];if(d.Helpers.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var s=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(o[i],s))}}}return n},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isDesignMode)return[];for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!e.isBuiltInChoice(r[o]))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.otherValue&&(!n||this.prevOtherErrorValue)){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,n){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||this.hasChoicesUrl&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),t!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;t&&r&&(t===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):this.data&&(r=this.data.getComment(this.getValueName()))),e.prototype.updateValueFromSurvey.call(this,t,n),!this.isRunningChoices&&!this.choicesByUrl.isRunning||this.isEmpty()||(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices&&!this.isDesignModeV2){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.web.disableQuestionWhileLoadingChoices||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,a.ItemValue.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;this.setChoicesFromUrl(n,t,o)},t.prototype.canAvoidSettChoicesFromUrl=function(e){return!this.isFirstLoadChoicesFromUrl&&!((!e||Array.isArray(e)&&0===e.length)&&!this.isEmpty())&&d.Helpers.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,t,n){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var r=this.updateCachedValueForUrlRequests(n,e);if(r&&!this.isReadOnly){var o=!this.isTwoValueEquals(this.value,r.value);try{this.isValueEmpty(r.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=o,o?this.value=r.value:this.setQuestionValue(r.value)}finally{this.allowNotifyValueChanged=!0}}}this.isReadOnly||e||this.isFirstLoadChoicesFromUrl||(this.value=null),this.errors=t,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return d.Helpers.compareStrings(e.calculatedText,n.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&this.canClearIncorrectValues()&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||0==this.choicesFromUrl.length))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.hasCssError()),r=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),o=r[0],i=r[1],s=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,a=!(i||s||this.survey&&this.survey.isDesignMode),l=e===this.noneItem;return t.isDisabled=i||o,t.isChecked=s,t.isNone=l,n.append(this.cssClasses.itemDisabled,i).append(this.cssClasses.itemReadOnly,o).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,s).append(this.cssClasses.itemHover,a).append(this.cssClasses.itemNone,l).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isDesignMode?this.headItemsCount:0,t=[],n=0;n<e;n++)t.push(this.visibleChoices[n]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isDesignMode?this.footItemsCount:0,t=[],n=this.visibleChoices,r=0;r<e;r++)t.push(n[n.length-e+r]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var n=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),t.prototype.getObservedElementSelector=function(){return Object(m.classesToSelector)(this.cssClasses.mainRoot)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){e.prototype.onBeforeSetDesktopRenderer.call(this),this.allowMultiColumns=!1},t.prototype.onBeforeSetDesktopRenderer=function(){e.prototype.onBeforeSetDesktopRenderer.call(this),this.allowMultiColumns=!0},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.allowMultiColumns&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(m.mergeValues)(n.list,r),Object(m.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},y([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),y([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),y([Object(o.property)()],t.prototype,"allowMultiColumns",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);function C(e,t){var n;if(!e)return!1;if(e.templateQuestion){var r=null===(n=e.colOwner)||void 0===n?void 0:n.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(r))return!1}return e.carryForwardQuestionType===t}o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(e){return e.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(e){return e.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionBooleanModel",(function(){return d}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/question.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=n("./src/global_variables_utils.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return c(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if("indeterminate"!==e&&null!=e)return"true"==e?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue&&void 0!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;"indeterminate"!==e&&null!=e||this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),e.prototype.updateValueFromSurvey.call(this,t,n)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"!==t&&null!==t||(t=void 0),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n=!1;u.DomDocumentHelper.isAvailable()&&(n="rtl"==u.DomDocumentHelper.getComputedStyle(e.target).direction),this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.stopPropagation(),this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key)),!0},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(n+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(n+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(n+=" "+e.radioItemPreview),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),p([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),p([Object(i.property)()],t.prototype,"showTitle",void 0),p([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"swapOrder",void 0),p([Object(i.property)()],t.prototype,"valueTrue",void 0),p([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],(function(){return new d("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new d(e)}))},"./src/question_buttongroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ButtonGroupItemValue",(function(){return c})),n.d(t,"QuestionButtonGroupModel",(function(){return p})),n.d(t,"ButtonGroupItemModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/itemvalue.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCheckboxModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/helpers.ts"),l=n("./src/itemvalue.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new l.ItemValue(""),n.selectAllItemValue.id="selectall";var r=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText");return n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(r),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return d(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){for(var e=this.getNoneItems(),t=0;t<e.length;t++)if(this.isItemSelected(e[t]))return!1;var n=this.getVisibleEnableItems();if(0===n.length)return!1;var r=this.value;if(!r||!Array.isArray(r)||0===r.length)return!1;if(r.length<n.length)return!1;var o=[];for(t=0;t<r.length;t++)o.push(this.getRealValue(r[t]));for(t=0;t<n.length;t++)if(o.indexOf(n[t].value)<0)return!1;return!0},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=this.getVisibleEnableItems(),n=0;n<t.length;n++)e.push(t[n].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,t){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)!0===t||!1===t?this.isAllSelected=t:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=t?[e.value]:[];else{var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,t=this.visibleChoices,n=this.selectedItemValues;if(this.isEmpty())return[];var r=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,t):t,o=e.map((function(e){return l.ItemValue.getItemByValue(r,e)})).filter((function(e){return!!e}));return o.length||n||this.updateSelectedItemValues(),this.validateItemValues(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var t=e.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(t+="-unwrapped"),t},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:e.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var t=this;if(e.length)return e;var n=this.selectedItemValues;return n&&n.length?(this.defaultSelectedItemValues=[].concat(n),n):this.renderedValue.map((function(e){return t.createItemValue(e)}))},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var r=new c.CustomError(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(r)}},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){this.updateSelectAllItemProps(),this.maxSelectedChoices<1?this.otherItem.setIsEnabled(!0):this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,t=this.maxSelectedChoices;return!(t>0&&t<e)&&e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,t=this.activeChoices,n=0;n<t.length;n++){var r=t[n];r.isEnabled&&r.isVisible&&e.push(r)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;t||(t=[]),n||(n=[]),this.isTwoValueEquals(n,t)||(this.removeNoneItemsValues(n,t),e.prototype.setNewValue.call(this,t))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValueItem(e[t],!1,!1))return t;return-1},t.prototype.removeNoneItemsValues=function(e,t){var n=[];if(this.showNoneItem&&n.push(this.noneItem.value),this.showRefuseItem&&n.push(this.refuseItem.value),this.showDontKnowItem&&n.push(this.dontKnowItem.value),n.length>0){var r=this.noneIndexInArray(e,n),o=this.noneIndexInArray(t,n);if(r.index>-1)if(r.val===o.val)t.length>0&&t.splice(o.index,1);else{var i=this.noneIndexInArray(t,[r.val]);i.index>-1&&i.index<t.length-1&&t.splice(i.index,1)}else if(o.index>-1&&t.length>1){var s=this.convertValueToObject([o.val])[0];t.splice(0,t.length,s)}}},t.prototype.noneIndexInArray=function(e,t){if(!Array.isArray(e))return{index:-1,val:void 0};for(var n=e.length-1;n>=0;n--){var r=t.indexOf(this.getRealValue(e[n]));if(r>-1)return{index:n,val:t[r]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(t,n){e.prototype.addNonChoicesItems.call(this,t,n),this.supportSelectAll()&&this.addNonChoiceItem(t,this.selectAllItem,n,this.hasSelectAll,p.settings.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(t){return t===this.selectAllItem||e.prototype.isBuiltInChoice.call(this,t)},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueEmpty=function(){var e=this;return l.ItemValue.getTextOrHtmlByValue(this.visibleChoices.filter((function(t){return t!=e.selectAllItemValue})),void 0)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,(function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue(!0):this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n];if(r!==this.selectAllItem){var o=t[n].value;a.Helpers.isTwoValueEquals(o,this.invisibleOldValues[o])&&(this.isItemSelected(r)||e.push(o),delete this.invisibleOldValues[o])}}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.minSelectedChoices;return n>0&&t<n?n:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.maxSelectedChoices;return n>0&&t>n?n:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new h("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCommentModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_textbase.ts"),a=n("./src/utils/utils.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){return this.allowResize&&this.survey&&this.survey.allowResizeComment&&!this.isPreviewStyle&&!this.isReadOnlyStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=l.settings.environment.root;this.element=n.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElement()},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},t.prototype.getValueSeparator=function(){return"\n"},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentQuestionJSON",(function(){return h})),n.d(t,"ComponentCollection",(function(){return f})),n.d(t,"QuestionCustomModelBase",(function(){return m})),n.d(t,"QuestionCustomModel",(function(){return g})),n.d(t,"QuestionCompositeModel",(function(){return v}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/helpers.ts"),l=n("./src/textPreProcessor.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=n("./src/console-warnings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){function e(e,t){this.name=e,this.json=t;var n=this;i.Serializer.addClass(e,[],(function(e){return f.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onSetQuestionValue=function(e,t){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(e,t),this.json.onValueSet&&this.json.onValueSet(e,t)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onGetErrorText=function(e){if(this.json.getErrorText)return this.json.getErrorText(e)},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},e.prototype.calcDynamicProperties=function(){var e=this.json.inheritBaseProps;if(!e||!this.json.questionJSON)return[];var t=this.json.questionJSON.type;if(!t)return[];if(Array.isArray(e)){var n=[];return e.forEach((function(e){var r=i.Serializer.findProperty(t,e);r&&n.push(r)})),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return i.Serializer.getDynamicPropertiesByTypes(this.name,t,r)},e}(),f=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var n=new h(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},e.prototype.remove=function(e){if(!e)return!1;var t=this.getCustomQuestionIndex(e.toLowerCase());return!(t<0||(this.removeByIndex(t),0))},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){var t=this.getCustomQuestionIndex(e);return t>=0?this.customQuestionValues[t]:void 0},e.prototype.getCustomQuestionIndex=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name===e)return t;return-1},e.prototype.removeByIndex=function(e){i.Serializer.removeClass(this.customQuestionValues[e].name),this.customQuestionValues.splice(e,1)},e.prototype.clear=function(e){for(var t=this.customQuestionValues.length-1;t>=0;t--)!e&&this.customQuestionValues[t].json.internal||this.removeByIndex(t)},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new v(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new g(e,t)},e.Instance=new e,e}(),m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,i.CustomPropertiesCollection.createProperties(r),s.SurveyElement.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return d(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?e.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.getElement()&&this.getElement().addUsedLocales(t)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return!!e&&e.needResponsiveWidth()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=this.getElement();t&&t.onHidingContent()},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,t)},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),this.customQuestion){var r=this.customQuestion.onGetErrorText(this);r&&t.push(new c.CustomError(r,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,t);var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(o.Question),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(t,n,r,o,i){e.getDynamicProperty(t)&&e.propertyValueChanged(t,n,r,i)})},t.prototype.getDynamicProperty=function(e){for(var t=this.getDynamicProperties(),n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):e.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.contentQuestion&&this.contentQuestion.afterRender(t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){this.hasJSONTitle=!!t.questionJSON.title;var r=t.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";(n=i.Serializer.createClass(r)).fromJSON(t.questionJSON),n=this.checkCreatedQuestion(n)}else t.createQuestion&&(n=this.checkCreatedQuestion(t.createQuestion()));return this.initElement(n),n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)},n.hasCssErrorCallback=function(){return e.errors.length>0},n.setValueChangedDirectlyCallback=function(t){e.setValueChangedDirectly(t)}),n},t.prototype.checkCreatedQuestion=function(e){return e?(e.isQuestion||(e=Array.isArray(e.questions)&&e.questions.length>0?e.questions[0]:i.Serializer.createClass("text"),p.ConsoleWarnings.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e):e},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){var n=this.contentQuestion;if(!n||t===this.getValueName())return e.prototype.convertDataName.call(this,t);var r=t.replace(n.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.getContentQuestionValue(),t)||this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(t){this.isSettingValueChanged||(this.isSettingValueChanged=!0,e.prototype.setValueChangedDirectly.call(this,t),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(t),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var t=this.getDynamicProperties();Array.isArray(t)&&i.Serializer.addDynamicPropertiesIntoObj(this,e,t)}},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(m),y=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return d(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),v=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new y(o,t.ItemVariableName),o}return d(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(t,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();a.Helpers.isValueEmpty(t)||(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);var n=t||{};this.contentPanel&&this.contentPanel.questions.forEach((function(e){e.onSurveyValueChanged(n[e.getValueName()])}))},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(n,r,o,i){if(this.settingNewValue)this.setNewValueIntoQuestion(n,r);else if(!this.isValueChanging(n,r)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,a=this.contentPanel.questions.length+1;s<a&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(n,r),e.prototype.setValue.call(this,n,r,o,i),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+n,r)}},t.prototype.runPanelTriggers=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){n.runTriggers(e,t)}))},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.collectNestedQuestionsCore=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))},t.prototype.convertDataValue=function(e,t){var n=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return n||(n={}),n.getType||(n=a.Helpers.getUnbindValue(n)),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var n=this.contentPanel.questions,r=0;r<n.length;r++){var o=n[r].getValueName(),i=e?e[o]:void 0,s=n[r];this.isTwoValueEquals(s.value,i)||(s.value=i)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(m)},"./src/question_dropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionDropdownModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/dropdownListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return c(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||u.settings.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new l.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var n;null===(n=this.dropdownListModel)||void 0===n||n.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),!this.isLoadingFromJson&&this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),this.lastSelectedItemValue=null,null===(n=this.dropdownListModel)||void 0===n||n.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)()],t.prototype,"searchMode",void 0),p([Object(o.property)()],t.prototype,"textWrapEnabled",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),p([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:u.settings.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new d("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionEmptyModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/question.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionExpressionModel",(function(){return u})),n.d(t,"getCurrecyCodes",(function(){return c}));var r,o=n("./src/helpers.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],(function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())})),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){n.updateFormatedValue()})),n}return l(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,t=this.createExpressionRunner(this.expression);return t.onRunComplete=function(t){e.value=e.roundValue(t),e.unlocCalculation()},t},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=null==t?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0?e:o.Helpers.isNumber(e)?parseFloat(e.toFixed(this.precision)):e},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(i.Question);function c(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD",visibleIf:function(e){return"currency"===e.displayStyle}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new u("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new u(e)}))},"./src/question_file.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dataUrl2File",(function(){return b})),n.d(t,"QuestionFileModelBase",(function(){return C})),n.d(t,"QuestionFileModel",(function(){return w})),n.d(t,"FileLoader",(function(){return x}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/base.ts"),l=n("./src/error.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/utils/utils.ts"),p=n("./src/actions/container.ts"),d=n("./src/actions/action.ts"),h=n("./src/helpers.ts"),f=n("./src/utils/camera.ts"),m=n("./src/settings.ts"),g=n("./src/global_variables_utils.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function b(e,t,n){var r=atob(e.split(",")[1]),o=new Uint8Array(r.split("").map((function(e){return e.charCodeAt(0)}))).buffer;return new File([o],t,{type:n})}var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isUploading=!1,t.onUploadStateChanged=t.addEvent(),t.onStateChanged=t.addEvent(),t}return y(t,e),t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(t){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this,t)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new l.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var t=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,(function(e,n){Array.isArray(e)&&(t.setValueFromResult(e),Array.isArray(n)&&(n.forEach((function(e){return t.errors.push(new l.UploadingFileError(e,t))})),t.stateChanged("error"))),"success"===e&&Array.isArray(n)&&t.setValueFromResult(n),"error"===e&&("string"==typeof n&&t.errors.push(new l.UploadingFileError(n,t)),Array.isArray(n)&&n.length>0&&n.forEach((function(e){return t.errors.push(new l.UploadingFileError(e,t))})),t.stateChanged("error")),t.stateChanged("loaded")})))},v([Object(i.property)()],t.prototype,"isUploading",void 0),v([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(o.Question),w=function(e){function t(t){var n=e.call(this,t)||this;return n.isDragging=!1,n.fileNavigator=new p.ActionContainer,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n.calcAvailableItemsCount=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r},n.dragCounter=0,n.onDragEnter=function(e){n.canDragDrop()&&(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(!n.canDragDrop())return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.canDragDrop()&&(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(){n.needConfirmRemoveFile?Object(c.confirmActionAsync)(n.confirmRemoveAllMessage,(function(){n.clearFilesCore()}),void 0,n.getLocale(),n.survey.rootElement):n.clearFilesCore()},n.doDownloadFileFromContainer=function(e){e.stopPropagation();var t=e.currentTarget;if(t&&t.getElementsByTagName){var n=t.getElementsByTagName("a")[0];null==n||n.click()}},n.doDownloadFile=function(e,t){e.stopPropagation(),Object(c.detectIEOrEdge)()&&(e.preventDefault(),Object(c.loadFileFromBase64)(t.content,t.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new p.ActionContainer,n.actionsContainer.locOwner=n,n.fileIndexAction=new d.Action({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new d.Action({id:"prevPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new d.Action({id:"nextPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new d.Action({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()})),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new d.Action({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()})),action:function(){n.stopVideo()}}),n.changeCameraAction=new d.Action({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()})),visible:new a.ComputedUpdater((function(){return n.canFlipCamera()})),action:function(){n.flipCamera()}}),n.chooseFileAction=new d.Action({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new d.Action({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new a.ComputedUpdater((function(){return!n.isAnswered})),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new d.Action({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new a.ComputedUpdater((function(){return n.cssClasses.removeButton})),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach((function(e){e.cssClasses={}})),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],(function(){n.updateActionsVisibility()})),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return y(t,e),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.containsMultiplyFiles,r=this.pageSize<this.previewValue.length;return!e&&!t&&n&&r&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.isDefaultV2Theme;return!e&&!t&&n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return"file"!==this.currentMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return"camera"!==this.currentMode},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;"file"===this.currentMode||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout((function(){e.startVideoInCamera()}),0))},t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoId,(function(t){e.videoStream=t,t||e.stopVideo()}),Object(c.getRenderedSize)(this.imageWidth),Object(c.getRenderedSize)(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;this.isPlayingVideo&&(this.camera.snap(this.videoId,(function(t){if(t){var n=new File([t],"snap_picture.png",{type:"image/png"});e.loadFiles([n])}})),this.stopVideo())},t.prototype.canFlipCamera=function(){var e=this;return void 0===this.canFlipCameraValue&&(this.canFlipCameraValue=this.camera.canFlip((function(t){e.canFlipCameraValue=t}))),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach((function(e){e.stop()})),this.videoStream=void 0)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.previewValueChanged=function(){var e=this;this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow=this.indexToShow>=this.pagesCount&&this.indexToShow>0?this.pagesCount-1:this.indexToShow:this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout((function(){e.processResponsiveness(0,e._width)})),this.prevPreviewLength=this.previewValue.length},t.prototype.isPreviewVisible=function(e){var t=this.fileNavigatorVisible,n=this.indexToShow*this.pageSize<=e&&e<(this.indexToShow+1)*this.pageSize;return!t||n},t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var t=this;if(g.DomDocumentHelper.isAvailable()){var n=g.DomDocumentHelper.getDocument().getElementById(this.inputId);e.preventDefault(),e.stopImmediatePropagation(),n&&(this.survey?this.survey.chooseFiles(n,(function(e){return t.loadFiles(e)}),{element:this,elementType:this.getType(),propertyName:this.name}):n.click())}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return void 0===this.locRenderedPlaceholderValue&&(this.locRenderedPlaceholderValue=new a.ComputedUpdater((function(){var t=e.isReadOnly,n=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&"camera"!=e.sourceType,r=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&"file"!=e.sourceType;return t?e.locNoFileChosenCaption:n&&r?e.locFileOrPhotoPlaceholder:n?e.locFilePlaceholder:e.locPhotoPlaceholder}))),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;this.isDesignMode||("file"!==this.sourceType?this.camera.hasCamera((function(t){e.setPropertyValue("currentMode",t&&e.isDefaultV2Theme?e.sourceType:"file")})):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&"camera"!==this.sourceType,this.startCameraAction.visible=!e&&this.hasVideoUI||e&&"file"!==this.sourceType,this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,t=this.showLoadingIndicator;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,t=this.isReadOnly,n=this.isEmpty();return!(t||n||e||this.isDefaultV2Theme)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=(new u.CssClassBuilder).append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!h.Helpers.isTwoValueEquals(t,e,!0,!1,!1)})):t.value=void 0}}))},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}})))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach((function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)})):t.uploadFiles(e)};this.allowMultiple?n():this.clear(n)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new f.Camera),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?n.forEach((function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})})):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new x(this,(function(e,n){"loaded"===e&&(n.forEach((function(e){t.previewValue.push(e)})),t.previewValueChanged()),t.isFileLoading=!1,t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(n)),this.previewValueChanged()}},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new l.ExceedSizeError(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.getImageWrapperCss=function(e){return(new u.CssClassBuilder).append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return(new u.CssClassBuilder).append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new u.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new u.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(g.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.actionsContainer.cssClasses=t.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return Object(c.classesToSelector)(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return Object(c.classesToSelector)(this.cssClasses.fileList)},t.prototype.triggerResponsiveness=function(t){t&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),e.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,t){var n=this;if(this._width=t,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector()?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(r){this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(g.DomDocumentHelper.getComputedStyle(r).gap));var o=Array.from(r.children).filter((function(e,t){return n.isPreviewVisible(t)}))[0];o&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(g.DomDocumentHelper.getComputedStyle(o).width)))}}return!(!this.calculatedGapBetweenItems||!this.calculatedItemWidth||(this.pageSize=this.calcAvailableItemsCount(t,this.calculatedItemWidth,this.calculatedGapBetweenItems),0))},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&"camera"!==this.currentMode&&!this.isPlayingVideo},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,t){var n=this;t.stopPropagation(),this.needConfirmRemoveFile?Object(c.confirmActionAsync)(this.getConfirmRemoveMessage(e.name),(function(){n.removeFileCore(e)}),void 0,this.getLocale(),this.survey.rootElement):this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),e.prototype.dispose.call(this)},v([Object(i.property)()],t.prototype,"isDragging",void 0),v([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),v([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),v([Object(i.property)({defaultValue:1,onSet:function(e,t){t.updateFileNavigator()}})],t.prototype,"pageSize",void 0),v([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),v([Object(i.property)()],t.prototype,"allowCameraAccess",void 0),v([Object(i.property)({onSet:function(e,t){t.isLoadingFromJson||t.updateCurrentMode()}})],t.prototype,"sourceType",void 0),v([Object(i.property)()],t.prototype,"canFlipCameraValue",void 0),v([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),v([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),v([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),v([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),v([Object(i.property)({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),v([Object(i.property)({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),v([Object(i.property)({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),v([Object(i.property)()],t.prototype,"locRenderedPlaceholderValue",void 0),t}(C);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(e){return!!e.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return m.settings.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],(function(){return new w("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new w(e)}));var x=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,n=0;this.loaded=new Array(e.length),e.forEach((function(r,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(i,s){t.fileQuestion&&t.callback&&("success"===i?(t.loaded[o]={content:s,name:r.name,type:r.type},++n===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionHtmlModel",(function(){return u}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return l(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],(function(){return new u("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new u(e)}))},"./src/question_image.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionImageModel",(function(){return f}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"],p=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],d="embed";function h(e){if(!e)return!1;e=(e=e.toLowerCase()).replace(/^https?:\/\//,"");for(var t=0;t<c.length;t++)if(0===e.indexOf(c[t]+"/"))return!0;return!1}var f=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e,t){if(!e||!h(e))return t?"":e;if(e.toLocaleLowerCase().indexOf(d)>-1)return e;for(var n="",r=e.length-1;r>=0&&"="!==e[r]&&"/"!==e[r];r--)n=e[r]+n;return"https://www.youtube.com/embed/"+n}(e,"youtube"==n.contentMode)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return n.calculateRenderedMode()})),n}return u(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Object(l.getRenderedStyleSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Object(l.getRenderedSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Object(l.getRenderedStyleSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Object(l.getRenderedSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<p.length;t++)if(e.endsWith(p[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new f("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new f(e)}))},"./src/question_imagepicker.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ImageItemValue",(function(){return m})),n.d(t,"QuestionImagePickerModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/settings.ts"),p=n("./src/utils/utils.ts"),d=n("./src/global_variables_utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return h(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),f([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),f([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){n._width&&n.processResponsiveness(0,n._width)})),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){n.calcIsResponsive()})),n.calcIsResponsive(),n}return h(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue(!0);for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue(!0):this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight)||150},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth)||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,t){this.addNewItemToVisibleChoices(e,t)},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var n=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){var r,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=n(t,s,i);r=Math.floor((t-i*(p-1))/p)}else r=Math.floor((t-i*(o-1))/o);else{var d=n(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,r=Math.floor((t-i*(c-1))/c)}r=Math.max(s,Math.min(r,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=r/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,m=this.responsiveImageHeight;return this.responsiveImageWidth=r,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||m!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var n=this;e.prototype.afterRender.call(this,t);var r=this.getObservedElementSelector(),o=t&&r?t.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(d.DomDocumentHelper.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},f([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),f([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),f([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),f([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),f([Object(o.property)({})],t.prototype,"minImageWidth",void 0),f([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),f([Object(o.property)({})],t.prototype,"minImageHeight",void 0),f([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],(function(e){return new m(e)}),"itemvalue"),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new g("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new g(e)}))},"./src/question_matrix.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRowModel",(function(){return y})),n.d(t,"MatrixCells",(function(){return v})),n.d(t,"QuestionMatrixModel",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/itemvalue.ts"),s=n("./src/martixBase.ts"),a=n("./src/jsonobject.ts"),l=n("./src/base.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/error.ts"),p=n("./src/questionfactory.ts"),d=n("./src/localizablestring.ts"),h=n("./src/question_dropdown.ts"),f=n("./src/settings.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.item=t,i.fullName=n,i.data=r,i.setValueDirectly(o),i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i.data&&i.data.hasErrorInRow(i)&&(i.hasError=!0),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return(new m.CssClassBuilder).append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return(new m.CssClassBuilder).append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrix.defaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrix.defaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(f.settings.matrix.defaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrix.defaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var o in r)n[o]=r[o].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var n in t)t[n].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new d.LocalizableString(n),n.cellsValue=new v(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],(function(){n.onColumnsChanged()})),n.registerPropertyChangedHandlers(["rows"],(function(){n.filterItems()||n.onRowsChanged()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new i.ItemValue(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r,i=this.hasCellText,s=this.cssClasses;return(new m.CssClassBuilder).append(s.cell,i).append(i?s.cellText:s.label).append(s.itemOnError,!i&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(i?s.cellTextSelected:s.itemChecked,n).append(i?s.cellTextDisabled:s.itemDisabled,this.isDisabledStyle).append(i?s.cellTextReadOnly:s.itemReadOnly,this.isReadOnlyStyle).append(i?s.cellTextPreview:s.itemPreview,this.isPreviewStyle).append(s.itemHover,o&&!i).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.runItemsCondition=function(t,n){return i.ItemValue.runEnabledConditionsForItems(this.rows,void 0,t,n),e.prototype.runItemsCondition.call(this,t,n)},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.isNewValueCorrect=function(e){return o.Helpers.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n||this.hasCssError()){var r={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(!0,r),r.noValue&&t.push(new c.RequiredInAllRowsError(null,this)),r.isNotUnique&&t.push(new c.EachRowUniqueError(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,t,n){var r=this,o=this.generatedVisibleRows;if(o||(o=this.visibleRows),o){var i=this.isAllRowRequired||n,s=this.eachRowUnique;if(t.noValue=!1,t.isNotUnique=!1,e&&(this.errorsInRow=void 0),i||s){for(var a={},l=0;l<o.length;l++){var u=o[l].value,c=this.isValueEmpty(u),p=s&&!c&&!0===a[u];c=c&&i,e&&(c||p)&&this.addErrorIntoRow(o[l]),c||(a[u]=!0),t.noValue=t.noValue||c,t.isNotUnique=t.isNotUnique||p}e&&o.forEach((function(e){e.hasError=r.hasErrorInRow(e)}))}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new y(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].setValueDirectly(i)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[r]);s||(s=t[r]),n[o]=s}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map((function(e){var r=n.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:r?r.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(n.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=new h.QuestionDropdownModel(n);r.choices=this.columns;var o=(new a.JsonObject).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],(function(){return new b("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownRowModel",(function(){return c})),n.d(t,"QuestionMatrixDropdownModel",(function(){return p}));var r,o=n("./src/question_matrixdropdownbase.ts"),i=n("./src/jsonobject.ts"),s=n("./src/itemvalue.ts"),a=n("./src/questionfactory.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return u(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t}(o.MatrixDropdownRowModelBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],(function(){n.clearGeneratedRows(),n.resetRenderedTable(),n.filterItems()||n.onRowsChanged(),n.clearIncorrectValues()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return u(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}r[i]=this.getRowDisplayValue(e,n[o],a)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return l.Helpers.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.clearGeneratedRows=function(){var t=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach((function(e){t.defaultValuesInRows[e.rowName]=e.getNamesWithDefaultValues()})),e.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,t){var n=e[t];if(!n)return n;var r=this.defaultValuesInRows[t];return Array.isArray(r)&&0!==r.length?(r.forEach((function(e){delete n[e]})),n):n},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++){var o=t[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.getRowValueForCreation(n,o.value)))}return e},t.prototype.createMatrixRow=function(e,t){return new c(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new p("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new p(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownCell",(function(){return C})),n.d(t,"MatrixDropdownTotalCell",(function(){return w})),n.d(t,"MatrixDropdownRowModelBase",(function(){return E})),n.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return S}));var r,o=n("./src/jsonobject.ts"),i=n("./src/martixBase.ts"),s=n("./src/helpers.ts"),a=n("./src/base.ts"),l=n("./src/survey-element.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/itemvalue.ts"),p=n("./src/questionfactory.ts"),d=n("./src/functionsfactory.ts"),h=n("./src/settings.ts"),f=n("./src/error.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=n("./src/question_matrixdropdowncolumn.ts"),y=n("./src/question_matrixdropdownrendered.ts"),v=n("./src/utils/utils.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(t)}return e.prototype.updateCellQuestionTitleDueToAccessebility=function(e){var t=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!e||!e.getSurvey())return t.questionValue.title;var r=e.getAccessbilityText();return r?t.column.colOwner.getCellAriaLabel(r,t.questionValue.title):t.questionValue.title}},e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=this,i=n.createQuestion(this.row,this.column);return i.readOnlyCallback=function(){return!r.row.isRowEnabled()},i.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(i[n]=e[n])})),i},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.getQuestionWrapperClassName=function(e){return e},e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),w=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return b(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.Serializer.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(t){var n=e.prototype.getQuestionWrapperClassName.call(this,t);if(!n)return n;this.question.expression&&"''"!=this.question.expression&&(n+=" "+t+"--expression");var r=this.column.totalAlignment;return"auto"===r&&"dropdown"===this.column.cellType&&(r="left"),n+" "+t+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(C),x=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return b(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==E.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==E.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),E=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new x(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),e.prototype.isRowEnabled=function(){return!0},e.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+a.Base.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){!e&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName(),i=this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,r):t[r];s.Helpers.isValueEmpty(i)||(e[n].value=i)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.data?this.data.getDataFilteredValues():{},t=this.validationValues;if(t)for(var n in t)e[n]=t[n];return e.row=this.getAllValues(),this.applyRowVariablesToValues(e,this.rowIndex),e},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.applyRowVariablesToValues=function(t,n){t[e.IndexVariableName]=n,t[e.RowValueVariableName]=this.rowName},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value);var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=s.Helpers.createCopy(n);o[e.RowVariableName]=this;for(var i=r>0?this.data.getRowValue(this.rowIndex-1):this.value,a=0;a<this.cells.length;a++)a>0&&Object(v.mergeValues)(this.value,i),t[e.RowVariableName]=i,this.cells[a].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()},e.prototype.getNamesWithDefaultValues=function(){var e=[];return this.questions.forEach((function(t){t.isValueDefault&&e.push(t.getValueName())})),e},e.prototype.clearValue=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].clearValue(e)},e.prototype.onAnyValueChanged=function(e,t){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){this.updateQuestionsValue(t,n,r);var o=this.value,i=r?t+a.Base.commentSuffix:t,s=n,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,r?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==n&&!l||r&&!n&&!!l;this.data.onRowChanged(this,i,o,c),i&&this.runTriggers(P.RowVariableName+"."+i,o),this.onAnyValueChanged(e.RowVariableName,"")}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.runTriggers=function(e,t){e&&this.questions.forEach((function(n){return n.runTriggers(e,t)}))},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrix.totalsSuffix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(){for(var e=this.questions,t=0;t<e.length;t++){var n=e[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return this.validationValues=void 0,r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n],o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=r.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new C(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return b(t,e),t.prototype.createCell=function(e){return new w(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(E),S=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],(function(){n.updateColumnsAndRows()})),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.resetRenderedTable()})),n}return b(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrix.defaultCellType},set:function(e){h.settings.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData="vertical"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(t){var n=t.parent?this.detailErrorLocation:this.cellErrorLocation;return"default"!==n?n:e.prototype.getChildErrorLocation.call(this,t)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=this.getColumnByName(r);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)e(n.cells[r].question)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,o=0;do{r=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.totalValue)&&o<3)},t.prototype.runTriggers=function(t,n){e.prototype.runTriggers.call(this,t,n),this.runFuncForCellQuestions((function(e){e.runTriggers(t,n)}))},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];(n.visibleIf||n.isFilteredMultipleColumns)&&(e=this.isColumnVisibilityChanged(n)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];if(n.requiredIf){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.isColumnVisible,n=e.isFilteredMultipleColumns,r=n?e.getVisibleChoicesInCell:[],o=new Array,i=!1,a=this.generatedVisibleRows,l=0;l<a.length;l++){var u=a[l].cells[e.index],c=null==u?void 0:u.question;if(c&&c.isVisible){if(i=!0,!n)break;this.updateNewVisibleChoices(c,o)}}return e.hasVisibleCell=i,!(!n||(e.setVisibleChoicesInCell(o),s.Helpers.isArraysEqual(r,o,!0,!1,!1)))||t!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,t){var n=e.visibleChoices;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r];t.indexOf(o.value)<0&&t.push(o.value)}},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new g.MatrixDropdownColumn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){return!!this.generatedVisibleRows&&this.isValueInColumnDuplicated(t.name,!0,e)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map((function(e){var r={name:e.dataName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r})),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,t){var n=!!t&&this.columns.indexOf(t)>-1,r=!0===t||n,o=this.getConditionObjectsRowIndeces();r&&o.push(-1);for(var i=0;i<o.length;i++){var s=o[i],a=s>-1?this.getConditionObjectRowName(s):"row";if(a)for(var l=s>-1?this.getConditionObjectRowText(s):"row",u=s>-1||!0===t,c=u&&-1===s?".":"",p=(u?this.getValueName():"")+c+a+".",d=(u?this.processedTitle:"")+c+l+".",h=0;h<this.columns.length;h++){var f=this.columns[h];if(-1!==s||t!==f){var m={name:p+f.name,text:d+f.fullTitle,question:this};-1===s&&!0===t?m.context=this:n&&p.startsWith("row.")&&(m.context=t),e.push(m)}}}},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=[];this.collectNestedQuestions(t,!0),t.forEach((function(e){return e.onHidingContent()}))},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,t){this.collectNestedQuestonsInRows(this.visibleRows,e,t)},t.prototype.collectNestedQuestonsInRows=function(e,t,n){Array.isArray(e)&&e.forEach((function(e){e.questions.forEach((function(e){return e.collectNestedQuestions(t,n)}))}))},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=r.isRequired;var o=!s.Helpers.isValueEmpty(t[r.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)o=r[i].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n],!0)||t;return t},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t].name);return e},t.prototype.isValueInColumnDuplicated=function(e,t,n){var r=this.getDuplicatedRows(e);return t&&this.showDuplicatedErrorsInRows(r,e),this.removeDuplicatedErrorsInRows(r,e),n?r.indexOf(n)>-1:r.length>0},t.prototype.getDuplicatedRows=function(e){for(var t={},n=[],r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=void 0,s=r[o].getQuestionByName(e);if(s)i=s.value;else{var a=this.getRowValue(o);i=a?a[e]:void 0}this.isValueEmpty(i)||(this.isUniqueCaseSensitive||"string"!=typeof i||(i=i.toLocaleLowerCase()),t[i]||(t[i]=[]),t[i].push(r[o]))}for(var l in t)t[l].length>1&&t[l].forEach((function(e){return n.push(e)}));return n},t.prototype.showDuplicatedErrorsInRows=function(e,t){var n=this;e.forEach((function(e){var r=e.getQuestionByName(t);!r&&n.detailPanel.getQuestionByName(t)&&(e.showDetailPanel(),e.detailPanel&&(r=e.detailPanel.getQuestionByName(t))),r&&(e.showDetailPanel(),n.addDuplicationError(r))}))},t.prototype.removeDuplicatedErrorsInRows=function(e,t){var n=this;this.generatedVisibleRows.forEach((function(r){if(e.indexOf(r)<0){var o=r.getQuestionByName(t);o&&n.removeDuplicationError(o)}}))},t.prototype.getDuplicationError=function(e){for(var t=e.errors,n=0;n<t.length;n++)if("keyduplicationerror"===t[n].getErrorType())return t[n];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e){e.removeError(this.getDuplicationError(e))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e,t){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t);var o=this.visibleTotalRow;o&&o.onAnyValueChanged(e,t),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var i=t?this.getRowObj(e):null;if(i){var s=null;n&&!r&&(s=n[t]),this.isRowChanging=!0,o.Serializer.setObjPropertyValue(i,t,s),this.isRowChanging=!1,this.onCellValueChanged(e,t,i)}else{var a=this.createNewValue(!0),l=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(a,l.value))return;this.isRowChanging=!0,this.setNewValue(l.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,l.rowValue)}this.getUniqueColumnsNames().indexOf(t)>-1&&this.isValueInColumnDuplicated(t,!!i)},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(n)for(var a in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[a])||(i[a]=n[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new m.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new m.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){var t=this;if(this.isDesignMode)return this.detailPanel;var n=this.createNewDetailPanel();n.readOnly=this.isReadOnly||!e.isRowEnabled(),n.setSurveyImpl(e);var r=this.detailPanel.toJSON();return(new o.JsonObject).toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,n),n.questions.forEach((function(e){return e.setParentQuestion(t)})),n.onSurveyLoad(),n},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new m.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"columnsVisibleIf",visible:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(e){return!!e&&"none"!=e.detailPanelMode}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new S("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"matrixDropdownColumnTypes",(function(){return c})),n.d(t,"MatrixDropdownColumn",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/question_expression.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,n,r){!function(e,t,n,r){u(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}(e,0,n,r)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.colOwnerValue=null,r.indexValue=-1,r._hasVisibleCell=!0,r.previousChoicesId=void 0,r.createLocalizableString("totalFormat",r),r.createLocalizableString("cellHint",r),r.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){r.doShowInMultipleColumnsChanged()})),r.registerPropertyChangedHandlers(["visible"],(function(){r.doColumnVisibilityChanged()})),r.updateTemplateQuestion(),r.name=t,n?r.title=n:r.templateQuestion.locTitle.strChanged(),r}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return!!this.isDesignMode||this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var t=new Array,n=0;n<e.length;n++){var r=e[n];this._visiblechoices.indexOf(r.value)>-1&&t.push(r)}return t},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=c[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,n=this.getDefaultCellQuestionType(e),r=this.templateQuestion?this.templateQuestion.getType():"";n!==r&&(this.templateQuestion&&this.removeProperties(r),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(e,n){t.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,n){t.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);if(t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,this.jsonObj&&Object.keys(this.jsonObj).forEach((function(e){r[e]=n.jsonObj[e]})),"random"===r.choicesOrder){r.choicesOrder="none";var i=this.templateQuestion.visibleChoices;Array.isArray(i)&&(r.choices=i)}(new o.JsonObject).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r){if(e.prototype.propertyValueChanged.call(this,t,n,r),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson){if(this.isShowInMultipleColumns){if("choicesOrder"===t)return;["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r)}},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,i){o.Serializer.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null!=this.colOwner&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){null==this.colOwner||this.isDesignMode||this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){var t=this.getProperties(e);o.Serializer.addDynamicPropertiesIntoObj(this,this.templateQuestion,t)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return m})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return g})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return y})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return v}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/itemvalue.ts"),a=n("./src/actions/action.ts"),l=n("./src/actions/adaptive-container.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=n("./src/settings.ts"),d=n("./src/utils/animation.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResponsiveTitle",{get:function(){var e;return this.hasQuestion&&(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveTitleCss",{get:function(){return(new u.CssClassBuilder).append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var e=this.cell.column.cellHint;return e?""===e.trim()?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.prototype.focusIn=function(){this.question&&this.question.focusIn()},e.counter=1,e}(),g=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.hasEndActions=!1,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return h(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,t;return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,null===(e=this.row)||void 0===e?void 0:e.hasPanel).append(this.cssClasses.expandedRow,(null===(t=this.row)||void 0===t?void 0:t.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.counter=1,f([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),f([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),f([Object(o.property)({defaultValue:!0})],t.prototype,"visible",void 0),t}(i.Base),y=function(e){function t(t){var n=e.call(this,t)||this;return n.isErrorsRow=!0,n}return h(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some((function(e){return e.question&&e.question.hasVisibleErrors}))};this.cells.forEach((function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)})),t()},t}(g),v=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n._renderedRows=[],n.renderedRowsAnimation=new d.AnimationGroup(n.getRenderedRowsAnimationOptions(),(function(e){n._renderedRows=e}),(function(){return n._renderedRows})),n.hasActionCellInRowsValues={},n.build(),n}return h(t,e),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,t=function(e){e.querySelectorAll(":scope > td > *").forEach((function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}))};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowFadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(){return{cssClass:e.cssClasses.rowFadeIn,onBeforeRunAnimation:t}}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){(this.rows[r].isErrorsRow||this.rows[r].isDetailRow)&&t++;break}t++,this.rows[r].isErrorsRow||this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isErrorsRow||this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n;this.showCellErrorsBottom&&r++;var o=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,i)}else this.rows.splice(o,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new g(e,t)},t.prototype.createErrorRenderedRow=function(e){return new y(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.isColumnVisible&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(o),o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&(o=this.createTextCell(this.matrix.getFooterText()),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=(new u.CssClassBuilder).append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var t=this.matrix.visibleTotalRow.cells,n=0;n<t.length;n++){var r=t[n];if(r.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(r.column))this.createMutlipleColumnsFooter(this.footerRow,r);else{var o=this.createEditCell(r);r.column&&this.setHeaderCellWidth(r.column,o),o.className=(new u.CssClassBuilder).append(o.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(o)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n,r){void 0===r&&(r=-1);var o=this.createHorizontalRow(t,n),i=this.createErrorRow(o);if(o.row=t,r<0&&(r=e.length),this.matrix.isMobile){for(var s=[],a=0;a<o.cells.length;a++)this.showCellErrorsTop&&!i.cells[a].isEmpty&&s.push(i.cells[a]),s.push(o.cells[a]),this.showCellErrorsBottom&&!i.cells[a].isEmpty&&s.push(i.cells[a]);o.cells=s,e.splice(r,0,o)}else e.splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,0],this.showCellErrorsTop?[i,o]:[o,i])),r++;t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new m,n=this.matrix.lockedRowCount;return t.isDragHandlerCell=n<1||e>=n,t.isEmpty=!t.isDragHandlerCell,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(e){var t=this;void 0===e&&(e=null);var n=(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,null==e?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,null==e?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var r=e.item.value.actions;this.cssClasses.actionsCellPrefix&&r.forEach((function(e){n.append(t.cssClasses.actionsCellPrefix+"--"+e.id)}))}return n.toString()},t.prototype.getRowActionsCell=function(e,t,n){void 0===n&&(n=!1);var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var o=new m,i=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(i.cssClasses=this.matrix.survey.getCss().actionBar),i.setItems(r);var a=new s.ItemValue(i);return o.item=a,o.isActionsCell=!0,o.isDragHandlerCell=!1,o.isDetailRowCell=n,o.className=this.getActionsCellClassName(o),o.row=this.matrix.visibleRows[e],o}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this,r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",iconSize:"auto",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?t.unshift(new a.Action({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(t){t.title=e.isDetailPanelShowing?n.matrix.getLocalizationString("showDetails"):n.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),n=0;n<e.cells.length;n++){var r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0)):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0))}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e,t){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,n.cells.push(s),this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(i.column))this.createMutlipleEditCells(n,i);else{i.column.isShowInMultipleColumns&&i.question.visibleChoices.map((function(e){return e.hideCaption=!1}));var s=this.createEditCell(i);n.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n,t.isDetailRow);if(o)t.cells.push(o),t.hasEndActions=!0;else{var i=new m;i.isEmpty=!0,i.isDetailRowCell=t.isDetailRow,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new m;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new m).isEmpty=!0);var s=new m;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&(this.matrix.isMobile?this.addRowActionsCell(e,r,"end"):r.cells.push(i)),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isColumnVisible)if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{var o=this.createVerticalRow(r,n),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++){var i=this.createVerticalRow(t,n,r[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=n,p=r>=0?r:l,d=a[l].cells[t],h=n?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new m;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var n=new m;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(t=e.getVisibleMultipleChoices())&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e,t){void 0===t&&(t=null);var n=e?this.createTextCell(e.locTitle):this.createEmptyCell();return n.column=e,this.setHeaderCell(e,n),t||(t=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(n,t),n},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var t=new m;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(e){void 0===e&&(e=!1);var t=this.createTextCell(null);return t.isEmpty=!0,t.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),t},f([Object(o.propertyArray)({onPush:function(e,t,n){n.updateRenderedRows()},onRemove:function(e,t,n){n.updateRenderedRows()}})],t.prototype,"rows",void 0),f([Object(o.propertyArray)()],t.prototype,"_renderedRows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDynamicRowModel",(function(){return m})),n.d(t,"QuestionMatrixDynamicModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_matrixdropdownbase.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/dragdrop/matrix-rows.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/question_matrixdropdownrendered.ts"),h=n("./src/utils/dragOrClickHelper.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],(function(){n.clearRowsAndResetRenderedTable()})),n.dragOrClickHelper=new h.DragOrClickHelper(n.startDragMatrixRow),n}return f(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){t&&this.isRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.visibleRows},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrix.maxRowCount&&(e=l.settings.matrix.maxRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var t=e.rowIndex-1;return!(this.lockedRowCount>0&&t<this.lockedRowCount)&&this.survey.matrixAllowRemoveRow(this,t,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n=this.canAddRow,r={question:this,canAddRow:n,allow:n};if(this.survey&&this.survey.matrixBeforeRowAdded(r),(n!==r.allow?r.allow:n!==r.canAddRow?r.canAddRow:n)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var r=this.visibleRows[this.rowCount-1];this.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){var n=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var r=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t?Object(u.confirmActionAsync)(this.confirmDeleteText,(function(){n.removeRowAsync(e,r)}),void 0,this.getLocale(),this.survey.rootElement):this.removeRowAsync(e,r)}},t.prototype.removeRowAsync=function(e,t){t&&this.survey&&!this.survey.matrixRowRemoving(this,e,t)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(l.settings.matrix.maxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var t=e.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&t.indexOf(n)<0&&t.push(n),t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new m(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1||n.length===e.length)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[r]?t:this.createMatrixRow(e[r]),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),this.setRowCountValueFromData=!0,e.prototype.updateValueFromSurvey.call(this,t,n),this.setRowCountValueFromData=!1},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new g("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultipleTextEditorModel",(function(){return m})),n.d(t,"MultipleTextItemModel",(function(){return g})),n.d(t,"QuestionMultipleTextModel",(function(){return y})),n.d(t,"MutlipleTextRow",(function(){return v})),n.d(t,"MutlipleTextErrorRow",(function(){return b})),n.d(t,"MultipleTextCell",(function(){return C})),n.d(t,"MultipleTextErrorCell",(function(){return w}));var r,o=n("./src/base.ts"),i=n("./src/survey-element.ts"),s=n("./src/question.ts"),a=n("./src/question_text.ts"),l=n("./src/jsonobject.ts"),u=n("./src/questionfactory.ts"),c=n("./src/helpers.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(t),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new m(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),y=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)})),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],(function(){n.calcVisibleRows()})),n.registerPropertyChangedHandlers(["itemSize"],(function(){n.updateItemsSize()})),n}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,n){return t.editor.id=e+"_"+n})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),e.prototype.getElementsInDesign.call(this,t).concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.items.forEach((function(n){return n.editor.collectNestedQuestions(e,t)}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=this.getItemByName(n);if(!r)return null;var o=(new l.JsonObject).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.itemErrorLocation?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return"top"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return"bottom"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return c.Helpers.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e,t,n=this.colCount,r=this.items,o=0,i=[],s=0;s<r.length;s++)0==o&&(e=this.onRowCreated(new v),t=this.onRowCreated(new b),this.showItemErrorOnTop?(i.push(t),i.push(e)):(i.push(e),i.push(t))),e.cells.push(new C(r[s],this)),t.cells.push(new w(r[s],this)),(++o>=n||s==r.length-1)&&(o=0,t.onAfterCreated());this.rows=i},t.prototype.getRows=function(){return c.Helpers.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new g(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.items.forEach((function(e){return e.editor.runCondition(t,n)}))},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),n[s]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},f([Object(l.propertyArray)()],t.prototype,"rows",void 0),t}(s.Question),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isVisible=!0,t.cells=[],t}return h(t,e),f([Object(l.property)()],t.prototype,"isVisible",void 0),f([Object(l.propertyArray)()],t.prototype,"cells",void 0),t}(o.Base),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.isVisible=e.cells.some((function(e){var t,n;return(null===(t=e.item)||void 0===t?void 0:t.editor)&&(null===(n=e.item)||void 0===n?void 0:n.editor.hasVisibleErrors)}))};this.cells.forEach((function(e){var n,r;(null===(n=e.item)||void 0===n?void 0:n.editor)&&(null===(r=e.item)||void 0===r||r.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t))})),t()},t}(v),C=function(){function e(e,t){this.item=e,this.question=t,this.isErrorsCell=!1}return e.prototype.getClassName=function(){return(new p.CssClassBuilder).append(this.question.cssClasses.cell).toString()},Object.defineProperty(e.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),e}(),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isErrorsCell=!0,t}return h(t,e),t.prototype.getClassName=function(){return(new p.CssClassBuilder).append(e.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(C);l.Serializer.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"maskType:masktype",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"],visible:!1},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Object(a.isMinMaxType)(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Object(a.isMinMaxType)(e)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new g("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],(function(){return new y("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new y(e);return y.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionPanelDynamicItem",(function(){return x})),n.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return E})),n.d(t,"QuestionPanelDynamicModel",(function(){return P}));var r,o=n("./src/helpers.ts"),i=n("./src/survey-element.ts"),s=n("./src/localizablestring.ts"),a=n("./src/textPreProcessor.ts"),l=n("./src/question.ts"),u=n("./src/jsonobject.ts"),c=n("./src/questionfactory.ts"),p=n("./src/error.ts"),d=n("./src/settings.ts"),h=n("./src/utils/utils.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/actions/action.ts"),g=n("./src/base.ts"),y=n("./src/actions/adaptive-container.ts"),v=n("./src/utils/animation.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},w=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return b(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==x.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==x.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(x.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,x.ItemVariableName),i=x.ItemVariableName+e.name.substring(x.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),x=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new w(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(t,n){var r=this.data.getPanelItemData(this),i=r?r[t]:void 0;if(!o.Helpers.isTwoValueEquals(n,i,!1,!0,!1)){this.data.setPanelItemData(this,t,o.Helpers.getUnbindValue(n));for(var s=this.panel.questions,a=e.ItemVariableName+"."+t,l=0;l<s.length;l++){var u=s[l];u.getValueName()!==t&&u.checkBindings(t,n),u.runTriggers(a,n)}}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),E=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),P=function(e){function t(t){var n=e.call(this,t)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",(function(e){n.onPanelAdded(e)}),(function(e){n.onPanelRemoved(e)})),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],(function(){n.setPanelsState()})),n.registerPropertyChangedHandlers(["isMobile","newPanelPosition","showRangeInProgress","renderMode"],(function(){n.updateFooterActions()})),n.registerPropertyChangedHandlers(["allowAddPanel"],(function(){n.updateNoEntriesTextDefaultLoc()})),n}return b(t,e),Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanelsCore.length;t++){var n=this.visiblePanelsCore[t].getFirstQuestionToFocus(e);if(n)return n}return null},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panelsCore.length&&u.Serializer.findProperty(e.getType(),t.name))for(var n=this.panelsCore,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panelsCore.length;t++)e.push(this.panelsCore[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panelsCore,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanelsCore.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanelsCore;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanelsCore,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!this.isRenderModeList&&!this.useTemplatePanel){var t=this.getPropertyValue("currentPanel"),n=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&n<0||e===t)&&(t&&t.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),n>-1&&this.survey)){var r={panel:e,visiblePanelIndex:n};this.survey.dynamicPanelCurrentIndexChanged(this,r)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){0==this.renderedPanels.length||0==e.length?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,t=function(){if(e.isRenderModeList)return"";var t=new f.CssClassBuilder,n=!1,r=e.renderedPanels.filter((function(t){return t!==e.currentPanel}))[0],o=e.visiblePanels.indexOf(r);return o<0&&(n=!0,o=e.removedPanelIndex),t.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",n).append("sv-pd-animation-left",o<=e.currentIndex).append("sv-pd-animation-right",o>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(t){var n,r;if(t&&e.cssContent){var o=Object(h.classesToSelector)(e.cssContent);return null===(r=null===(n=e.getWrapperElement())||void 0===n?void 0:n.querySelector(":scope "+o+" #"+t.id))||void 0===r?void 0:r.parentElement}},getEnterOptions:function(){return{onBeforeRunAnimation:function(t){var n;if(e.focusNewPanelCallback){var r=e.isRenderModeList?t:t.parentElement;i.SurveyElement.ScrollElementToViewCore(r,!1,!1,{behavior:"smooth"})}e.isRenderModeList?t.style.setProperty("--animation-height",t.offsetHeight+"px"):null===(n=t.parentElement)||void 0===n||n.style.setProperty("--animation-height-to",t.offsetHeight+"px")},cssClass:(new f.CssClassBuilder).append(e.cssClasses.panelWrapperFadeIn).append(t()).toString()}},getLeaveOptions:function(){return{onBeforeRunAnimation:function(t){var n;e.isRenderModeList?t.style.setProperty("--animation-height",t.offsetHeight+"px"):null===(n=t.parentElement)||void 0===n||n.style.setProperty("--animation-height-from",t.offsetHeight+"px")},cssClass:(new f.CssClassBuilder).append(e.cssClasses.panelWrapperFadeOut).append(t()).toString()}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach((function(e){e.blockAnimations()}))},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach((function(e){e.releaseAnimations()}))},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?v.AnimationGroup:v.AnimationTab)(this.getPanelsAnimationOptions(),(function(t,n){e._renderedPanels=t,n||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())}),(function(){return e._renderedPanels}))},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach((function(e){return e.onHidingContent()}))},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),(this.panelsCore||[]).forEach((function(e){return e.getQuestions(!0).forEach((function(e){e.setIsMobile(t)}))}))},t.prototype.themeChanged=function(t){e.prototype.themeChanged.call(this,t),(this.panelsCore||[]).forEach((function(e){return e.getQuestions(!0).forEach((function(e){e.themeChanged(t)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0))if(this.canBuildPanels&&!this.wasNotRenderedInSurvey){if(e!=this.panelsCore.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panelsCore.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}else this.setPropertyValue("panelCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new E(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsCore[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panelsCore[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panel.maxPanelCount&&(e=d.settings.panel.maxPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return"onSurvey"===this.showQuestionNumbers},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback),this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"===this.showQuestionNumbers,r=n?t:0,o=0;o<this.visiblePanelsCore.length;o++){var i=this.setPanelVisibleIndex(this.visiblePanelsCore[o],r,"off"!=this.showQuestionNumbers);n&&(r+=i)}return e.prototype.setVisibleIndex.call(this,n?-1:t),n?r-t:1},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&"next"!==this.newPanelPosition)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new x(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panelsCore.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var t=this.currentIndex;return void 0===e&&(e=t<0?this.panelCount:t+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(t<0?this.panelCount-1:t,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,t){this.panelCount++;var n=this.value;if(Array.isArray(n)&&n.length===this.panelCount){var r=!1,o=this.panelCount-1;if(t<o){r=!0;var i=n[o];n.splice(o,1),n.splice(t,0,i)}if(this.isValueEmpty(this.defaultPanelValue)||(r=!0,this.copyValue(n[t],this.defaultPanelValue)),this.defaultValueFromLastPanel&&n.length>1){var s=e>-1&&e<=o?e:o;r=!0,this.copyValue(n[t],n[s])}r&&(this.value=n)}},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){var t=this;this.canRemovePanel&&(this.isRequireConfirmOnDelete(e)?Object(h.confirmActionAsync)(this.confirmDeleteText,(function(){t.removePanel(e)}),void 0,this.getLocale(),this.survey.rootElement):this.removePanel(e))},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return!1;var n=this.visiblePanelsCore[t].getValue();return!this.isValueEmpty(n)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(n,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){this.removedPanelIndex=t;var n=this.visiblePanelsCore[t],r=this.panelsCore.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panelsCore.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length||(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r,n),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panelsCore.length;t++)if(this.panelsCore[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panelsCore,n=0;n<t.length;n++)t[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t<0||t>=this.panelsCore.length?null:this.panelsCore[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panelsCore[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrix.totalsSuffix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),r=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(r,t);for(var s=0;s<d.settings.panel.maxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<r.length;i++)r[i].context?e.push(r[i]):e.push({name:l+r[i].name,text:u+r[i].text,question:r[i].question})}if(n)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<r.length;i++)if(r[i].question!=t){var c={name:l+x.ItemVariableName+"."+r[i].name,text:u+x.ItemVariableName+"."+r[i].text,question:r[i].question};c.context=this,e.push(c)}},t.prototype.collectNestedQuestionsCore=function(e,t){var n=t?this.visiblePanelsCore:this.panelsCore;Array.isArray(n)&&n.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.buildPanelsFirstTime(),e.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(void 0===e&&(e=!1),!this.hasPanelBuildFirstTime&&(e||!this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].onFirstRendering()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(this.panelsCore,t,n)},t.prototype.runTriggers=function(t,n){e.prototype.runTriggers.call(this,t,n),this.visiblePanelsCore.forEach((function(e){e.questions.forEach((function(e){return e.runTriggers(t,n)}))}))},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t,n){var r={};t&&t instanceof Object&&(r=JSON.parse(JSON.stringify(t))),this.parentQuestion&&this.parent&&(r[x.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var i=0;i<e.length;i++){var s=e[i],a=this.getPanelItemData(s.data),l=o.Helpers.createCopy(r),u=x.ItemVariableName;l[u]=a,l[x.IndexVariableName.toLowerCase()]=i;var c=o.Helpers.createCopy(n);c[u]=s,s.runCondition(l,c)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(t,n),this.panelsCore[r].onAnyValueChanged(x.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panelsCore.length;o++)n=this.isValueDuplicated(this.panelsCore[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;return this.changingValueQuestion?(r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors()):r=this.hasErrorInPanels(t,n),e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var n="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(n),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panelsCore.length;t++){var n=this.panelsCore[t],r=n.questions;this.isSetPanelItemData={};for(var o=0;o<r.length;o++){var i=r[o];i.visible&&!n.isVisible||(i.clearValueIfInvisible(e),this.isSetPanelItemData[i.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panelsCore.length;t++)for(var n=this.panelsCore[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panelsCore.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panelsCore[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanelsCore,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(i=0;i<r.length;i++){var s=r[i].hasErrors(e,!!t&&t.focusOnFirstError,t);s=this.isValueDuplicated(r[i],o,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new m.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new g.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new u.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new x(this,t),this.isDesignMode||this.isReadOnly||this.isValueEmpty(t.getValue())||this.runPanelsCondition([t],this.getDataFilteredValues(),this.getDataFilteredProperties()),t.onFirstRendering();for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this,t=this.createNewPanelObject();return t.isInteractiveDesignElement=!1,t.setParentQuestion(this),t.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},t},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(t){return"default"!==this.templateErrorLocation?this.templateErrorLocation:e.prototype.getChildErrorLocation.call(this,t)},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!o.Helpers.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+d.settings.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map((function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r})),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(e){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new y.AdaptiveActionContainer,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e,t){var n=this;if(this.isRenderModeTab){var r=new s.LocalizableString(e,!0);r.onGetTextCallback=function(r){if(r||(r=n.locTabTitlePlaceholder.renderedHtml),!n.survey)return r;var o={title:r,panel:e,visiblePanelIndex:t};return n.survey.dynamicPanelGetTabTitle(n,o),o.title},r.sharedData=this.locTemplateTabTitle;var o=this.getPanelIndexById(e.id)===this.currentIndex,i=new m.Action({id:e.id,pressed:o,locTitle:r,disableHide:o,action:function(){n.currentIndex=n.getPanelIndexById(i.id)}});return i}},t.prototype.getAdditionalTitleToolbarCss=function(e){var t=null!=e?e:this.cssClasses;return(new f.CssClassBuilder).append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){var n=t.id===e.id;t.pressed=n,t.disableHide=n,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var t=[],n=this.visiblePanelsCore,r=function(r){o.visiblePanelsCore.forEach((function(o){return t.push(e.createTabByPanel(n[r],r))}))},o=this,i=0;i<n.length;i++)r(i);this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e,t);this.additionalTitleToolbar.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return(!this.isReadOnly||1!=this.visiblePanelCount)&&this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),n},t.maxCheckCount=3,C([Object(u.propertyArray)({})],t.prototype,"_renderedPanels",void 0),C([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panel.maxPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(e){return"list"===e.renderMode}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(e){return e.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(e){return e.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(e){return e.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(e){return"list"!==e.renderMode}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(e){return"list"!==e.renderMode}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visibleIf:function(e){return"list"!==e.renderMode}},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(e){return e.allowRemovePanel}}],(function(){return new P("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new P(e)}))},"./src/question_radiogroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRadiogroupModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/actions/action.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&!this.isOtherSelected},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(n)}return t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRankingModel",(function(){return b}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=n("./src/dragdrop/ranking-select-to-rank.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/questionfactory.ts"),u=n("./src/question_checkbox.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/animation.ts"),m=n("./src/utils/dragOrClickHelper.ts"),g=n("./src/utils/utils.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},b=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),!n.carryForwardStartUnranked||n.isValueSetByUser||n.selectToRankEnabled||(n.value=[]),1===n.visibleChoices.length&&!n.selectToRankEnabled)return n.value=[],n.value.push(n.visibleChoices[0].value),void n.updateRankingChoices();n.isEmpty()||n.selectToRankEnabled||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new f.AnimationGroup(n.getChoicesAnimationOptions(!0),(function(e){n._renderedRankingChoices=e}),(function(){return n.renderedRankingChoices})),n._unRankingChoicesAnimation=new f.AnimationGroup(n.getChoicesAnimationOptions(!1),(function(e){n._renderedUnRankingChoices=e}),(function(){return n.renderedUnRankingChoices})),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.allowStartDrag&&n.canStartDragDueMaxSelectedChoices(o)&&n.canStartDragDueItemEnabled(t)&&(n.draggedChoiceValue=t.value,n.draggedTargetNode=r,n.dragOrClickHelper.onPointerDown(e))},n.startDrag=function(e){var t=s.ItemValue.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(e,t,n,n.draggedTargetNode)},n.handlePointerUp=function(e,t,r){n.selectToRankEnabled&&n.allowStartDrag&&n.handleKeydownSelectToRank(e,t," ",!1)},n.handleKeydown=function(e,t){if(!n.isReadOnlyAttr&&!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);if(n.selectToRankEnabled)return void n.handleKeydownSelectToRank(e,t);if("ArrowUp"===r&&o||"ArrowDown"===r&&o!==n.rankingChoices.length-1){var i="ArrowUp"==r?o-1:o+1;n.dragDropRankingChoices.reorderRankedItem(n,o,i),n.setValueAfterKeydown(i,"",!0,e)}}},n.focusItem=function(e,t){if(n.domNode)if(n.selectToRankEnabled&&t){var r="[data-ranking='"+t+"']";n.domNode.querySelectorAll(r+" ."+n.cssClasses.item)[e].focus()}else n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.isValueSetByUser=!1,n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",(function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()})),n.dragOrClickHelper=new m.DragOrClickHelper(n.startDrag),n}return y(t,e),t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!this.isDesignMode&&!e.disabled)return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new c.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===h.settings.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.renderedSelectToRankAreasLayout).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(t){return!this.selectToRankEnabled||e.prototype.isItemSelectedCore.call(this,t)},t.prototype.getItemClassCore=function(t,n){return(new c.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).toString()},t.prototype.getContainerClasses=function(e){var t=!1,n="to"===e,r="from"===e;return n?t=0===this.renderedRankingChoices.length:r&&(t=0===this.renderedUnRankingChoices.length),(new c.CssClassBuilder).append(this.cssClasses.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return d.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this),this.releaseAnimations()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)s.ItemValue.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var t=this;return{getKey:function(e){return e.value},getRerenderEvent:function(){return t.onElementRerendered},isAnimationEnabled:function(){return t.animationAllowed&&!t.isDesignMode&&t.isVisible&&!!t.domNode},getReorderOptions:function(e,n){var r="";return e!==t.currentDropTarget&&(r=n?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:r}},getLeaveOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing"}},getEnterOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding"}},getAnimatedElement:function(n){var r,o=t.cssClasses,i="";t.selectToRankEnabled&&(!e&&o.containerFromMode?i=Object(g.classesToSelector)(o.containerFromMode):e&&o.containerToMode&&(i=Object(g.classesToSelector)(o.containerToMode)));var s=e?t.renderedRankingChoices.indexOf(n):t.renderedUnRankingChoices.indexOf(n);return null===(r=t.domNode)||void 0===r?void 0:r.querySelector(i+" [data-sv-drop-target-ranking-item='"+s+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled)this.updateRankingChoicesSelectToRankMode(e);else{var n=[];e&&(this.rankingChoices=[]),this.isEmpty()?this.rankingChoices=this.visibleChoices:(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.rankingChoices=n)}},t.prototype.updateUnRankingChoices=function(e){var t=[];this.visibleChoices.forEach((function(e){t.push(e)})),e.forEach((function(e){t.forEach((function(n,r){n.value===e.value&&t.splice(r,1)}))})),this.unRankingChoices=t},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this,n=[];this.isEmpty()||this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.updateUnRankingChoices(n),this.rankingChoices=n},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new i.DragDropRankingSelectToRank(this.survey,null,this.longTap):new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==h.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){this.domNode=void 0,e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t,n,r){if(void 0===r&&(r=!0),!this.isDesignMode){var o=e.key;if(n&&(o=n)," "===o||"ArrowUp"===o||"ArrowDown"===o){var i=this.dragDropRankingChoices,s=this.rankingChoices,a=-1!==s.indexOf(t),l=(a?s:this.unRankingChoices).indexOf(t);if(!(l<0)){var u;if(" "===o&&!a){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(t))return;return u=this.value.length,i.selectToRank(this,l,u),void this.setValueAfterKeydown(u,"to-container",r,e)}if(a){if(" "===o)return i.unselectFromRank(this,l),u=this.unRankingChoices.indexOf(t),void this.setValueAfterKeydown(u,"from-container",r,e);var c="ArrowUp"===o?-1:"ArrowDown"===o?1:0;0!==c&&((u=l+c)<0||u>=s.length||(i.reorderRankedItem(this,l,u),this.setValueAfterKeydown(u,"to-container",r,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,t,n,r){var o=this;void 0===n&&(n=!0),this.setValue(),n&&setTimeout((function(){o.focusItem(e,t)}),1),r&&r.preventDefault()},t.prototype.getIconHoverCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return p.IsMobile},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-n-drop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-ranking-arrows"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-ranking-dash"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),v([Object(a.propertyArray)({onSet:function(e,t){return t.updateRenderedRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedRankingChoices()},onPush:function(e,t,n){return n.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),v([Object(a.propertyArray)({onSet:function(e,t){return t.updateRenderedUnRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedUnRankingChoices()},onPush:function(e,t,n){return n.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),v([Object(a.propertyArray)()],t.prototype,"_renderedRankingChoices",void 0),v([Object(a.propertyArray)()],t.prototype,"_renderedUnRankingChoices",void 0),v([Object(a.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),v([Object(a.property)({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),v([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),v([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(u.QuestionCheckboxModel);a.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],(function(){return new b("")}),"checkbox"),l.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new b(e);return t.choices=l.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RenderedRatingItem",(function(){return v})),n.d(t,"QuestionRatingModel",(function(){return C}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/settings.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/base.ts"),d=n("./src/utils/utils.ts"),h=n("./src/dropdownListModel.ts"),f=n("./src/utils/devices.ts"),m=n("./src/global_variables_utils.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return g(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),y([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),y([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),y([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),b=function(e){function t(t,n){var r=e.call(this,t)||this;return r.description=n,r}return g(t,e),t}(o.ItemValue),C=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.createItemValues("rateValues"),n.createRenderedRateItems(),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems(),n.updateRateCount()})),n.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerSychProperties(["rateValues"],(function(){n.autoGenerate=0==n.rateValues.length,n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){n.updateColors(n.survey.themeVariables)})),n.registerFunctionOnPropertiesValueChanged(["displayMode"],(function(){n.updateRenderAsBasedOnDisplayMode(!0)})),n.registerSychProperties(["autoGenerate"],(function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.createRenderedRateItems()})),n.createLocalizableString("minRateDescription",n,!0),n.createLocalizableString("maxRateDescription",n,!0),n.initPropertyDependencies(),n}return g(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter((function(e){return e.value==t.value}))[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){function n(t,n){var r=!!e&&e[t];if(!r){var o=getComputedStyle(m.DomDocumentHelper.getDocumentElement());r=o.getPropertyValue&&o.getPropertyValue(n)}if(!r)return null;var i=m.DomDocumentHelper.createElement("canvas");if(!i)return null;var s=i.getContext("2d");s.fillStyle=r;var a=s.fillStyle;if(a.startsWith("rgba"))return a.substring(5,a.length-1).split(",").map((function(e){return+e.trim()}));var l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return l?[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16),1]:null}"monochrome"!==this.colorMode&&m.DomDocumentHelper.isAvailable()&&(t.colorsCalculated||(t.badColor=n("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=n("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=n("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=n("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=n("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=n("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0))},t.prototype.getDisplayValueCore=function(t,n){return this.useRateValues?o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,n)||n:e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];t=this.useRateValues()?this.rateValues:this.createRateValues(),this.autoGenerate&&(this.rateMax=t[t.length-1].value),"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new v(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new v(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new v(n)),o}))},t.prototype.createRateValues=function(){for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<l.settings.ratingMaximumRateValueCount;){var r=void 0;t===this.rateMin&&(r=this.minRateDescription&&this.locMinRateDescription),t!==this.rateMax&&e.length!==l.settings.ratingMaximumRateValueCount||(r=this.maxRateDescription&&this.locMaxRateDescription);var o=new b(t,r);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),t=this.correctValue(t+n,n)}return e},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown||"dropdown"===this.renderAs},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(t){var n=e.prototype.getPlainDataCalculatedValue.call(this,t);if(void 0!==n||!this.useRateValues||this.isEmpty())return n;var r=o.ItemValue.getItemByValue(this.visibleRateValues,this.value);return r?r[t]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||"dropdown"===this.renderAs)&&(this.renderAs="default"):(e||"auto"!==this.displayMode)&&(this.renderAs="dropdown"===this.displayMode?"dropdown":"default")},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),"dropdown"===this.renderAs&&"auto"===this.displayMode?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"dropdown"==this.renderAs?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===parseFloat(e)?this.clearValue(!0):this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!f.IsTouch&&!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){f.IsTouch||this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",t="";return(this.hasMaxLabel||this.hasMinLabel)&&("top"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsTop),"bottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsBottom),"topBottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsDiagonal)),(new c.CssClassBuilder).append(this.cssClasses.root).append(e).append(t).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=n.indexOf(e)}));return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode||this.isPreviewStyle||this.isReadOnlyStyle)return{};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1),o="highlighted"==t&&"colored"===this.scaleColorMode&&this.getRenderedItemColor(n,!0);return o?{"--sd-rating-item-color":r,"--sd-rating-item-color-light":o}:{"--sd-rating-item-color":r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==n.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemReadOnly,h=this.cssClasses.itemPreview,f=this.cssClasses.itemHover,m=this.cssClasses.itemOnError,g=null,y=null,v=null,b=null,C=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarReadOnly,h=this.cssClasses.itemStarPreview,f=this.cssClasses.itemStarHover,m=this.cssClasses.itemStarOnError,g=this.cssClasses.itemStarHighlighted,y=this.cssClasses.itemStarUnhighlighted,C=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyReadOnly,h=this.cssClasses.itemSmileyPreview,f=this.cssClasses.itemSmileyHover,m=this.cssClasses.itemSmileyOnError,g=this.cssClasses.itemSmileyHighlighted,v=this.cssClasses.itemSmileyScaleColored,b=this.cssClasses.itemSmileyRateColored,C=this.cssClasses.itemSmileySmall);var w=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,r).append(p,this.isDisabledStyle).append(d,this.isReadOnlyStyle).append(h,this.isPreviewStyle).append(f,o).append(g,s).append(v,"colored"==this.scaleColorMode).append(b,"scale"==this.rateColorMode&&r).append(y,a).append(m,this.hasCssError()).append(C,this.itemSmallMode).append(this.cssClasses.itemFixedSize,w).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModel=new h.DropdownListModel(this))},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"dropdown"===this.renderAs&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(d.mergeValues)(n.list,r),Object(d.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables),this.createRenderedRateItems()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.colorsCalculated=!1,y([Object(s.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),y([Object(s.property)()],t.prototype,"autoGenerate",void 0),y([Object(s.property)()],t.prototype,"rateCount",void 0),y([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),y([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),y([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),y([Object(s.property)()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),y([Object(s.property)()],t.prototype,"displayMode",void 0),y([Object(s.property)()],t.prototype,"rateDescriptionLocation",void 0),y([Object(s.property)()],t.prototype,"rateType",void 0),y([Object(s.property)()],t.prototype,"scaleColorMode",void 0),y([Object(s.property)()],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(e){return"labels"==e.rateType}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(e){return e?(e.getOriginalObj&&(e=e.getOriginalObj()),e.getDefaultItemComponent()):"sv-rating-item"}}],(function(){return new C("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new C(e)}))},"./src/question_signaturepad.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSignaturePadModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./node_modules/signature_pad/dist/signature_pad.js"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/console-warnings.ts"),u=n("./src/question_file.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.valueIsUpdatingInternally=!1,n.updateValueHandler=function(){n.scaleCanvas(!1,!0),n.refreshCanvas()},n.onBlur=function(e){if(!n.storeDataAsText&&!n.element.contains(e.relatedTarget)){if(!n.valueWasChangedFromLastUpload)return;n.uploadFiles([Object(u.dataUrl2File)(n.signaturePad.toDataURL(n.getFormat()),n.name+"."+h(n.dataFormat),n.getFormat())]),n.valueWasChangedFromLastUpload=!1}},n}return c(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),n=this.getPropertyByName("penColor");e.penColor=this.penColor||t||n.defaultValue||"#1ab394";var r=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0,i=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=i||o||r.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return(new a.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.getFormat=function(){return"jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&(this.initSignaturePad(t),this.element=t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.canvas,r=n.offsetWidth/this.containerWidth;(this.scale!=r||t)&&(this.scale=r,n.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*r,this.signaturePad.maxWidth=this.penMaxWidth*r,n.getContext("2d").scale(1/r,1/r),e&&this.refreshCanvas())},t.prototype.fromDataUrl=function(e){this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},t.prototype.fromUrl=function(e){var t=this,n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){t.canvas.getContext("2d").drawImage(n,0,0);var e=t.canvas.toDataURL(t.getFormat());t.fromDataUrl(e)}},t.prototype.refreshCanvas=function(){this.canvas&&(this.value?this.storeDataAsText?this.fromDataUrl(this.value):this.fromUrl(this.value):(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear(),this.valueWasChangedFromLastUpload=!1))},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0];this.canvas=n,this.resizeCanvas();var r=new s.default(n,{backgroundColor:"#ffffff"});this.signaturePad=r,this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},this.updateColors(r),r.addEventListener("beginStroke",(function(){t.scaleCanvas(),t.isDrawingValue=!0,n.focus()}),{once:!1}),r.addEventListener("endStroke",(function(){t.isDrawingValue=!1,t.storeDataAsText?t.updateValue():t.valueWasChangedFromLastUpload=!0}),{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var o=function(e,n){"signatureWidth"!==n.name&&"signatureHeight"!==n.name&&"value"!==n.name||t.valueIsUpdatingInternally||t.updateValueHandler()};this.onPropertyChanged.add(o),this.signaturePad.propertyChangedHandler=o},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",h(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||300},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),t=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,t=this.isEmpty(),n=this.isUploading,r=this.valueWasChangedFromLastUpload;return!e&&t&&!n&&!r},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=(null==e?void 0:e.length)?e.map((function(e){return e.content}))[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(t){this.valueWasChangedFromLastUpload=!1,e.prototype.clearValue.call(this,t),this.refreshCanvas()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(l.ConsoleWarnings.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(l.ConsoleWarnings.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},p([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),p([Object(o.property)()],t.prototype,"signatureAutoScaleEnabled",void 0),p([Object(o.property)()],t.prototype,"penMinWidth",void 0),p([Object(o.property)()],t.prototype,"penMaxWidth",void 0),p([Object(o.property)({})],t.prototype,"showPlaceholder",void 0),p([Object(o.property)({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),p([Object(o.property)({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(u.QuestionFileModelBase);function h(e){return e||(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}],onSettingValue:function(e,t){return h(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],(function(){return new d("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new d(e)}))},"./src/question_tagbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTagboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/question_checkbox.ts"),l=n("./src/dropdownMultiSelectListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return c(t,e),t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModel)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.createDropdownListModel()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.createDropdownListModel()},t.prototype.createDropdownListModel=function(){this.dropdownListModel||this.isLoadingFromJson||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map((function(e){return e.value}));return n.filter((function(e){return-1===o.indexOf(e)})).forEach((function(n){var r=t.getItemIfChoicesNotContainThisValue(n,t.itemDisplayNameMap[n]);r&&e.push(r)})),e.sort((function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModel&&this.dropdownListModel.dispose()},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),null===(n=this.dropdownListModel)||void 0===n||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||u.settings.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),p([Object(o.property)()],t.prototype,"searchMode",void 0),p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),p([Object(o.property)()],t.prototype,"textWrapEnabled",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],(function(){return new d("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTextModel",(function(){return m})),n.d(t,"isMinMaxType",(function(){return y}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/localizablestring.ts"),a=n("./src/helpers.ts"),l=n("./src/validator.ts"),u=n("./src/error.ts"),c=n("./src/settings.ts"),p=n("./src/question_textbase.ts"),d=n("./src/mask/input_element_adapter.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout((function(){n.updateValueOnEvent(e)}),1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyDown=function(e){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(e),n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),n.onTextKeyDownHandler(e)},n.onChange=function(e){e.target===c.settings.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onBlur=function(e){n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onFocus=function(e){n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new s.LocalizableStrings(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerPropertyChangedHandlers(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceholder()})),n}return h(t,e),t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new d.InputElementAdapter(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return"none"===this.maskType;default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=this.maskType&&"none"!==this.maskType?this.maskType+"mask":"masksettings";i.Serializer.findClass(e)||(e="masksettings");var t=i.Serializer.createClass(e);return t.owner=this.survey,t},t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?e.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return y(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return this._inputValue},set:function(e){var t=e;this._inputValue=e,this.maskTypeIsEmpty||(t=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(t),t&&this.maskSettings.saveMaskedValue&&(t=this.maskInstance.getMaskedValue(t))),this.value=t},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),!n){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.minErrorText,r.getCalculatedMinMax(r.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.maxErrorText,r.getCalculatedMinMax(r.renderedMax))},t.push(i)}var s=this.getValidatorTitle(),a=new l.EmailValidator;if("email"===this.inputType&&!this.validators.some((function(e){return"emailvalidator"===e.getType()}))){var c=a.validate(this.value,s);c&&c.error&&t.push(c.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&n.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&n.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return!!this.maskTypeIsEmpty&&e.prototype.getIsInputTextUpdate.call(this)},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.getControlCssClassBuilder=function(){var t=this.getMaxLength();return e.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!t).append(this.cssClasses.characterCounterBig,t>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){"auto"!==this.inputTextAlignment?e.textAlign=this.inputTextAlignment:this.maskTypeIsEmpty||"auto"===this.maskSettings.getTextAlignment()||(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.inputValue=t)},t.prototype.afterRenderQuestionElement=function(t){t&&(this.input=t instanceof HTMLInputElement?t:t.querySelector("input"),this.createMaskAdapter()),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter()},f([Object(i.property)({onSet:function(e,t){t.onSetMaskType(e)}})],t.prototype,"maskType",void 0),f([Object(i.property)()],t.prototype,"inputTextAlignment",void 0),f([Object(i.property)()],t.prototype,"_inputValue",void 0),t}(p.QuestionTextBase),g=["number","range","date","datetime-local","month","time","week"];function y(e){var t=e?e.inputType:"";return!!t&&g.indexOf(t)>-1}function v(e,t){var n=e.split(t);return 2!==n.length?-1:a.Helpers.isNumber(n[0])&&a.Helpers.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function b(e,t,n,r){var o=r?n:t;if(!y(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?n+"-1":n);if(!s||!l)return o;if(s>l)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=v(e,n),o=v(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(n))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function C(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return y(e)},onPropertyEditorUpdate:function(e,t){C(e,t)},onSettingValue:function(e,t){return b(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return y(e)},onSettingValue:function(e,t){return b(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){C(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"],visible:!1},{name:"maskType:masktype",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new m("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new m(e)}))},"./src/question_textbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounter",(function(){return p})),n.d(t,"QuestionTextBase",(function(){return d}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new p,n}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return"default"==this.textUpdateMode?e.prototype.getIsInputTextUpdate.call(this):"onTyping"==this.textUpdateMode},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceholder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFactory",(function(){return s})),n.d(t,"ElementFactory",(function(){return a}));var r=n("./src/surveyStrings.ts"),o=n("./src/jsonobject.ts"),i=n("./src/question_custom.ts"),s=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.surveyLocalization.getString("choices_Item")+"1",r.surveyLocalization.getString("choices_Item")+"2",r.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=r.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t,n){void 0===n&&(n=!0),a.Instance.registerElement(e,t,n)},e.prototype.registerCustomQuestion=function(e){a.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),a.Instance.unregisterElement(e,t)},e.prototype.clear=function(){a.Instance.clear()},e.prototype.getAllTypes=function(){return a.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return a.Instance.createElement(e,t)},e.Instance=new e,e}(),a=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t,n){void 0===n&&(n=!0),e.registerElement(t,(function(e){var n=o.Serializer.createClass(t);return n&&(n.name=e),n}),n)}}return e.prototype.registerElement=function(e,t,n){void 0===n&&(n=!0),this.creatorHash[e]={showInToolbox:n,creator:t}},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},e.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];if(n&&n.creator)return n.creator(t);var r=i.ComponentCollection.Instance.getCustomQuestionByName(e);return r?i.ComponentCollection.Instance.createQuestion(t,r):null},e.prototype.getAllTypesCore=function(e){var t=new Array;for(var n in this.creatorHash)e&&!this.creatorHash[n].showInToolbox||t.push(n);return t.sort()},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionNonValue",(function(){return a}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RendererFactory",(function(){return r}));var r=function(){function e(){this.renderersHash={},this.defaultHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t],this.defaultHash[e]===t&&delete this.defaultHash[e]},e.prototype.registerRenderer=function(e,t,n,r){void 0===r&&(r=!1),this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n,r&&(this.defaultHash[e]=t)},e.prototype.getRenderer=function(e,t){var n=this.renderersHash[e];if(n){if(t&&n[t])return n[t];var r=this.defaultHash[e];if(r&&n[r])return n[r]}return"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return a}));var r=n("./src/global_variables_utils.ts"),o=n("./src/utils/utils.ts"),i="undefined"!=typeof globalThis?globalThis.document:(void 0).document,s=i?{root:i,_rootElement:r.DomDocumentHelper.getBody(),get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:r.DomDocumentHelper.getBody(),get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:i.head,stylesSheetsMountContainer:i.head}:void 0,a={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return a.commentSuffix},set commentPrefix(e){a.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,n,r,i){return Object(o.showConfirmDialog)(e,t,n,r,i)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:s,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}}}},"./src/stylesmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernThemeColors",(function(){return a})),n.d(t,"defaultThemeColors",(function(){return l})),n.d(t,"orangeThemeColors",(function(){return u})),n.d(t,"darkblueThemeColors",(function(){return c})),n.d(t,"darkroseThemeColors",(function(){return p})),n.d(t,"stoneThemeColors",(function(){return d})),n.d(t,"winterThemeColors",(function(){return h})),n.d(t,"winterstoneThemeColors",(function(){return f})),n.d(t,"StylesManager",(function(){return m}));var r=n("./src/defaultCss/defaultV2Css.ts"),o=n("./src/global_variables_utils.ts"),i=n("./src/settings.ts"),s=n("./src/utils/utils.ts"),a={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},l={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},u={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},c={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},p={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},d={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},h={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},f={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},m=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==r.surveyCss.currentType&&"bootstrapmaterial"!==r.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return r.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:r.surveyCss[e]}}))},e.getIncludedThemeCss=function(){if(void 0===i.settings.environment)return[];var t=i.settings.environment.rootElement,n=e.getAvailableThemes(),r=Object(s.isShadowDOM)(t)?t.host:t;if(r){var o=getComputedStyle(r);if(o.length)return n.filter((function(e){return e.theme.variables&&o.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===i.settings.environment)return null;for(var t=i.settings.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=i.settings.environment.stylesSheetsMountContainer,r=o.DomDocumentHelper.createElement("style");return r.id=t,r.appendChild(new Text("")),Object(s.getElement)(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){if(void 0===t&&(t="default"),void 0!==i.settings.environment){var o=i.settings.environment.rootElement,a=Object(s.isShadowDOM)(o)?o.host:o;if(r.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(r.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=n||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:a,default:l,orange:u,darkblue:c,darkrose:p,stone:d,winter:h,winterstone:f},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return y})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return v}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/utils/animation.ts"),h=n("./src/utils/utils.ts"),f=n("./src/global_variables_utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return m(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},g([Object(i.property)()],t.prototype,"hasDescription",void 0),g([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var v=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r._renderedIsExpanded=!0,r._isAnimatingCollapseExpand=!1,r.animationCollapsed=new d.AnimationBoolean(r.getExpandCollapseAnimationOptions(),(function(e){r._renderedIsExpanded=e,r.animationAllowed&&(e?r.isAnimatingCollapseExpand=!0:r.updateElementCss(!1))}),(function(){return r.renderedIsExpanded})),r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return m(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e,n,r){var o=u.settings.environment.root;if(!e||void 0===o)return!1;var i=o.getElementById(e);return t.ScrollElementToViewCore(i,!1,n,r)},t.ScrollElementToViewCore=function(e,t,n,r){if(!e||!e.scrollIntoView)return!1;var o=n?-1:e.getBoundingClientRect().top,i=o<0,s=-1;if(!i&&t&&(i=(s=e.getBoundingClientRect().left)<0),!i&&f.DomWindowHelper.isAvailable()){var a=f.DomWindowHelper.getInnerHeight();if(!(i=a>0&&a<o)&&t){var l=f.DomWindowHelper.getInnerWidth();i=l>0&&l<s}}return i&&e.scrollIntoView(r),i},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||!f.DomDocumentHelper.isAvailable())return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var n=u.settings.environment.root;if(!n)return!1;var r=n.getElementById(e);return!(!r||r.disabled||"none"===r.style.display||null===r.offsetParent||(t.ScrollElementToViewCore(r,!0,!1),r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!("collapsed"===this.state&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){return this.getPropertyValueWithoutDefault("cssClassesValue")},set:function(e){this.setPropertyValue("cssClassesValue",e)},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRenderedValue=!0,this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&!this.parent.originalPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={},t=this.minWidth;return"auto"!=t&&(t="min(100%, "+this.minWidth+")"),this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=t,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),t.prototype.isContainsSelection=function(e){var t=void 0,n=f.DomDocumentHelper.getDocument();if(f.DomDocumentHelper.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var r=f.DomWindowHelper.getSelection();if(r&&r.rangeCount>0){var o=r.getRangeAt(0);o.startOffset!==o.endOffset&&(t=o.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!t||!e.isContainsSelection(t.target))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,n=e||this.isReadOnly;return[n&&!t,!this.isDefaultV2Theme&&(n||t)]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,t.style.setProperty("--animation-height",t.offsetHeight+"px")},n=function(t){e.isAnimatingCollapseExpand=!1};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeIn,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){n(),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeOut,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getAnimatedElement:function(){var t,n=e.isPanel?e.cssClasses.panel:e.cssClasses;if(n.content){var r=Object(h.classesToSelector)(n.content);if(r)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+r)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t||!this.renderedIsExpanded||this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,g([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),g([Object(i.property)()],t.prototype,"_renderedIsExpanded",void 0),t}(y)},"./src/survey-error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyError",(function(){return i}));var r=n("./src/localizablestring.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equals=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new r.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey-events-api.ts":function(e,t,n){"use strict";n.r(t)},"./src/survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyModel",(function(){return k}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/defaultCss/defaultV2Css.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/conditionProcessValue.ts"),p=n("./src/dxSurveyService.ts"),d=n("./src/surveyStrings.ts"),h=n("./src/error.ts"),f=n("./src/localizablestring.ts"),m=n("./src/stylesmanager.ts"),g=n("./src/surveyTimerModel.ts"),y=n("./src/conditions.ts"),v=n("./src/settings.ts"),b=n("./src/utils/utils.ts"),C=n("./src/actions/action.ts"),w=n("./src/actions/container.ts"),x=n("./src/utils/cssClassBuilder.ts"),E=n("./src/notifier.ts"),P=n("./src/header.ts"),S=n("./src/surveytimer.ts"),O=n("./src/surveyTaskManager.ts"),T=n("./src/progress-buttons.ts"),_=n("./src/surveyToc.ts"),V=n("./src/global_variables_utils.ts"),R=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},k=function(e){function t(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onOpenFileChooser=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onChoicesSearch=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixRowAdding=o.addEvent(),o.onMatrixBeforeRowAdded=o.onMatrixRowAdding,o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixRenderRemoveButton=o.addEvent(),o.onMatrixAllowRemoveRow=o.onMatrixRenderRemoveButton,o.onMatrixDetailPanelVisibleChanged=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onAfterRenderMatrixCell=o.addEvent(),o.onMatrixAfterCellRender=o.onAfterRenderMatrixCell,o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onGetDynamicPanelTabTitle=o.addEvent(),o.onDynamicPanelCurrentIndexChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.onPopupVisibleChanged=o.addEvent(),o.onElementWrapperComponentName=o.addEvent(),o.onElementWrapperComponentData=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o.cssVariables={},o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.validationEnabled=!0,o.validationAllowSwitchPages=!1,o.validationAllowComplete=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton",o.taskManager=new O.SurveyTaskManagerModel,o.questionErrorComponent="sv-question-error",V.DomDocumentHelper.isAvailable()&&(t.stylesManager=new m.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i,"completed-before"),o.createHtmlLocString("loadingHtml","loadingSurvey",i,"loading"),o.createLocalizableString("emptySurveyText",o,!0,"emptySurvey"),o.createLocalizableString("logo",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],(function(){o.updateBackgroundImageStyle()})),o.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],(function(){o.updateButtonsVisibility()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),r&&o.render(r),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new E.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.onPopupVisibleChanged.add((function(e,t){t.visible?o.onScrollCallback=function(){t.popup.hide()}:o.onScrollCallback=void 0})),o.progressBarValue=new T.ProgressButtons(o),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o.progressBar,processResponsiveness:function(e){return o.progressBar.processResponsiveness&&o.progressBar.processResponsiveness(e)}}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o});var s=new _.TOCModel(o);return o.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(e){return s.updateStickyTOCSize(o.rootElement)}}),o.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:o.navigationBar}),o.locTitle.onStringChanged.add((function(){return o.titleIsEmpty=o.locTitle.isEmpty})),o}return R(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){m.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return v.settings.commentSuffix},set:function(e){v.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n,r){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=n,r&&(i.onGetTextCallback=function(e){return o.processHtml(e,r)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add((function(e,n){t(e,n)}))}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new x.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(t){return e.processResponsiveness(t)}})},t.prototype.getNavigationCss=function(e,t){return(new x.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||v.settings.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(b.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.makeRequiredErrorsInvisible(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.makeRequiredErrorsInvisible(t)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,v.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,v.settings.matrix.totalsSuffix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||d.surveyLocalization.currentLocale},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return d.surveyLocalization.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.surveyLocalization.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(e.prototype.locStrsChanged.call(this),this.currentPage)){if(this.isDesignMode)this.pages.forEach((function(e){return e.locStrsChanged()}));else{var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n=this.getBuiltInRendererForString(e,t),r={element:e,name:t,renderAs:n=this.elementWrapperComponentNameCore(n,e,"string",t)};return this.onTextRenderAs.fire(this,r),r.renderAs},t.prototype.getRendererContextForString=function(e,t){return this.elementWrapperDataCore(t,e,"string")},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedStyleSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedStyleSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new x.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach((function(t){return t.setIsMobile(e)})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||v.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=Object(b.wrapUrlForBackgroundImage)(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=(new x.CssClassBuilder).append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&"fixed"===this.backgroundImageAttachment).toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return v.settings.legacyProgressBarView||"defaultV2"!==l.surveyCss.currentType||A(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&-1!==["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar||"topbottom"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return void 0===e&&(e=""),(new x.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||"header"==e)).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||"footer"==e)).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e,t){if(void 0===t&&(t=!1),t&&(this.valuesHash={}),e)for(var n in e)this.setDataValueCore(this.valuesHash,n,e[n]);this.updateAllQuestionsValue(t),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(t)},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach((function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)})),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){i.Serializer.hasOriginalProperty(t.editingObj,n.name)&&("locale"===n.name&&t.setDataCore({}),t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach((function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))})),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),r=0;r<n.length;r++)t=n[r],e[t]=this.getDataValueCore(this.valuesHash,t);return this.getAllQuestions().forEach((function(t){t.hasFilteredValue&&(e[t.getFilteredName()]=t.getFilteredValue())})),e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentPage;(this.isShowingPreview||this.currentPageChanging(t,r))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,r))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(this.isDesignMode)return!1;var t=this.visiblePages.indexOf(e);if(t<0||t>=this.visiblePageCount)return!1;if(t===this.currentPageNo)return!1;if(t<this.currentPageNo||this.isValidateOnComplete)return this.currentPageNo=t,!0;for(var n=this.currentPageNo;n<t;n++){var r=this.visiblePages[n];if(!r.validate(!0,!0))return!1;r.passed=!0}return this.currentPage=e,!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,"error"===e)},t.prototype.notify=function(e,t,n){void 0===n&&(n=!1),this.notifier.showActions=n,this.notifier.notify(e,t,n)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.allow=!0,n.allowChanging=!0,this.onCurrentPageChanging.fire(this,n);var r=n.allowChanging&&n.allow;return r&&(this.isCurrentPageRendering=!0),r},t.prototype.currentPageChanged=function(e,t){this.notifyQuestionsOnHidingContent(t);var n=this.createPageChangeEventOptions(e,t);t&&!t.passed&&t.validate(!1)&&(t.passed=!0),this.onCurrentPageChanged.fire(this,n)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&e.questions.forEach((function(e){return e.onHidingContent()}))},t.prototype.createPageChangeEventOptions=function(e,t){var n=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===n,isPrevPage:-1===n,isGoingForward:n>0,isGoingBackward:n<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage);return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode&&!this.isDesignMode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=V.DomDocumentHelper.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&V.DomDocumentHelper.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&V.DomDocumentHelper.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(!this.isEditMode||this.ignoreValidation)return!1;var n=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,r=function(r){r&&!n||t.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?!!this.isLastPage&&!0!==this.validate(!0,this.focusOnFirstError,r,!0)&&!n:!0!==this.validateCurrentPage(r)&&!n},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var o=this.visiblePages,i=!0,s={fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1},a=0;a<o.length;a++)o[a].validate(e,t,s)||(i=!1);return s.firstErrorQuestion&&(t||r)&&(t?s.firstErrorQuestion.focus(!0):this.currentPage=s.firstErrorQuestion.page),i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r-1]}return!0},t.prototype.completeLastPage=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){if(this.resetNavigationButton(),!this.isValidateOnComplete){if(this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1}return this.showPreviewCore(),!0},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){if(!this.isDesignMode)if(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0,!1)):(this.runningPages&&this.restoreOriginalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.isShowingPreview)this.currentPageNo=0;else{var e=this.gotoPageFromPreview;this.gotoPageFromPreview=null,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePages[this.visiblePageCount-1]),e&&(this.changeCurrentPageFromPreview=!0,this.currentPage=e,this.changeCurrentPageFromPreview=!1)}},t.prototype.onQuestionsOnPageModeChanged=function(e,t){void 0===t&&(t=!1),this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.originalPages&&this.restoreOriginalPages(this.originalPages),this.originalPages=void 0):(e&&"standard"!=e||(this.originalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage,t)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOriginalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++){var n=e[t];n.setWasShown(!1),this.pages.push(n)}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t,n){this.questionHashesClear(),this.isLockingUpdateOnPageModes=!n;var r=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var o=this.createPagesForQuestionOnPageMode(t,r),i=this.pages.length-r;this.pages.splice(r,i);for(var s=0;s<o.length;s++)this.pages.push(o[s]);for(e.prototype.endLoadingFromJson.call(this),s=0;s<o.length;s++)o[s].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage(),this.isLockingUpdateOnPageModes=!1},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],o=i.Serializer.createClass("panel");o.originalPage=r,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(r);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var o=0;o<r.elements.length;o++){var s=r.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(r),c=i.Serializer.createClass(r.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var n=this;void 0===e&&(e=!1);var r=this.hasCookie,o=function(e){l=!0,n.setCompletedState("saving",e)},i=function(e){n.setCompletedState("error",e)},s=function(e){n.setCompletedState("success",e),n.navigateTo()},a=function(e){n.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!r&&this.surveyPostId&&this.sendResult(),l||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var n={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,n),n.allowComplete&&n.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&this.isValidateOnComplete)r.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(r.data[s.getValueName()]=a)}}return r},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var r="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return n.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var n=e.survey,r=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=n.getQuestionByName(i);s&&s.errors&&(r=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.showPreviewCore():n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){var n;if(v.settings.triggers.changeNavigationButtonsOnComplete){var r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]={trigger:e,pageId:null===(n=this.currentPage)||void 0===n?void 0:n.id}:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var t=Object.keys(this.completedByTriggers);if(0===t.length)return!1;var n=null===(e=this.currentPage)||void 0===e?void 0:e.id;if(!n)return!0;for(var r=0;r<t.length;r++)if(n===this.completedByTriggers[t[r]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||this.isShowingPreview||this.isLockingUpdateOnPageModes||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new x.CssClassBuilder).append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!v.settings.animationEnabled).append(this.css.rootReadOnly,"display"===this.mode&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var n=e,r=this.css.variables;if(r){var o=Number.parseFloat(V.DomDocumentHelper.getComputedStyle(n).getPropertyValue(r.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(e){V.DomWindowHelper.requestAnimationFrame((function(){i=!(i||!Object(b.isContainerVisible)(n))&&t.processResponsiveness(n.offsetWidth,o)}))})),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.processResponsiveness=function(e,t){var n=e<t,r=this.isMobile!==n;return r&&this.setIsMobile(n),this.layoutElements.forEach((function(t){return t.processResponsiveness&&t.processResponsiveness(e)})),r},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach((function(t){t.triggerResponsiveness(e)}))},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var n=!this.isFirstPageRendering;setTimeout((function(){return t.scrollToTopOnPageChange(n)}),1)}this.focusQuestionInfo(),this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=v.settings.environment.root;if(n&&t.id!==n&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,t,n,r){var o={question:e,rowIndex:t,row:n,visible:r,detailPanel:n.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,o)},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var r=e.panels;void 0===t&&(n=r[t=r.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],o=0;o<r.length;o++)r[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dynamicPanelGetTabTitle=function(e,t){t.question=e,this.onGetDynamicPanelTabTitle.fire(this,t)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,t){t.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r,o,i){var s={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,s),s.cancel||a.SurveyElement.ScrollElementToTop(s.elementId,o,i)},t.prototype.chooseFiles=function(e,t,n){this.onOpenFileChooser.isEmpty?Object(b.chooseFiles)(e,t):this.onOpenFileChooser.fire(this,{input:e,element:n&&n.element||this.survey,elementType:n&&n.elementType,item:n&&n.item,propertyName:n&&n.propertyName,callback:t,context:n})},t.prototype.uploadFiles=function(e,t,n,r){var o=this;this.onUploadFiles.isEmpty?r("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",(function(i){o.onUploadFiles.fire(o,{question:e,name:t,files:n||[],callback:function(e,t){r(e,t),i()}})})),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("success",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach((function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,(function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),n&&(t=!1);for(var r=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(r,e,t);if(!n)return r;var i=[];return r.forEach((function(t){i.push(t),t.getNestedQuestions(e).forEach((function(e){return i.push(e)}))})),i},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t,n){if(this.editingObj){var r=i.Serializer.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var o={name:e,question:this.getQuestionByValueName(n||e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,o),o.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),r=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&r&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.notifyQuestionOnValueChanged=function(e,t,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var i=r[o];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e,n))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,t){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var n=0;n<this.pages.length;n++)this.pages[n].onAnyValueChanged(e,t);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var t=this.getAllQuestions(),n=0;n<t.length;n++){var r=t[n],o=r.getValueName();r.updateValueFromSurvey(this.getValue(o),e),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(o))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n,r){if(void 0===n&&(n=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var o in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[o]=e[o];else{var i=!1;if(!n&&r&&this.hasRequiredValidQuestionTrigger){var s=this.getQuestionByValueName(r);i=s&&!s.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var a=this.getFilteredProperties(),l=this.canBeCompletedByTrigger,u=0;u<this.triggers.length;u++){var c=this.triggers[u];i&&c.requireValidQuestion||c.checkExpression(t,n,this.triggerKeys,this.triggerValues,a)}l!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,t,n){var r={};r[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(r,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):(this.runConditions(),this.runQuestionsTriggers(e,t))},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);e.prototype.runConditionCore.call(this,this.conditionValues,t);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,t)},t.prototype.runQuestionsTriggers=function(e,t){this.isDisplayMode||this.isDesignMode||this.getAllQuestions().forEach((function(n){return n.runTriggers(e,t)}))},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){var r=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var o=this.createSurveyService();o.locale=this.getLocale();var i=this.surveyShowDataSaving||!n&&o.isSurveJSIOService;i&&this.setCompletedState("saving",""),o.sendResult(e,this.data,(function(e,t,n){(i||o.isSurveJSIOService)&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t));var s={success:e,response:t,request:n};r.onSendResult.fire(r,s)}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,r,o){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson||this.isLockingUpdateOnPageModes))if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?t++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,t){if(e){this.questionHashesClear(),this.jsonErrors=null;var n=new i.JsonObject;n.toObject(e,this,t),n.errors.length>0&&(this.jsonErrors=n.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&t.locale&&(this.locale=t.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard",!0),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute((function(){return e.completeLastPage()}))},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[n,r,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new c.ProcessValue,r=n.getFirstName(e.name);if(r!==e.name){var i={},s=this.getValue(r);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(r)),o.Helpers.isValueEmpty(s)||(i[r]=s,e.value=n.getValue(e.name,i),e.isExists=n.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible&&r.isParentVisible&&!r.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){return this.getQuestionsByValueName(e)||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){if(e){var n=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),o.Helpers.isTwoValueEquals(n,t)||(this.checkTriggersAndRunConditions(e,t,n),this.onVariableChanged.fire(this,{name:e,value:t}))}},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r,o){if(void 0===n&&(n=!1),void 0===r&&(r=!0),!this.isLockingUpdateOnPageModes){var i=t;if(r&&(i=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,i))&&(this.editingObj||!this.isValueEqual(e,i)||!this.isTwoValueEquals(i,t))){var s=this.getValue(e);this.isValueEmpyOnSetValue(e,i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),this.updateOnSetValue(e,i,s,n,r,o)}}},t.prototype.isValueEmpyOnSetValue=function(e,t){return!(!this.isValueEmpty(t,!1)||this.editingObj&&null!=t&&this.editingObj.getDefaultPropertyValue(e)!==t)},t.prototype.updateOnSetValue=function(e,t,n,r,o,i){void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0===r||this.isDisposed||this.isRunningElementsBindings||(i=i||e,this.checkTriggersAndRunConditions(e,t,n),o&&this.notifyQuestionOnValueChanged(e,t,i),"text"!==r&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.runningPages||(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){var t=this;if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var n=this.getQuestionByValueName(e);if(n&&(!n||n.visible&&n.supportGoNextPageAutomatic())&&(n.validate(!1)||n.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(n)<0)){for(var o=0;o<r.length;o++)if(r[o].hasInput&&r[o].isEmpty())return;if((!this.isLastPage||!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic)&&!this.checkIsCurrentPageHasErrors(!1)){var i=this.currentPage;S.surveyTimerFunctions.safeTimeOut((function(){i===t.currentPage&&(t.isLastPage?t.isShowPreviewBeforeComplete?t.showPreview():t.completeLastPage():t.nextPage())}),v.settings.autoAdvanceDelay)}}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;t=this.questionOnValueChanging(r,t,e),this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByValueName(e);s&&(this.onValueChanged.fire(this,{name:r,question:s,value:t}),s.comment=t,s.comment!=t&&(s.comment=t))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t,n){n&&this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!v.settings.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new u.TextPreProcessor,this.textPreProcessorValue.onProcess=function(t){e.getProcessedTextValue(t)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getInCorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r=0;r<t.length;r++){var o=t[r],i=o.correctAnswerCount;n+=e?i:o.quizQuestionCount-i}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:r}:"survey"==this.showTimerPanelMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(r),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?r<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t,n){var r;e&&t&&(r=n?this.processText("{"+t+"}",!0):(new c.ProcessValue).getValue(t,this.getFilteredValues()),this.setTriggerValue(e,r,!1))},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){var n;if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(n=this.focusingQuestionInfo)||void 0===n?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t},this.skippedPages.push({from:this.currentPage,to:e.page});var r=this.activePage!==e.page&&!e.page.isStartPage;return r&&(this.currentPage=e.page),r||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var n=this.enterKeyAction||v.settings.enterKeyAction;if("loseFocus"==n&&t.target.blur(),"moveToNextEditor"==n){var r=this.currentPage.questions,o=r.indexOf(e);o>-1&&o<r.length-1?r[o+1].focus():t.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,t,n,r,o){if(this.onElementWrapperComponentName.isEmpty)return e;var i={componentName:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentName.fire(this,i),i.componentName},t.prototype.elementWrapperDataCore=function(e,t,n,r,o){if(this.onElementWrapperComponentData.isEmpty)return e;var i={data:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentData.fire(this,i),i.data},t.prototype.getElementWrapperComponentName=function(e,n){var r="logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,e,"component",t)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,t,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var t=e.question;return this.elementWrapperDataCore(t,t,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.findLayoutElement=function(e){return this.layoutElements.filter((function(t){return t.id===e}))[0]},t.prototype.removeLayoutElement=function(e){var t=this.findLayoutElement(e);if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];if("display"!==this.mode&&A(o.id,"timerpanel"))"header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o);else if("running"===this.state&&A(o.id,this.progressBarComponentName)){if("singlePage"!=this.questionsOnPageMode){var i=this.findLayoutElement("advanced-header"),s=i&&i.data,a=!s||s.hasBackground;A(this.showProgressBar,"aboveHeader")&&(a=!1),A(this.showProgressBar,"belowHeader")&&(a=!0),"header"!==e||a||(o.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"center"===e&&a&&(o.index&&delete o.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"footer"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)}}else A(o.id,"buttons-navigation")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&A(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):A(o.id,"advanced-header")?"running"!==this.state&&"starting"!==this.state||o.container!==e||t.push(o):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t.sort((function(e,t){return(e.index||0)-(t.index||0)})),t},t.prototype.processPopupVisiblityChanged=function(e,t,n){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})},t.prototype.applyTheme=function(e){var t=this;if(e){if(Object.keys(e).forEach((function(n){"header"!==n&&("isPanelless"===n?t.isCompact=e[n]:t[n]=e[n])})),"advanced"===this.headerView||"header"in e){this.removeLayoutElement("advanced-header");var n=new P.Cover;n.fromTheme(e),this.insertAdvancedHeader(n)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach((function(t){return t.themeChanged(e)}))},t.prototype.dispose=function(){if(this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var t=0;t<this.layoutElements.length;t++)this.layoutElements[t].data&&this.layoutElements[t].data!==this&&this.layoutElements[t].data.dispose&&this.layoutElements[t].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(this.currentPage=null,t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype.onScroll=function(){if(this.rootElement){var e=this.rootElement.querySelector(".sv-components-container-center");e&&e.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")}this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e,t=this;this.scrollHandler=function(){t.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",I([Object(i.property)()],t.prototype,"completedCss",void 0),I([Object(i.property)()],t.prototype,"completedBeforeCss",void 0),I([Object(i.property)()],t.prototype,"loadingBodyCss",void 0),I([Object(i.property)()],t.prototype,"containerCss",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"fitToContainer",void 0),I([Object(i.property)({onSet:function(e,t){if("advanced"===e){if(!t.findLayoutElement("advanced-header")){var n=new P.Cover;n.logoPositionX="right"===t.logoPosition?"right":"left",n.logoPositionY="middle",n.titlePositionX="right"===t.logoPosition?"left":"right",n.titlePositionY="middle",n.descriptionPositionX="right"===t.logoPosition?"left":"right",n.descriptionPositionY="middle",t.insertAdvancedHeader(n)}}else t.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),I([Object(i.property)()],t.prototype,"showBrandInfo",void 0),I([Object(i.property)()],t.prototype,"enterKeyAction",void 0),I([Object(i.property)()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),I([Object(i.property)({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),I([Object(i.property)({defaultValue:{}})],t.prototype,"cssVariables",void 0),I([Object(i.property)()],t.prototype,"_isMobile",void 0),I([Object(i.property)()],t.prototype,"_isCompact",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImage",void 0),I([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),I([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),I([Object(i.property)()],t.prototype,"backgroundImageStyle",void 0),I([Object(i.property)()],t.prototype,"wrapperFormCss",void 0),I([Object(i.property)({getDefaultValue:function(e){return"buttons"===e.progressBarType}})],t.prototype,"progressBarShowPageTitles",void 0),I([Object(i.property)()],t.prototype,"progressBarShowPageNumbers",void 0),I([Object(i.property)()],t.prototype,"progressBarInheritWidthFrom",void 0),I([Object(i.property)()],t.prototype,"rootCss",void 0),I([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),I([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function A(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(e){return e.originalPages||e.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r,null==n?void 0:n.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(e){return"off"!==e.showProgressBar}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(e){return!!e&&e.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(e){return!0===e.goNextPageAutomatic}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(e){return e.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(e){return"none"!==e.showNavigationButtons&&e.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["page","survey","all"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeDirections:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/surveyTaskManager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTaskManagerModel",(function(){return l}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){this.type=e,this.timestamp=new Date},l=function(e){function t(){var t=e.call(this)||this;return t.taskList=[],t.onAllTasksCompleted=t.addEvent(),t}return s(t,e),t.prototype.runTask=function(e,t){var n=this,r=new a(e);return this.taskList.push(r),this.hasActiveTasks=!0,t((function(){return n.taskFinished(r)})),r},t.prototype.waitAndExecute=function(e){this.hasActiveTasks?this.onAllTasksCompleted.add((function(){e()})):e()},t.prototype.taskFinished=function(e){var t=this.taskList.indexOf(e);t>-1&&this.taskList.splice(t,1),this.hasActiveTasks&&0==this.taskList.length&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(o.Base)},"./src/surveyTimerModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/surveytimer.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?(0==n?(this.progress=0,setTimeout((function(){e.progress=Math.floor((n+1)/r*100)/100}),0)):n<=r&&(this.progress=Math.floor((n+1)/r*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"tryFocusPage",(function(){return u})),n.d(t,"createTOCListModel",(function(){return c})),n.d(t,"getTocRootCss",(function(){return p})),n.d(t,"TOCModel",(function(){return d}));var r=n("./src/actions/action.ts"),o=n("./src/base.ts"),i=n("./src/global_variables_utils.ts"),s=n("./src/list.ts"),a=n("./src/page.ts"),l=n("./src/popup.ts");function u(e,t){return e.isDesignMode||t.focusFirstQuestion(),!0}function c(e,t){var n,l="singlePage"===e.questionsOnPageMode?null===(n=e.pages[0])||void 0===n?void 0:n.elements:e.pages,c=(l||[]).map((function(n){return new r.Action({id:n.name,locTitle:n.locNavigationTitle,action:function(){return i.DomDocumentHelper.activeElementBlur(),t&&t(),n instanceof a.PageModel?e.tryNavigateToPage(n):u(e,n)},visible:new o.ComputedUpdater((function(){return n.isVisible&&!n.isStartPage}))})})),p=c.filter((function(t){return!!e.currentPage&&t.id===e.currentPage.name}))[0]||c.filter((function(e){return e.id===l[0].name}))[0],d={items:c,onSelectionChanged:function(e){e.action()&&(h.selectedItem=e)},allowSelection:!0,searchEnabled:!1,locOwner:e,selectedItem:p},h=new s.ListModel(d);return h.allowSelection=!1,e.onCurrentPageChanged.add((function(t,n){h.selectedItem=c.filter((function(t){return!!e.currentPage&&t.id===e.currentPage.name}))[0]})),h}function p(e,t){void 0===t&&(t=!1);var n=d.RootStyle;return t?n+" "+d.RootStyle+"--mobile":(n+=" "+d.RootStyle+"--"+(e.tocLocation||"").toLowerCase(),d.StickyPosition&&(n+=" "+d.RootStyle+"--sticky"),n)}var d=function(){function e(t){var n=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){n.popupModel.toggleVisibility()},this.listModel=c(t,(function(){n.popupModel.isVisible=!1})),this.popupModel=new l.PopupModel("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="overlay",this.popupModel.displayMode=new o.ComputedUpdater((function(){return n.isMobile?"overlay":"popup"})),e.StickyPosition&&(t.onAfterRenderSurvey.add((function(e,t){return n.initStickyTOCSubscriptions(t.htmlElement)})),this.initStickyTOCSubscriptions(t.rootElement))}return e.prototype.initStickyTOCSubscriptions=function(t){var n=this;e.StickyPosition&&t&&(t.addEventListener("scroll",(function(e){n.updateStickyTOCSize(t)})),this.updateStickyTOCSize(t))},e.prototype.updateStickyTOCSize=function(t){if(t){var n=t.querySelector("."+e.RootStyle);if(n&&(n.style.height="",!this.isMobile&&e.StickyPosition&&t)){var r=t.getBoundingClientRect().height,o="advanced"===this.survey.headerView?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),i=t.querySelector(o),s=i?i.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;n.style.height=r-a-1+"px"}}},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerCss",{get:function(){return p(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.popupModel.dispose(),this.listModel.dispose()},e.RootStyle="sv_progress-toc",e.StickyPosition=!0,e}()},"./src/surveytimer.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyTimerFunctions",(function(){return o})),n.d(t,"SurveyTimer",(function(){return i}));var r=n("./src/base.ts"),o={setTimeout:function(e){return o.safeTimeOut(e,1e3)},clearTimeout:function(e){clearTimeout(e)},safeTimeOut:function(e,t){return t<=0?(e(),0):setTimeout(e,t)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIconRegistry",(function(){return o})),n.d(t,"SvgRegistry",(function(){return i})),n.d(t,"SvgBundleViewModel",(function(){}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.processId=function(e,t){return 0==e.indexOf(t)&&(e=e.substring(t.length)),e},e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){if(void 0===n&&(n=this.iconPrefix),r.DomDocumentHelper.isAvailable()){e=this.processId(e,n);var o=r.DomDocumentHelper.createElement("div");o.innerHTML=t;var i=r.DomDocumentHelper.createElement("symbol"),s=o.querySelector("svg");i.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)i.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);i.id=n+e,this.registerIconFromSymbol(e,i.outerHTML)}},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix),e=this.processId(e,n);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e}(),i=new o,s=n("./src/images sync \\.svg$"),a=n("./src/images/smiley sync \\.svg$");i.registerIconsFromFolder(s),i.registerIconsFromFolder(a)},"./src/template-renderer.ts":function(e,t,n){"use strict";n.r(t)},"./src/textPreProcessor.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TextPreProcessorItem",(function(){return i})),n.d(t,"TextPreProcessorValue",(function(){return s})),n.d(t,"TextPreProcessor",(function(){return a})),n.d(t,"QuestionTextProcessor",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){r.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.Helpers.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new s(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",s=0;s<n;s++)if("{"==(o=e[s])&&(r=s),"}"==o){if(r>-1){var a=new i;a.start=r,a.end=s,t.push(a)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var i=this.panel?this.getValues():null;i&&(r[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,r)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.prototype.processTextCore=function(e,t,n){return e?e.processText(t,n):t},e}()},"./src/themes.ts":function(e,t,n){"use strict";n.r(t)},"./src/trigger.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Trigger",(function(){return d})),n.d(t,"SurveyTrigger",(function(){return h})),n.d(t,"SurveyTriggerVisible",(function(){return f})),n.d(t,"SurveyTriggerComplete",(function(){return m})),n.d(t,"SurveyTriggerSetValue",(function(){return g})),n.d(t,"SurveyTriggerSkip",(function(){return y})),n.d(t,"SurveyTriggerRunExpression",(function(){return v})),n.d(t,"SurveyTriggerCopyValue",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/expressions/expressions.ts"),u=n("./src/conditionProcessValue.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.registerPropertyChangedHandlers(["operator","value","name"],(function(){n.oldPropertiesChanged()})),n.registerPropertyChangedHandlers(["expression"],(function(){n.onExpressionChanged()})),n}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,n,r,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(n)&&(this.conditionRunner?this.perform(r,o):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,r,o)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){return!!e&&(this.createConditionRunner(),!(!this.conditionRunner||!0!==this.conditionRunner.hasFunction())||(new u.ProcessValue).isAnyKeyChanged(e,this.getUsedVariables()))},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var t=e.length-1;t>=0;t--){var n=e[t];n.endsWith("-unwrapped")&&e.push(n.substring(0,n.length-10))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!c.settings.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new a.ExpressionRunner(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var t=e.prototype.getUsedVariables.call(this);return 0===t.length&&this.fromName&&t.push(this.fromName),t},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new y}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new v}),"surveytrigger")},"./src/utils/animation.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationUtils",(function(){return l})),n.d(t,"AnimationPropertyUtils",(function(){return u})),n.d(t,"AnimationGroupUtils",(function(){return c})),n.d(t,"AnimationProperty",(function(){return p})),n.d(t,"AnimationBoolean",(function(){return d})),n.d(t,"AnimationGroup",(function(){return h})),n.d(t,"AnimationTab",(function(){return f}));var r,o=n("./src/utils/taskmanager.ts"),i=n("./src/utils/utils.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),n=t.animationDelay.split(", "),r=t.animationDuration.split(", "),o=0,i=0;i<Math.max(r.length,n.length);i++)o=Math.max(o,this.getMsFromRule(r[i%r.length])+this.getMsFromRule(n[i%n.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,n){var r,o=this,i=this.getAnimationsCount(e),s=function(i){void 0===i&&(i=!0),o.afterAnimationRun(e,n),t(i),clearTimeout(r),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),r=setTimeout((function(){s(!1)}),this.getAnimationDuration(e)+10)):(this.afterAnimationRun(e,n),t(!0))},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)},e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,n){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach((function(t){e.classList.add(t)})),this.onAnimationEnd(e,n,t)):n(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach((function(t){e.classList.remove(t)}))},e.prototype.onNextRender=function(e,t){var n=this;if(void 0===t&&(t=!1),!t&&s.DomWindowHelper.isAvailable()){var r=function(){e(!0),cancelAnimationFrame(o)},o=s.DomWindowHelper.requestAnimationFrame((function(){o=s.DomWindowHelper.requestAnimationFrame((function(){e(!1),n.removeCancelCallback(r)}))}));this.addCancelCallback(r)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach((function(e){return e()})),this.cancelQueue=[]},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onEnter=function(e){var t=this,n=e.getAnimatedElement(),r=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,(function(){t.clearHtmlElement(n,r)}))},t.prototype.onLeave=function(e,t){var n=this,r=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,(function(e){t(),n.onNextRender((function(){n.clearHtmlElement(r,o)}),e)}))},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.runGroupAnimation=function(e,t,n,r,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},a=t.map((function(t){return e.getAnimatedElement(t)})),l=t.map((function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}})),u=n.map((function(t){return e.getAnimatedElement(t)})),c=n.map((function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}})),p=r.map((function(t){return e.getAnimatedElement(t.item)})),d=r.map((function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}}));t.forEach((function(e,t){i.beforeAnimationRun(a[t],l[t])})),n.forEach((function(e,t){i.beforeAnimationRun(u[t],c[t])})),r.forEach((function(e,t){i.beforeAnimationRun(p[t],d[t])}));var h=t.length+n.length+p.length,f=function(e){--h<=0&&(o&&o(),i.onNextRender((function(){t.forEach((function(e,t){i.clearHtmlElement(a[t],l[t])})),n.forEach((function(e,t){i.clearHtmlElement(u[t],c[t])})),r.forEach((function(e,t){i.clearHtmlElement(p[t],d[t])}))}),e))};t.forEach((function(e,t){i.runAnimation(a[t],l[t],f)})),n.forEach((function(e,t){i.runAnimation(u[t],c[t],f)})),r.forEach((function(e,t){i.runAnimation(p[t],d[t],f)}))},t}(l),p=function(){function e(e,t,n){var r=this;this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=Object(o.debounce)((function(e){r.animation.cancel();try{r._sync(e)}catch(t){r.update(e)}}))}return e.prototype.onNextRender=function(e,t){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var o=function(){r.remove(i),n.cancelCallback=void 0},i=function(){e(),o()};this.cancelCallback=function(){t&&t(),o()},r.add(i)}else{if(!s.DomWindowHelper.isAvailable())throw new Error("Can't get next render");var a=s.DomWindowHelper.requestAnimationFrame((function(){e(),n.cancelCallback=void 0}));this.cancelCallback=function(){t&&t(),cancelAnimationFrame(a),n.cancelCallback=void 0}}},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new u,t}return a(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender((function(){t.animation.onEnter(t.animationOptions)})),this.update(e)):this.animation.onLeave(this.animationOptions,(function(){t.update(e)})):this.update(e)},t}(p),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new c,t}return a(t,e),t.prototype._sync=function(e){var t,n,r=this,o=this.getCurrentValue(),s=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,a=Object(i.compareArrays)(o,e,null!==(n=this.animationOptions.getKey)&&void 0!==n?n:function(e){return e}),l=a.addedItems,u=a.deletedItems,c=a.reorderedItems,p=a.mergedItems;!s&&(c.length>0||l.length>0)&&(u=[],p=e);var d=function(){r.animation.runGroupAnimation(r.animationOptions,l,u,c,(function(){u.length>0&&r.update(e)}))};[l,u,c].some((function(e){return e.length>0}))?u.length<=0||c.length>0||l.length>0?(this.onNextRender(d,(function(){r.update(e)})),this.update(p)):d():this.update(e)},t}(p),f=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.mergeValues=o,i.animation=new c,i}return a(t,e),t.prototype._sync=function(e){var t=this,n=[].concat(this.getCurrentValue());if(n[0]!==e[0]){var r=this.mergeValues?this.mergeValues(e,n):[].concat(n,e);this.onNextRender((function(){t.animation.runGroupAnimation(t.animationOptions,e,n,[],(function(){t.update(e)}))}),(function(){return t.update(e)})),this.update(r,!0)}else this.update(e)},t}(p)},"./src/utils/camera.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Camera",(function(){return i}));var r=n("./src/settings.ts"),o=n("./src/global_variables_utils.ts"),i=function(){function e(){this.canFlipValue=void 0}return e.clear=function(){e.cameraList=void 0,e.cameraIndex=-1},e.setCameraList=function(t){var n=function(e){var t=e.label.toLocaleLowerCase();return t.indexOf("user")>-1?"user":t.indexOf("enviroment")>-1?"enviroment":""};e.clear(),Array.isArray(t)&&t.length>0&&(e.cameraIndex=-1,t.sort((function(e,r){if(e===r)return 0;if(e.label!==r.label){var o=n(e),i=n(r);if(o!==i){if("user"===o)return-1;if("user"===i)return 1;if("enviroment"===o)return-1;if("enviroment"===i)return 1}}return t.indexOf(e)<t.indexOf(r)?-1:1}))),e.cameraList=t},e.prototype.hasCamera=function(t){var n=this;void 0===e.cameraList?e.mediaDevicesCallback?e.mediaDevicesCallback((function(e){n.setVideoInputs(e),n.hasCameraCallback(t)})):"undefined"!=typeof navigator&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then((function(e){n.setVideoInputs(e),n.hasCameraCallback(t),n.updateCanFlipValue()})).catch((function(r){e.cameraList=null,n.hasCameraCallback(t)})):(e.cameraList=null,this.hasCameraCallback(t)):this.hasCameraCallback(t)},e.prototype.getMediaConstraints=function(t){var n=e.cameraList;if(Array.isArray(n)&&!(n.length<1)){e.cameraIndex<0&&(e.cameraIndex=0);var r=n[e.cameraIndex],o={};return r&&r.deviceId?o.deviceId={exact:r.deviceId}:o.facingMode=e.cameraFacingMode,t&&((null==t?void 0:t.height)&&(o.height={ideal:t.height}),(null==t?void 0:t.width)&&(o.width={ideal:t.width})),{video:o,audio:!1}}},e.prototype.startVideo=function(t,n,o,i){var s,a=this,l=null===(s=r.settings.environment.root)||void 0===s?void 0:s.getElementById(t);if(l){l.style.width="100%",l.style.height="auto",l.style.height="100%",l.style.objectFit="contain";var u=this.getMediaConstraints({width:o,height:i});navigator.mediaDevices.getUserMedia(u).then((function(t){var r;l.srcObject=t,!(null===(r=e.cameraList[e.cameraIndex])||void 0===r?void 0:r.deviceId)&&t.getTracks()[0].getCapabilities().facingMode&&(e.canSwitchFacingMode=!0,a.updateCanFlipValue()),l.play(),n(t)})).catch((function(e){n(void 0)}))}else n(void 0)},e.prototype.getImageSize=function(e){return{width:e.videoWidth,height:e.videoHeight}},e.prototype.snap=function(e,t){if(!o.DomDocumentHelper.isAvailable())return!1;var n=o.DomDocumentHelper.getDocument(),r=null==n?void 0:n.getElementById(e);if(!r)return!1;var i=n.createElement("canvas"),s=this.getImageSize(r);i.height=s.height,i.width=s.width;var a=i.getContext("2d");return a.clearRect(0,0,i.width,i.height),a.drawImage(r,0,0,i.width,i.height),i.toBlob(t,"image/png"),!0},e.prototype.updateCanFlipValue=function(){var t=e.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||e.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},e.prototype.canFlip=function(e){return void 0===this.canFlipValue&&this.updateCanFlipValue(),e&&(this.onCanFlipChangedCallback=e),this.canFlipValue},e.prototype.flip=function(){this.canFlip()&&(e.canSwitchFacingMode?e.cameraFacingMode="user"===e.cameraFacingMode?"environment":"user":e.cameraIndex>=e.cameraList.length-1?e.cameraIndex=0:e.cameraIndex++)},e.prototype.hasCameraCallback=function(t){t(Array.isArray(e.cameraList))},e.prototype.setVideoInputs=function(t){var n=[];t.forEach((function(e){"videoinput"===e.kind&&n.push(e)})),e.setCameraList(n.length>0?n:null)},e.cameraIndex=-1,e.cameraFacingMode="user",e.canSwitchFacingMode=!1,e}()},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"IsMobile",(function(){return a})),n.d(t,"mouseInfo",(function(){return l})),n.d(t,"IsTouch",(function(){return c})),n.d(t,"_setIsTouch",(function(){return p})),n.d(t,"detectMouseSupport",(function(){return d}));var r,o=n("./src/global_variables_utils.ts"),i=!1,s=null;"undefined"!=typeof navigator&&navigator&&o.DomWindowHelper.isAvailable()&&(s=navigator.userAgent||navigator.vendor||o.DomWindowHelper.hasOwn("opera")),(r=s)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substring(0,4)))&&(i=!0);var a=i||!1,l={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return o.DomWindowHelper.isAvailable()&&(o.DomWindowHelper.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},u=o.DomWindowHelper.matchMedia;l.hasMouse=d(u);var c=l.isTouch;function p(e){c=e}function d(e){if(!e)return!1;var t=e("(pointer:fine)"),n=e("(any-hover:hover)");return!!t&&t.matches||!!n&&n.matches}},"./src/utils/dragOrClickHelper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragOrClickHelper",(function(){return i}));var r=n("./src/utils/devices.ts"),o=n("./src/global_variables_utils.ts"),i=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){r.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,o.DomDocumentHelper.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(o.DomDocumentHelper.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Rect",(function(){return r})),n.d(t,"PopupUtils",(function(){return o}));var r=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),e}(),o=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i){void 0===i&&(i="flex");var s=e.left,a=e.top;return"flex"===i&&(s="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),a="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,"center"!=o&&"middle"!=r&&("top"==r?a+=e.height:a-=e.height),{left:Math.round(s),top:Math.round(a)}},e.getCorrectedVerticalDimensions=function(t,n,r,o,i){var s;void 0===i&&(i=!0);var a=r-e.bottomIndent;if("top"===o&&(s={height:n,top:t}),t<0)s={height:i?n+t:n,top:0};else if(n+t>r){var l=Math.min(n,a-t);s={height:i?l:n,top:i?t:t-(n-l)}}return s&&(s.height=Math.min(s.height,a),s.top=Math.max(s.top,0)),s},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){if("middle"===r)return r;var i=t-(e.top+("center"!==n?e.height:0)),s=t+e.bottom-("center"!==n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.updateHorizontalPosition=function(e,t,n,r){if("center"===n)return n;var o=t-e.left,i=t+e.right-r;return o>0&&i<=0&&"left"==n?n="right":i>0&&o<=0&&"right"==n?n="left":i>0&&o>0&&(n=o<i?"left":"right"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return a})),n.d(t,"VerticalResponsivityManager",(function(){return l}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e,t,n,r,i){var s=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=i,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return o.DomDocumentHelper.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(s.isInitialized=!1),setTimeout((function(){s.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){o.DomWindowHelper.requestAnimationFrame((function(){s.process()}))})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.getRenderedVisibleActionsCount=function(){var e=this,t=0;return this.container.querySelectorAll(this.itemsSelector).forEach((function(n){e.calcItemSize(n)>0&&t++})),t},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(i.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var t=function(){var t,n=e.dotsItemSize;if(!e.dotsItemSize){var r=null===(t=e.container)||void 0===t?void 0:t.querySelector(".sv-dots");n=r&&e.calcItemSize(r)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),n)};if(this.isInitialized)t();else{var n=function(){e.calcItemsSizes(),e.isInitialized=!0,t()};this.getRenderedVisibleActionsCount()<this.model.visibleActions.length?this.delayedUpdateFunction?this.delayedUpdateFunction(n):queueMicrotask?queueMicrotask(n):n():n()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),l=function(e){function t(t,n,r,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,n,r,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return s(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(a)},"./src/utils/taskmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Task",(function(){return r})),n.d(t,"TaskManger",(function(){return o})),n.d(t,"debounce",(function(){return i}));var r=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),e}(),o=function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}return e.Instance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],n=0;n<e.tasks.length;n++){var r=e.tasks[n];r.execute(),r.isCompleted?"function"==typeof r.dispose&&r.dispose():t.push(r)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[],e}();function i(e){var t,n=this,r=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,r||(r=!0,queueMicrotask((function(){o||e.apply(n,t),o=!1,r=!1})))},cancel:function(){o=!0}}}},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return E})),n.d(t,"getRenderedSize",(function(){return P})),n.d(t,"getRenderedStyleSize",(function(){return S})),n.d(t,"doKey2ClickBlur",(function(){return T})),n.d(t,"doKey2ClickUp",(function(){return _})),n.d(t,"doKey2ClickDown",(function(){return V})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return B})),n.d(t,"showConfirmDialog",(function(){return q})),n.d(t,"configConfirmDialog",(function(){return H})),n.d(t,"compareArrays",(function(){return Q})),n.d(t,"mergeValues",(function(){return F})),n.d(t,"getElementWidth",(function(){return D})),n.d(t,"isContainerVisible",(function(){return N})),n.d(t,"classesToSelector",(function(){return A})),n.d(t,"compareVersions",(function(){return a})),n.d(t,"confirmAction",(function(){return l})),n.d(t,"confirmActionAsync",(function(){return u})),n.d(t,"detectIEOrEdge",(function(){return p})),n.d(t,"detectIEBrowser",(function(){return c})),n.d(t,"loadFileFromBase64",(function(){return d})),n.d(t,"isMobile",(function(){return h})),n.d(t,"isShadowDOM",(function(){return f})),n.d(t,"getElement",(function(){return m})),n.d(t,"isElementVisible",(function(){return g})),n.d(t,"findScrollableParent",(function(){return y})),n.d(t,"scrollElementByChildId",(function(){return v})),n.d(t,"navigateToUrl",(function(){return b})),n.d(t,"wrapUrlForBackgroundImage",(function(){return C})),n.d(t,"createSvg",(function(){return x})),n.d(t,"getIconNameFromProxy",(function(){return w})),n.d(t,"increaseHeightByContent",(function(){return R})),n.d(t,"getOriginalEvent",(function(){return I})),n.d(t,"preventDefaults",(function(){return k})),n.d(t,"findParentByClassNames",(function(){return L})),n.d(t,"getFirstVisibleChild",(function(){return M})),n.d(t,"chooseFiles",(function(){return z}));var r=n("./src/localizablestring.ts"),o=n("./src/settings.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/global_variables_utils.ts");function a(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function l(e){return o.settings&&o.settings.confirmActionFunc?o.settings.confirmActionFunc(e):confirm(e)}function u(e,t,n,r,i){var s=function(e){e?t():n&&n()};o.settings&&o.settings.confirmActionAsync&&o.settings.confirmActionAsync(e,s,void 0,r,i)||s(l(e))}function c(){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function p(){if(void 0===p.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");p.isIEOrEdge=r>0||n>0||t>0}return p.isIEOrEdge}function d(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function h(){return s.DomWindowHelper.isAvailable()&&s.DomWindowHelper.hasOwn("orientation")}var f=function(e){return!!e&&!(!("host"in e)||!e.host)},m=function(e){var t=o.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function g(e,t){if(void 0===t&&(t=0),void 0===o.settings.environment)return!1;var n=o.settings.environment.root,r=f(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),a=-t,l=Math.max(r,s.DomWindowHelper.getInnerHeight())+t,u=i.top,c=i.bottom;return Math.max(a,u)<=Math.min(l,c)}function y(e){var t=o.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:y(e.parentElement):f(t)?t.host:t.documentElement}function v(e){var t=o.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var r=y(n);r&&setTimeout((function(){return r.dispatchEvent(new CustomEvent("scroll"))}),10)}}}function b(e){var t=s.DomWindowHelper.getLocation();e&&t&&(t.href=e)}function C(e){return e?["url(",e,")"].join(""):""}function w(e){return e&&o.settings.customIcons[e]||e}function x(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var a=o.childNodes[0],l=w(r);a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var u=o.getElementsByTagName("title")[0];i?(u||(u=s.DomDocumentHelper.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(u)),u.textContent=i):u&&o.removeChild(u)}}function E(e){return"function"!=typeof e?e:e()}function P(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function S(e){if(void 0===P(e))return e}var O="sv-focused--by-key";function T(e){var t=e.target;t&&t.classList&&t.classList.remove(O)}function _(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(O)&&n.classList.add(O)}}}function V(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function R(e,t){if(e){t||(t=function(e){return s.DomDocumentHelper.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px")}}function I(e){return e.originalEvent||e}function k(e){e.preventDefault(),e.stopPropagation()}function A(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function D(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function N(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function M(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function L(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:L(e.parentElement,t)}function j(e,t){if(void 0===t&&(t=!0),s.DomWindowHelper.isAvailable()&&s.DomDocumentHelper.isAvailable()&&e.childNodes.length>0){var n=s.DomWindowHelper.getSelection();if(0==n.rangeCount)return;var r=n.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),n.removeAllRanges(),n.addRange(r);var o=n.toString(),i=e.innerText;o=o.replace(/\r/g,""),t&&(o=o.replace(/\n/g,""),i=i.replace(/\n/g,""));var a=o.length;for(e.innerText=i,(r=s.DomDocumentHelper.getDocument().createRange()).setStart(e.firstChild,0),r.setEnd(e.firstChild,0),n.removeAllRanges(),n.addRange(r);n.toString().length<i.length-a;){var l=n.toString().length;if(n.modify("extend","forward","character"),n.toString().length==l)break}(r=n.getRangeAt(0)).setStart(r.endContainer,r.endOffset)}}function F(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),F(r,t[n])):t[n]=r}}var B=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}();function q(e,t,n,s,a){var l=new r.LocalizableString(void 0),u=o.settings.showDialog({componentName:"sv-string-viewer",data:{locStr:l,locString:l,model:l},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:e,displayMode:"popup",isFocusedContent:!1,cssClass:"sv-popup--confirm-delete"},a),c=u.footerToolbar,p=c.getActionById("apply"),d=c.getActionById("cancel");return d.title=i.surveyLocalization.getString("cancel",s),d.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",p.title=n||i.surveyLocalization.getString("ok",s),p.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",H(u),!0}function H(e){e.width="min-content"}function z(e,t){s.DomWindowHelper.isFileReaderAvailable()&&(e.value="",e.onchange=function(n){if(s.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var r=[],o=0;o<e.files.length;o++)r.push(e.files[o]);t(r)}},e.click())}function Q(e,t,n){var r=new Map,o=new Map,i=new Map,s=new Map;e.forEach((function(e){var t=n(e);if(r.has(t))throw new Error("keys must be unique");r.set(n(e),e)})),t.forEach((function(e){var t=n(e);if(o.has(t))throw new Error("keys must be unique");o.set(t,e)}));var a=[],l=[];o.forEach((function(e,t){r.has(t)?i.set(t,i.size):a.push(e)})),r.forEach((function(e,t){o.has(t)?s.set(t,s.size):l.push(e)}));var u=[];i.forEach((function(e,t){var n=s.get(t),r=o.get(t);n!==e&&u.push({item:r,movedForward:n<e})}));var c=new Array(e.length),p=0,d=Array.from(i.keys());e.forEach((function(e,t){i.has(n(e))?(c[t]=o.get(d[p]),p++):c[t]=e}));var h=new Map,f=[];c.forEach((function(e){var t=n(e);o.has(t)?f.length>0&&(h.set(t,f),f=[]):f.push(e)}));var m=new Array;return o.forEach((function(e,t){h.has(t)&&h.get(t).forEach((function(e){m.push(e)})),m.push(e)})),f.forEach((function(e){m.push(e)})),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:m}}},"./src/validator.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ValidatorResult",(function(){return c})),n.d(t,"SurveyValidator",(function(){return p})),n.d(t,"ValidatorRunner",(function(){return d})),n.d(t,"NumericValidator",(function(){return h})),n.d(t,"TextValidator",(function(){return f})),n.d(t,"AnswerCountValidator",(function(){return m})),n.d(t,"RegexValidator",(function(){return g})),n.d(t,"EmailValidator",(function(){return y})),n.d(t,"ExpressionValidator",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/error.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new i.CustomError(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(this.text,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=this.createRegExp();if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.getPropertyValue("insensitive")},set:function(e){this.setPropertyValue("insensitive",e)},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.insensitive?"i":"")},t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new c(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex",{name:"insensitive:boolean",visible:!1}],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")}})},e.exports=t()},755:function(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"createPopupModelWithListModel",(function(){return m})),n.d(t,"getActionDropdownButtonTarget",(function(){return g})),n.d(t,"BaseAction",(function(){return y})),n.d(t,"Action",(function(){return v})),n.d(t,"ActionDropdownViewModel",(function(){return b}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return t.locOwner=n,f(e,t,t)}function f(e,t,n){var r,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.hasTitle&&(a.title=e.title),o&&o(e,t)};var i=m(t,n),s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!n,i.show()}}),a=new v(s);return a.data=null===(r=i.contentComponentData)||void 0===r?void 0:r.model,a}function m(e,t){var n=new a.ListModel(e);n.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var r=t||{};r.onDispose=function(){n.dispose()};var o=new l.PopupModel("sv-list",{model:n},r);return o.isFocusedContent=n.showFilter,o.onShow=function(){r.onShow&&r.onShow(),n.scrollToSelectedItem()},o}function g(e){return null==e?void 0:e.previousElementSibling}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.rendredIdValue=t.getNextRendredId(),n.markerIconSize=16,n}return p(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout((function(){t.clearPopupTimeouts(),t.showPopup()}),e)},t.prototype.hidePopupDelayed=function(e){var t,n=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout((function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1}),e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)({defaultValue:24})],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"markerIconName",void 0),d([Object(s.property)()],t.prototype,"markerIconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isPressed",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(o.Base),v=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)"locTitle"===r||"title"===r&&n.locTitle&&n.title||(n[r]=t[r]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var n=m(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});n.cssClass="sv-popup-inner",this.popupModel=n},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose(),this.locTitleValue&&(this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0)},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(y),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",n.push(t.innerItem))),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter((function(e){return!e.disableHide})).sort((function(e,t){return e.removePriority||0-t.removePriority||0}))},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.getActionsToHide().map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e,t){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){"small"==e&&t.disableShrink||(t.mode=e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach((function(n){n===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))}))},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return m})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),m=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRenderedEvent=!0,this.onElementRenderedEventEnabled=!1,this._onElementRerendered=new v,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&i.Helpers.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach((function(t){return e.dependencies[t].dispose()}))},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return a.settings.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return(new s.JsonObject).toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){(new s.JsonObject).toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultPropertyValue(e);if(void 0!==o)return o}return n},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[e]:void 0;return r&&r.localizationName?this.getLocalizationString(r.localizationName):"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(r,t)||this.setArrayPropertyDirectly(e,t):(this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t))},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n,r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r)};if(this.isInternal)i(this);else{o||(o=this);var s=this.getSurvey();s||(s=this),i(s),s!==this&&i(this)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.doBeforeAsynRun=function(e){this.asynExpressionHash||(this.asynExpressionHash=[]);var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,n=new l.ExpressionRunner(e);return n.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},n.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},n},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return a.settings.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!0},e.prototype.disableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRenderedEvent&&this.onElementRenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,void 0)},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];if(o){var i=o.toLowerCase();if(e.hasOwnProperty(o))return!0;if(o!==i&&e.hasOwnProperty(i))return!0;var s=this.getFirstName(o);if(e.hasOwnProperty(s)){if(o===s)return!0;var a=e[s];if(null!=a){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(o,l);l[s]=a.newValue;var c=this.getValue(o,l);if(!r.Helpers.isTwoValueEquals(u,c,!1,!1,!1))return!0}}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var r=new Array,o=0,i=this.getNonNestedObjectCore(e,t,n,r);!i&&o<r.length;)o=r.length,i=this.getNonNestedObjectCore(e,t,n,r);return i},e.prototype.getNonNestedObjectCore=function(e,t,n,o){var i=this.getFirstPropertyName(t,e,n,o);i&&o.push(i);for(var s=i?[i]:null;t!=i&&e;){if("["==t[0]){var a=this.getObjInArray(e,t);if(!a)return null;e=a.value,t=a.text,s.push(a.index)}else{if(!i&&t==this.getFirstName(t))return{value:e,text:t,path:s};if(e=this.getObjectValue(e,i),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(i.length)}t&&"."==t[0]&&(t=t.substring(1)),(i=this.getFirstPropertyName(t,e,n,o))&&s.push(i)}return{value:e,text:t,path:s}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=void 0),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),i=o[0],s=i.toUpperCase();for(var a in t)if(!(Array.isArray(r)&&r.indexOf(a)>-1)){var l=a[0];if(l===s||l===i){var u=a.toLowerCase();if(u==o)return a;if(o.length<=u.length)continue;var c=o[u.length];if("."!=c&&"["!=c)continue;if(u==o.substring(0,u.length))return a}}if(n&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return l})),n.d(t,"ExpressionRunnerBase",(function(){return u})),n.d(t,"ConditionRunner",(function(){return c})),n.d(t,"ExpressionRunner",(function(){return p}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditionsParser.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new s.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return this.expression&&i.ConsoleWarnings.warn("Invalid expression: "+this.expression),null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),u=function(){function e(t){this._id=e.IdCounter++,this.expression=t}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=l.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(this.id),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(this.id)},e.IdCounter=1,e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(1==t),e.prototype.doOnComplete.call(this,t)},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t)},t}(u)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e.error=function(e){console.error(e)},e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return o}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=r.DomDocumentHelper.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/core-export.ts":function(e,t,n){"use strict";n.r(t);var r=n("survey-core");n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/react/reactSurvey.tsx");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click}));var o=n("./src/react/reactsurveymodel.tsx");n.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=n("./src/react/reactSurveyNavigationBase.tsx");n.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=n("./src/react/reacttimerpanel.tsx");n.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=n("./src/react/page.tsx");n.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=n("./src/react/row.tsx");n.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=n("./src/react/panel.tsx");n.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=n("./src/react/flow-panel.tsx");n.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=n("./src/react/reactquestion.tsx");n.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=n("./src/react/reactquestion_element.tsx");n.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=n("./src/react/reactquestion_comment.tsx");n.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=n("./src/react/reactquestion_checkbox.tsx");n.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var m=n("./src/react/reactquestion_ranking.tsx");n.d(t,"SurveyQuestionRanking",(function(){return m.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return m.SurveyQuestionRankingItem})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return m.SurveyQuestionRankingItemContent}));var g=n("./src/react/components/rating/rating-item.tsx");n.d(t,"RatingItem",(function(){return g.RatingItem}));var y=n("./src/react/components/rating/rating-item-star.tsx");n.d(t,"RatingItemStar",(function(){return y.RatingItemStar}));var v=n("./src/react/components/rating/rating-item-smiley.tsx");n.d(t,"RatingItemSmiley",(function(){return v.RatingItemSmiley}));var b=n("./src/react/components/rating/rating-dropdown-item.tsx");n.d(t,"RatingDropdownItem",(function(){return b.RatingDropdownItem}));var C=n("./src/react/tagbox-filter.tsx");n.d(t,"TagboxFilterString",(function(){return C.TagboxFilterString}));var w=n("./src/react/dropdown-item.tsx");n.d(t,"SurveyQuestionOptionItem",(function(){return w.SurveyQuestionOptionItem}));var x=n("./src/react/dropdown-base.tsx");n.d(t,"SurveyQuestionDropdownBase",(function(){return x.SurveyQuestionDropdownBase}));var E=n("./src/react/reactquestion_dropdown.tsx");n.d(t,"SurveyQuestionDropdown",(function(){return E.SurveyQuestionDropdown}));var P=n("./src/react/tagbox-item.tsx");n.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var S=n("./src/react/reactquestion_tagbox.tsx");n.d(t,"SurveyQuestionTagbox",(function(){return S.SurveyQuestionTagbox}));var O=n("./src/react/dropdown-select.tsx");n.d(t,"SurveyQuestionDropdownSelect",(function(){return O.SurveyQuestionDropdownSelect}));var T=n("./src/react/reactquestion_matrix.tsx");n.d(t,"SurveyQuestionMatrix",(function(){return T.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return T.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionMatrixCell",(function(){return T.SurveyQuestionMatrixCell}));var _=n("./src/react/reactquestion_html.tsx");n.d(t,"SurveyQuestionHtml",(function(){return _.SurveyQuestionHtml}));var V=n("./src/react/reactquestion_file.tsx");n.d(t,"SurveyQuestionFile",(function(){return V.SurveyQuestionFile}));var R=n("./src/react/components/file/file-choose-button.tsx");n.d(t,"SurveyFileChooseButton",(function(){return R.SurveyFileChooseButton}));var I=n("./src/react/components/file/file-preview.tsx");n.d(t,"SurveyFilePreview",(function(){return I.SurveyFilePreview}));var k=n("./src/react/reactquestion_multipletext.tsx");n.d(t,"SurveyQuestionMultipleText",(function(){return k.SurveyQuestionMultipleText}));var A=n("./src/react/reactquestion_radiogroup.tsx");n.d(t,"SurveyQuestionRadiogroup",(function(){return A.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return A.SurveyQuestionRadioItem}));var D=n("./src/react/reactquestion_text.tsx");n.d(t,"SurveyQuestionText",(function(){return D.SurveyQuestionText}));var N=n("./src/react/boolean.tsx");n.d(t,"SurveyQuestionBoolean",(function(){return N.SurveyQuestionBoolean}));var M=n("./src/react/boolean-checkbox.tsx");n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return M.SurveyQuestionBooleanCheckbox}));var L=n("./src/react/boolean-radio.tsx");n.d(t,"SurveyQuestionBooleanRadio",(function(){return L.SurveyQuestionBooleanRadio}));var j=n("./src/react/reactquestion_empty.tsx");n.d(t,"SurveyQuestionEmpty",(function(){return j.SurveyQuestionEmpty}));var F=n("./src/react/reactquestion_matrixdropdownbase.tsx");n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return F.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return F.SurveyQuestionMatrixDropdownBase}));var B=n("./src/react/reactquestion_matrixdropdown.tsx");n.d(t,"SurveyQuestionMatrixDropdown",(function(){return B.SurveyQuestionMatrixDropdown}));var q=n("./src/react/reactquestion_matrixdynamic.tsx");n.d(t,"SurveyQuestionMatrixDynamic",(function(){return q.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return q.SurveyQuestionMatrixDynamicAddButton}));var H=n("./src/react/reactquestion_paneldynamic.tsx");n.d(t,"SurveyQuestionPanelDynamic",(function(){return H.SurveyQuestionPanelDynamic}));var z=n("./src/react/progress.tsx");n.d(t,"SurveyProgress",(function(){return z.SurveyProgress}));var Q=n("./src/react/progressButtons.tsx");n.d(t,"SurveyProgressButtons",(function(){return Q.SurveyProgressButtons}));var U=n("./src/react/progressToc.tsx");n.d(t,"SurveyProgressToc",(function(){return U.SurveyProgressToc}));var W=n("./src/react/reactquestion_rating.tsx");n.d(t,"SurveyQuestionRating",(function(){return W.SurveyQuestionRating}));var $=n("./src/react/rating-dropdown.tsx");n.d(t,"SurveyQuestionRatingDropdown",(function(){return $.SurveyQuestionRatingDropdown}));var G=n("./src/react/reactquestion_expression.tsx");n.d(t,"SurveyQuestionExpression",(function(){return G.SurveyQuestionExpression}));var J=n("./src/react/react-popup-survey.tsx");n.d(t,"PopupSurvey",(function(){return J.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return J.SurveyWindow}));var Y=n("./src/react/reactquestion_factory.tsx");n.d(t,"ReactQuestionFactory",(function(){return Y.ReactQuestionFactory}));var K=n("./src/react/element-factory.tsx");n.d(t,"ReactElementFactory",(function(){return K.ReactElementFactory}));var X=n("./src/react/imagepicker.tsx");n.d(t,"SurveyQuestionImagePicker",(function(){return X.SurveyQuestionImagePicker}));var Z=n("./src/react/image.tsx");n.d(t,"SurveyQuestionImage",(function(){return Z.SurveyQuestionImage}));var ee=n("./src/react/signaturepad.tsx");n.d(t,"SurveyQuestionSignaturePad",(function(){return ee.SurveyQuestionSignaturePad}));var te=n("./src/react/reactquestion_buttongroup.tsx");n.d(t,"SurveyQuestionButtonGroup",(function(){return te.SurveyQuestionButtonGroup}));var ne=n("./src/react/reactquestion_custom.tsx");n.d(t,"SurveyQuestionCustom",(function(){return ne.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return ne.SurveyQuestionComposite}));var re=n("./src/react/components/popup/popup.tsx");n.d(t,"Popup",(function(){return re.Popup}));var oe=n("./src/react/components/list/list-item-content.tsx");n.d(t,"ListItemContent",(function(){return oe.ListItemContent}));var ie=n("./src/react/components/list/list-item-group.tsx");n.d(t,"ListItemGroup",(function(){return ie.ListItemGroup}));var se=n("./src/react/components/list/list.tsx");n.d(t,"List",(function(){return se.List}));var ae=n("./src/react/components/title/title-actions.tsx");n.d(t,"TitleActions",(function(){return ae.TitleActions}));var le=n("./src/react/components/title/title-element.tsx");n.d(t,"TitleElement",(function(){return le.TitleElement}));var ue=n("./src/react/components/action-bar/action-bar.tsx");n.d(t,"SurveyActionBar",(function(){return ue.SurveyActionBar}));var ce=n("./src/react/components/survey-header/logo-image.tsx");n.d(t,"LogoImage",(function(){return ce.LogoImage}));var pe=n("./src/react/components/survey-header/survey-header.tsx");n.d(t,"SurveyHeader",(function(){return pe.SurveyHeader}));var de=n("./src/react/components/svg-icon/svg-icon.tsx");n.d(t,"SvgIcon",(function(){return de.SvgIcon}));var he=n("./src/react/components/matrix-actions/remove-button/remove-button.tsx");n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return he.SurveyQuestionMatrixDynamicRemoveButton}));var fe=n("./src/react/components/matrix-actions/detail-button/detail-button.tsx");n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return fe.SurveyQuestionMatrixDetailButton}));var me=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return me.SurveyQuestionMatrixDynamicDragDropIcon}));var ge=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return ge.SurveyQuestionPanelDynamicAddButton}));var ye=n("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return ye.SurveyQuestionPanelDynamicRemoveButton}));var ve=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return ve.SurveyQuestionPanelDynamicPrevButton}));var be=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return be.SurveyQuestionPanelDynamicNextButton}));var Ce=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return Ce.SurveyQuestionPanelDynamicProgressText}));var we=n("./src/react/components/survey-actions/survey-nav-button.tsx");n.d(t,"SurveyNavigationButton",(function(){return we.SurveyNavigationButton}));var xe=n("./src/react/components/question-error.tsx");n.d(t,"QuestionErrorComponent",(function(){return xe.QuestionErrorComponent}));var Ee=n("./src/react/components/matrix/row.tsx");n.d(t,"MatrixRow",(function(){return Ee.MatrixRow}));var Pe=n("./src/react/components/skeleton.tsx");n.d(t,"Skeleton",(function(){return Pe.Skeleton}));var Se=n("./src/react/components/notifier.tsx");n.d(t,"NotifierComponent",(function(){return Se.NotifierComponent}));var Oe=n("./src/react/components/components-container.tsx");n.d(t,"ComponentsContainer",(function(){return Oe.ComponentsContainer}));var Te=n("./src/react/components/character-counter.tsx");n.d(t,"CharacterCounterComponent",(function(){return Te.CharacterCounterComponent}));var _e=n("./src/react/components/header.tsx");n.d(t,"HeaderMobile",(function(){return _e.HeaderMobile})),n.d(t,"HeaderCell",(function(){return _e.HeaderCell})),n.d(t,"Header",(function(){return _e.Header}));var Ve=n("./src/react/string-viewer.tsx");n.d(t,"SurveyLocStringViewer",(function(){return Ve.SurveyLocStringViewer}));var Re=n("./src/react/string-editor.tsx");n.d(t,"SurveyLocStringEditor",(function(){return Re.SurveyLocStringEditor}));var Ie=n("./src/react/components/loading-indicator.tsx");n.d(t,"LoadingIndicatorComponent",(function(){return Ie.LoadingIndicatorComponent}));var ke=n("./src/react/svgbundle.tsx");n.d(t,"SvgBundleComponent",(function(){return ke.SvgBundleComponent}))},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/react-ui-model.ts");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click})),n.d(t,"ReactSurveyElementsWrapper",(function(){return r.ReactSurveyElementsWrapper})),n.d(t,"SurveyNavigationBase",(function(){return r.SurveyNavigationBase})),n.d(t,"SurveyTimerPanel",(function(){return r.SurveyTimerPanel})),n.d(t,"SurveyPage",(function(){return r.SurveyPage})),n.d(t,"SurveyRow",(function(){return r.SurveyRow})),n.d(t,"SurveyPanel",(function(){return r.SurveyPanel})),n.d(t,"SurveyFlowPanel",(function(){return r.SurveyFlowPanel})),n.d(t,"SurveyQuestion",(function(){return r.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return r.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return r.SurveyQuestionAndErrorsCell})),n.d(t,"ReactSurveyElement",(function(){return r.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return r.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return r.SurveyQuestionElementBase})),n.d(t,"SurveyQuestionCommentItem",(function(){return r.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return r.SurveyQuestionComment})),n.d(t,"SurveyQuestionCheckbox",(function(){return r.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return r.SurveyQuestionCheckboxItem})),n.d(t,"SurveyQuestionRanking",(function(){return r.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return r.SurveyQuestionRankingItem})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return r.SurveyQuestionRankingItemContent})),n.d(t,"RatingItem",(function(){return r.RatingItem})),n.d(t,"RatingItemStar",(function(){return r.RatingItemStar})),n.d(t,"RatingItemSmiley",(function(){return r.RatingItemSmiley})),n.d(t,"RatingDropdownItem",(function(){return r.RatingDropdownItem})),n.d(t,"TagboxFilterString",(function(){return r.TagboxFilterString})),n.d(t,"SurveyQuestionOptionItem",(function(){return r.SurveyQuestionOptionItem})),n.d(t,"SurveyQuestionDropdownBase",(function(){return r.SurveyQuestionDropdownBase})),n.d(t,"SurveyQuestionDropdown",(function(){return r.SurveyQuestionDropdown})),n.d(t,"SurveyQuestionTagboxItem",(function(){return r.SurveyQuestionTagboxItem})),n.d(t,"SurveyQuestionTagbox",(function(){return r.SurveyQuestionTagbox})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return r.SurveyQuestionDropdownSelect})),n.d(t,"SurveyQuestionMatrix",(function(){return r.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return r.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionMatrixCell",(function(){return r.SurveyQuestionMatrixCell})),n.d(t,"SurveyQuestionHtml",(function(){return r.SurveyQuestionHtml})),n.d(t,"SurveyQuestionFile",(function(){return r.SurveyQuestionFile})),n.d(t,"SurveyFileChooseButton",(function(){return r.SurveyFileChooseButton})),n.d(t,"SurveyFilePreview",(function(){return r.SurveyFilePreview})),n.d(t,"SurveyQuestionMultipleText",(function(){return r.SurveyQuestionMultipleText})),n.d(t,"SurveyQuestionRadiogroup",(function(){return r.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return r.SurveyQuestionRadioItem})),n.d(t,"SurveyQuestionText",(function(){return r.SurveyQuestionText})),n.d(t,"SurveyQuestionBoolean",(function(){return r.SurveyQuestionBoolean})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return r.SurveyQuestionBooleanCheckbox})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return r.SurveyQuestionBooleanRadio})),n.d(t,"SurveyQuestionEmpty",(function(){return r.SurveyQuestionEmpty})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return r.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return r.SurveyQuestionMatrixDropdownBase})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return r.SurveyQuestionMatrixDropdown})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return r.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return r.SurveyQuestionMatrixDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return r.SurveyQuestionPanelDynamic})),n.d(t,"SurveyProgress",(function(){return r.SurveyProgress})),n.d(t,"SurveyProgressButtons",(function(){return r.SurveyProgressButtons})),n.d(t,"SurveyProgressToc",(function(){return r.SurveyProgressToc})),n.d(t,"SurveyQuestionRating",(function(){return r.SurveyQuestionRating})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return r.SurveyQuestionRatingDropdown})),n.d(t,"SurveyQuestionExpression",(function(){return r.SurveyQuestionExpression})),n.d(t,"PopupSurvey",(function(){return r.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return r.SurveyWindow})),n.d(t,"ReactQuestionFactory",(function(){return r.ReactQuestionFactory})),n.d(t,"ReactElementFactory",(function(){return r.ReactElementFactory})),n.d(t,"SurveyQuestionImagePicker",(function(){return r.SurveyQuestionImagePicker})),n.d(t,"SurveyQuestionImage",(function(){return r.SurveyQuestionImage})),n.d(t,"SurveyQuestionSignaturePad",(function(){return r.SurveyQuestionSignaturePad})),n.d(t,"SurveyQuestionButtonGroup",(function(){return r.SurveyQuestionButtonGroup})),n.d(t,"SurveyQuestionCustom",(function(){return r.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return r.SurveyQuestionComposite})),n.d(t,"Popup",(function(){return r.Popup})),n.d(t,"ListItemContent",(function(){return r.ListItemContent})),n.d(t,"ListItemGroup",(function(){return r.ListItemGroup})),n.d(t,"List",(function(){return r.List})),n.d(t,"TitleActions",(function(){return r.TitleActions})),n.d(t,"TitleElement",(function(){return r.TitleElement})),n.d(t,"SurveyActionBar",(function(){return r.SurveyActionBar})),n.d(t,"LogoImage",(function(){return r.LogoImage})),n.d(t,"SurveyHeader",(function(){return r.SurveyHeader})),n.d(t,"SvgIcon",(function(){return r.SvgIcon})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return r.SurveyQuestionMatrixDynamicRemoveButton})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return r.SurveyQuestionMatrixDetailButton})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return r.SurveyQuestionMatrixDynamicDragDropIcon})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return r.SurveyQuestionPanelDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return r.SurveyQuestionPanelDynamicRemoveButton})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return r.SurveyQuestionPanelDynamicPrevButton})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return r.SurveyQuestionPanelDynamicNextButton})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return r.SurveyQuestionPanelDynamicProgressText})),n.d(t,"SurveyNavigationButton",(function(){return r.SurveyNavigationButton})),n.d(t,"QuestionErrorComponent",(function(){return r.QuestionErrorComponent})),n.d(t,"MatrixRow",(function(){return r.MatrixRow})),n.d(t,"Skeleton",(function(){return r.Skeleton})),n.d(t,"NotifierComponent",(function(){return r.NotifierComponent})),n.d(t,"ComponentsContainer",(function(){return r.ComponentsContainer})),n.d(t,"CharacterCounterComponent",(function(){return r.CharacterCounterComponent})),n.d(t,"HeaderMobile",(function(){return r.HeaderMobile})),n.d(t,"HeaderCell",(function(){return r.HeaderCell})),n.d(t,"Header",(function(){return r.Header})),n.d(t,"SurveyLocStringViewer",(function(){return r.SurveyLocStringViewer})),n.d(t,"SurveyLocStringEditor",(function(){return r.SurveyLocStringEditor})),n.d(t,"LoadingIndicatorComponent",(function(){return r.LoadingIndicatorComponent})),n.d(t,"SvgBundleComponent",(function(){return r.SvgBundleComponent}));var o=n("./src/entries/core-export.ts");n.d(t,"SurveyModel",(function(){return o.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),n.d(t,"settings",(function(){return o.settings})),n.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),n.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=n("survey-core");n.d(t,"Model",(function(){return i.SurveyModel}));var s=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.11.5","survey-react-ui")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:An},c=An,p=function(e,t){return rr(e,t,!0)},d="||",h=_n("||",!1),f="or",m=_n("or",!0),g=function(){return"or"},y="&&",v=_n("&&",!1),b="and",C=_n("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},E="<=",P=_n("<=",!1),S="lessorequal",O=_n("lessorequal",!0),T=function(){return"lessorequal"},_=">=",V=_n(">=",!1),R="greaterorequal",I=_n("greaterorequal",!0),k=function(){return"greaterorequal"},A="==",D=_n("==",!1),N="equal",M=_n("equal",!0),L=function(){return"equal"},j="=",F=_n("=",!1),B="!=",q=_n("!=",!1),H="notequal",z=_n("notequal",!0),Q=function(){return"notequal"},U="<",W=_n("<",!1),$="less",G=_n("less",!0),J=function(){return"less"},Y=">",K=_n(">",!1),X="greater",Z=_n("greater",!0),ee=function(){return"greater"},te="+",ne=_n("+",!1),re=function(){return"plus"},oe="-",ie=_n("-",!1),se=function(){return"minus"},ae="*",le=_n("*",!1),ue=function(){return"mul"},ce="/",pe=_n("/",!1),de=function(){return"div"},he="%",fe=_n("%",!1),me=function(){return"mod"},ge="^",ye=_n("^",!1),ve="power",be=_n("power",!0),Ce=function(){return"power"},we="*=",xe=_n("*=",!1),Ee="contains",Pe=_n("contains",!0),Se="contain",Oe=_n("contain",!0),Te=function(){return"contains"},_e="notcontains",Ve=_n("notcontains",!0),Re="notcontain",Ie=_n("notcontain",!0),ke=function(){return"notcontains"},Ae="anyof",De=_n("anyof",!0),Ne=function(){return"anyof"},Me="allof",Le=_n("allof",!0),je=function(){return"allof"},Fe="(",Be=_n("(",!1),qe=")",He=_n(")",!1),ze=function(e){return e},Qe=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=_n("!",!1),$e="negate",Ge=_n("negate",!0),Je=function(e){return new o.UnaryOperand(e,"negate")},Ye=function(e,t){return new o.UnaryOperand(e,t)},Ke="empty",Xe=_n("empty",!0),Ze=function(){return"empty"},et="notempty",tt=_n("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=_n("undefined",!1),it="null",st=_n("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=_n("{",!1),pt="}",dt=_n("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=_n("''",!1),yt=function(){return""},vt='""',bt=_n('""',!1),Ct="'",wt=_n("'",!1),xt=function(e){return"'"+e+"'"},Et='"',Pt=_n('"',!1),St="[",Ot=_n("[",!1),Tt="]",_t=_n("]",!1),Vt=function(e){return e},Rt=",",It=_n(",",!1),kt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},At="true",Dt=_n("true",!0),Nt=function(){return!0},Mt="false",Lt=_n("false",!0),jt=function(){return!1},Ft="0x",Bt=_n("0x",!1),qt=function(){return parseInt(Tn(),16)},Ht=/^[\-]/,zt=Vn(["-"],!1,!1),Qt=function(e,t){return null==e?t:-t},Ut=".",Wt=_n(".",!1),$t=function(){return parseFloat(Tn())},Gt=function(){return parseInt(Tn(),10)},Jt="0",Yt=_n("0",!1),Kt=function(){return 0},Xt=function(e){return e.join("")},Zt="\\'",en=_n("\\'",!1),tn=function(){return"'"},nn='\\"',rn=_n('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=Vn(['"',"'"],!0,!1),ln=function(){return Tn()},un=/^[^{}]/,cn=Vn(["{","}"],!0,!1),pn=/^[0-9]/,dn=Vn([["0","9"]],!1,!1),hn=/^[1-9]/,fn=Vn([["1","9"]],!1,!1),mn=/^[a-zA-Z_]/,gn=Vn([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=Vn([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],En=0,Pn=[],Sn=0,On={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Tn(){return e.substring(wn,Cn)}function _n(e,t){return{type:"literal",text:e,ignoreCase:t}}function Vn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function kn(e){Cn<En||(Cn>En&&(En=Cn,Pn=[]),Pn.push(e))}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Nn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Dn(){var t,n,r=34*Cn+1,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Sn&&kn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Sn&&kn(m))),n!==l&&(wn=t,n=g()),t=n,On[r]={nextPos:Cn,result:t},t)}function Nn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Mn(){var t,n,r=34*Cn+3,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Sn&&kn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Sn&&kn(C))),n!==l&&(wn=t,n=w()),t=n,On[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function jn(){var t,n,r=34*Cn+5,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===E?(n=E,Cn+=2):(n=l,0===Sn&&kn(P)),n===l&&(e.substr(Cn,11).toLowerCase()===S?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(O))),n!==l&&(wn=t,n=T()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===_?(n=_,Cn+=2):(n=l,0===Sn&&kn(V)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Sn&&kn(I))),n!==l&&(wn=t,n=k()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===A?(n=A,Cn+=2):(n=l,0===Sn&&kn(D)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=j,Cn++):(n=l,0===Sn&&kn(F)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Sn&&kn(q)),n===l&&(e.substr(Cn,8).toLowerCase()===H?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(z))),n!==l&&(wn=t,n=Q()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Sn&&kn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===$?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(G))),n!==l&&(wn=t,n=J()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=Y,Cn++):(n=l,0===Sn&&kn(K)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Z))),n!==l&&(wn=t,n=ee()),t=n)))))),On[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Sn&&kn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Sn&&kn(ie)),n!==l&&(wn=t,n=se()),t=n),On[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+9,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Sn&&kn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Sn&&kn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Sn&&kn(fe)),n!==l&&(wn=t,n=me()),t=n)),On[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+11,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=ge,Cn++):(n=l,0===Sn&&kn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(be))),n!==l&&(wn=t,n=Ce()),t=n,On[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=$n())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Sn&&kn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Ee?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(Pe)),n===l&&(e.substr(Cn,7).toLowerCase()===Se?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Oe)))),n!==l&&(wn=t,n=Te()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===_e?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(Ve)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Sn&&kn(Ie))),n!==l&&(wn=t,n=ke()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ae?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(De)),n!==l&&(wn=t,n=Ne()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Me?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Le)),n!==l&&(wn=t,n=je()),t=n))),On[r]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+14,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Fe,Cn++):(n=l,0===Sn&&kn(Be)),n!==l&&nr()!==l&&(r=An())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=qe,Cn++):(o=l,0===Sn&&kn(He)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=On[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Zn())!==l?(40===e.charCodeAt(Cn)?(r=Fe,Cn++):(r=l,0===Sn&&kn(Be)),r!==l&&(o=Jn())!==l?(41===e.charCodeAt(Cn)?(i=qe,Cn++):(i=l,0===Sn&&kn(He)),i===l&&(i=null),i!==l?(wn=t,t=n=Qe(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),On[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Sn&&kn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===$e?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Sn&&kn(Ge))),n!==l&&nr()!==l&&(r=An())!==l?(wn=t,t=n=Je(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=Gn())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ke?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Xe)),n!==l&&(wn=t,n=Ze()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(tt)),n!==l&&(wn=t,n=nt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ye(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=Gn())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=St,Cn++):(n=l,0===Sn&&kn(Ot)),n!==l&&(r=Jn())!==l?(93===e.charCodeAt(Cn)?(o=Tt,Cn++):(o=l,0===Sn&&kn(_t)),o!==l?(wn=t,t=n=Vt(r)):(Cn=t,t=l)):(Cn=t,t=l),On[i]={nextPos:Cn,result:t},t)}()))),On[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+18,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Sn&&kn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Sn&&kn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===At?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(Dt)),n!==l&&(wn=t,n=Nt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Mt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Lt)),n!==l&&(wn=t,n=jt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===Ft?(n=Ft,Cn+=2):(n=l,0===Sn&&kn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=qt()):(Cn=t,t=l),t===l&&(t=Cn,Ht.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Sn&&kn(Wt)),r!==l&&er()!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn));else t=l;return On[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Jt,Cn++):(n=l,0===Sn&&kn(Yt)),n!==l&&(wn=t,n=Kt()),t=n)),On[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Qt(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Zn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===mt?(n=mt,Cn+=2):(n=l,0===Sn&&kn(gt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Sn&&kn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Sn&&kn(wt)),n!==l&&(r=Yn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Sn&&kn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Et,Cn++):(n=l,0===Sn&&kn(Pt)),n!==l&&(r=Yn())!==l?(34===e.charCodeAt(Cn)?(o=Et,Cn++):(o=l,0===Sn&&kn(Pt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),On[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Sn&&kn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Sn&&kn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),On[i]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=On[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=An())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=kt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return On[c]={nextPos:Cn,result:t},t}function Yn(){var e,t,n,r=34*Cn+26,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Kn())!==l)for(;n!==l;)t.push(n),n=Kn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}function Kn(){var t,n,r=34*Cn+27,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Zt?(n=Zt,Cn+=2):(n=l,0===Sn&&kn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Sn&&kn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(an)),n!==l&&(wn=t,n=ln()),t=n)),On[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(cn)),n!==l&&(wn=t,n=ln()),t=n,On[r]={nextPos:Cn,result:t},t)}function Zn(){var e,t,n,r,o,i,s=34*Cn+29,a=On[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return On[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn));else t=l;return On[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn)),n!==l)for(;n!==l;)t.push(n),mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn));else t=l;return On[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=On[r];if(o)return Cn=o.nextPos,o.result;for(Sn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));return Sn--,t===l&&(n=l,0===Sn&&kn(yn)),On[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&kn({type:"end"}),r=Pn,i=En<e.length?e.charAt(En):null,a=En<e.length?In(En,En+1):In(En,En),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return m})),n.d(t,"OperandMaker",(function(){return g}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=g.unaryFunctions[n],null==r.consumer&&g.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]&&(e.length<2||"."!==e[1]&&","!==e[1])?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n,r){return!e.binaryFunctions.equal(t,n,r)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return a})),n.d(t,"registerFunction",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditions.ts"),a=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n,r){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return i.ConsoleWarnings.warn("Unknown function name: "+e),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(t,r)},e.Instance=new e,e}(),l=a.Instance.register;function u(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)u(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function c(e){var t=[];u(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function p(e,t){var n=[];u(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function d(e,t,n,o,i,s){return!e||r.Helpers.isValueEmpty(e[t])||s&&!s.run(e)?n:o(n,i?"string"==typeof(a=e[t])?r.Helpers.isNumber(a)?r.Helpers.getNumber(a):void 0:a:1);var a}function h(e,t,n,r){void 0===r&&(r=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var n=e[0];if(!n)return null;if(!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;var r=e[1];if("string"!=typeof r&&!(r instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"==typeof o||o instanceof String||(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:n,name:r,expression:o}}(e,t);if(o){var i=o.expression?new s.ConditionRunner(o.expression):void 0;i&&i.isAsync&&(i=void 0);var a=void 0;if(Array.isArray(o.data))for(var l=0;l<o.data.length;l++)a=d(o.data[l],o.name,a,n,r,i);else for(var u in o.data)a=d(o.data[u],o.name,a,n,r,i);return a}}function f(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==n?n:0}function m(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==n?n:0}function g(e,t,n){if("days"===n)return b([e,t]);var r=e?new Date(e):new Date,o=t?new Date(t):new Date;n=n||"years";var i=12*(o.getFullYear()-r.getFullYear())+o.getMonth()-r.getMonth();return o.getDate()<r.getDate()&&(i-=1),"months"===n?i:~~(i/12)}function y(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function v(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function b(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}function C(e){var t=v(void 0);return e&&e[0]&&(t=new Date(e[0])),t}function w(e,t){if(e&&t){for(var n=["row","panel","survey"],r=0;r<n.length;r++){var o=e[n[r]];if(o&&o.getQuestionByName){var i=o.getQuestionByName(t);if(i)return i}}return null}}a.Instance.register("sum",c),a.Instance.register("min",(function(e){return p(e,!0)})),a.Instance.register("max",(function(e){return p(e,!1)})),a.Instance.register("count",(function(e){var t=[];return u(e,t),t.length})),a.Instance.register("avg",(function(e){var t=[];u(e,t);var n=c(e);return t.length>0?n/t.length:0})),a.Instance.register("sumInArray",f),a.Instance.register("minInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),a.Instance.register("maxInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),a.Instance.register("countInArray",m),a.Instance.register("avgInArray",(function(e,t){var n=m(e,t);return 0==n?0:f(e,t)/n})),a.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),a.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),a.Instance.register("age",(function(e){return!Array.isArray(e)||e.length<1||!e[0]?null:g(e[0],void 0,(e.length>1?e[1]:"")||"years")})),a.Instance.register("dateDiff",(function(e){return!Array.isArray(e)||e.length<2||!e[0]||!e[1]?null:g(e[0],e[1],(e.length>2?e[2]:"")||"days")})),a.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!y(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return y(n)})),a.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),a.Instance.register("currentDate",(function(){return new Date})),a.Instance.register("today",v),a.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),a.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),a.Instance.register("diffDays",b),a.Instance.register("year",(function(e){return C(e).getFullYear()})),a.Instance.register("month",(function(e){return C(e).getMonth()+1})),a.Instance.register("day",(function(e){return C(e).getDate()})),a.Instance.register("weekday",(function(e){return C(e).getDay()})),a.Instance.register("displayValue",(function(e){var t=w(this,e[0]);return t?t.displayValue:""})),a.Instance.register("propertyValue",(function(e){if(2===e.length&&e[0]&&e[1]){var t=w(this,e[0]);return t?t[e[1]]:void 0}})),a.Instance.register("substring",(function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var n=e[1];if(!r.Helpers.isNumber(n))return"";var o=e.length>2?e[2]:void 0;return r.Helpers.isNumber(o)?t.substring(n,o):t.substring(n)}))},"./src/global_variables_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DomWindowHelper",(function(){return r})),n.d(t,"DomDocumentHelper",(function(){return o}));var r=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}()},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),r=t.split("."),o=n.length,i=r.length,s=0;s<o&&s<i;s++){var a=n[s],l=r[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return m})),n.d(t,"JsonMetadata",(function(){return g})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonRequiredArrayPropertyError",(function(){return E})),n.d(t,"JsonIncorrectPropertyValueError",(function(){return P})),n.d(t,"JsonObject",(function(){return S})),n.d(t,"Serializer",(function(){return O}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);if(!r){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),r=e.createLocalizableString(n,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback)}}function c(e){return void 0===e&&(e={}),function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&O.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){var n=this.getDefaultValue(e);return s.Helpers.isValueEmpty(n)?this.isLocalizable?null==t:!1===t&&("boolean"==this.type||"switch"==this.type)||""===t||s.Helpers.isValueEmpty(t):s.Helpers.isTwoValueEquals(t,n,!1,!0,!1)},e.prototype.getSerializableValue=function(e){return this.onSerializeValue?this.onSerializeValue(e):this.getValue(e)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&O.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?O.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||s.Helpers.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.defaultValue;var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(O.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=O.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?O.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!O.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=O.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=O.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),r=O.findProperty(n.getType(),t);if(r)return this.getObjPropertyValueCore(n,r)}var o=O.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new m(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e),o=r.length-1;o>=0;o--)this.findProperty(t,r[o].name)&&r.splice(o,1);return 0===r.length?n:[].concat(n).concat(r)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var r=this;n.forEach((function(n){r.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&r.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&r.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)}))},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,r){var o={configurable:!0,get:function(){return t[n]}};r||(o.set=function(e){t[n]=e}),Object.defineProperty(e,n,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var r=t+"-"+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<o.length;u++){var c=o[u];!i[c.name]&&n.indexOf(c.name)<0&&l.push(c)}return this.dynamicPropsCache[r]=l,l},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=O.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&O.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=new Array;return e.forEach((function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)})),t},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+t+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.baseClassName=t,o.type=n,o.message=r,o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),E=function(e){function t(t,n){var r=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(e){function t(t,n){var r=e.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+t.name+"'.")||this;return r.property=t,r.value=n,r}return a(t,e),t}(y),S=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)},e.prototype.toObjectCore=function(t,n,r){if(t){var o=null,i=void 0,s=!0;if(n.getType&&(i=n.getType(),o=O.getProperties(i),s=!!i&&!O.isDescendantOf(i,"itemvalue")),o){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(t),o=this.addDynamicProperties(n,t,o),this.options=r,t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var l=this.findProperty(o,a);l?this.valueToObj(t[a],n,l,t,r):s&&this.addNewError(new v(a.toString(),i),t,n)}else n[a]=t[a];this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType()));var i=!0===r;return r&&!0!==r||(r={}),i&&(r.storeDefaults=i),this.propertiesToJson(t,O.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return O.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){var r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}var o=this.getDynamicProperties(e);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.propertiesToJson=function(e,t,n,r){for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){r||(r={}),!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r)},e.prototype.valueToJsonCore=function(e,t,n,r){var o=n.getSerializedProperty(e,r.version);if(o&&o!==n)this.valueToJsonCore(e,t,o,r);else{var i=n.getSerializableValue(e);if(r.storeDefaults||!n.isDefaultValueByObj(e,i)){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],n,r));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,n,r);if(null!=i){var l=n.getSerializedName(r.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(r.storeDefaults&&u||!n.isDefaultValueByObj(e,i))&&(O.onSerializingProperty&&O.onSerializingProperty(e,n,i,t)||(t[l]=this.removePosOnValueToJson(n,i)))}}}},e.prototype.valueToObj=function(e,t,n,r,o){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else{if(n.isArray&&!Array.isArray(e)&&e){e=[e];var i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new E(i,t.getType()),r||e,t)}if(this.isValueArray(e))this.valueToArray(e,t,n.name,n,o);else{var s=this.createNewObj(e,n);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),s.error||(null!=n?(n.setValue(t,e,this),o&&o.validatePropertyValues&&(n.validateValue(e)||this.addNewError(new P(n,e),r,t))):t[n.name]=e)}}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if("object"==typeof t)for(var r in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[r])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(e,t){var n={newObj:null,error:null},r=this.getClassNameForNewObj(e,t);return n.newObj=r?O.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var n=O.findClass(e.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var i=r[o];if(s.Helpers.isValueEmpty(i.defaultValue)&&!t[i.name])return new x(i.name,e.getType())}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r,o){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r,o),t[n]||(t[n]=i)}},e.prototype.addValuesIntoArray=function(e,t,n,r){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,r)):i.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),O=S.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s){var l=e.call(this)||this;if(l.onSelectionChanged=r,l.allowSelection=o,l.elementId=s,l.onItemClick=function(e){if(!l.isItemDisabled(e)){l.isExpanded=!1,l.allowSelection&&(l.selectedItem=e),l.onSelectionChanged&&l.onSelectionChanged(e);var t=e.action;t&&t(e)}},l.onItemHover=function(e){l.mouseOverHandler(e)},l.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},l.isItemSelected=function(e){return l.areSameItems(l.selectedItem,e)},l.isItemFocused=function(e){return l.areSameItems(l.focusedItem,e)},l.getListClass=function(){return(new a.CssClassBuilder).append(l.cssClasses.itemsContainer).append(l.cssClasses.itemsContainerFiltering,!!l.filterString&&l.visibleActions.length!==l.visibleItems.length).toString()},l.getItemClass=function(e){return(new a.CssClassBuilder).append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!e.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(e)).append(l.cssClasses.itemFocused,l.isItemFocused(e)).append(l.cssClasses.itemSelected,l.isItemSelected(e)).append(l.cssClasses.itemGroup,e.hasSubItems).append(l.cssClasses.itemHovered,e.isHovered).append(l.cssClasses.itemTextWrap,l.textWrapEnabled).append(e.css).toString()},l.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},-1!==Object.keys(n).indexOf("items")){var u=n;Object.keys(u).forEach((function(e){switch(e){case"items":l.setItems(u.items);break;case"onFilterStringChangedCallback":l.setOnFilterStringChangedCallback(u.onFilterStringChangedCallback);break;case"onTextSearchCallback":l.setOnTextSearchCallback(u.onTextSearchCallback);break;default:l[e]=u[e]}}))}else l.setItems(n),l.selectedItem=i;return l}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var r=n.toLocaleLowerCase();return(r=c.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return t.forEach((function(e){n.push(e),e.items&&e.items.forEach((function(t){var r=new s.Action(t);r.iconName||(r.iconName=e.iconName),n.push(r)}))})),n}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener((function(){e.hidePopup()}))},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return u})),n.d(t,"LocalizableStrings",(function(){return c}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=n("./src/jsonobject.ts"),l=n("./src/survey-element.ts"),u=function(){function e(e,t,n){var r;void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this._allowLineBreaks=!1,this.onStringChanged=new s.EventBase,e instanceof l.SurveyElementCore&&(this._allowLineBreaks="text"==(null===(r=a.Serializer.findProperty(e.getType(),n))||void 0===r?void 0:r.type)),this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){return this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(o.surveyLocalization.defaultLocale)),this.isValueEmpty(t)){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return this.getLocaleTextCore(e)||""},e.prototype.getLocaleTextCore=function(e){return e||(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||!this.isLocaleTextEqualsWithDefault(e,t)){if(i.settings.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,r)}}else{if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&!this.isValueEmpty(a)&&(this.setValue(s,t),this.fireStrChanged(s,a))}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length)return null;if(1==e.length&&e[0]==i.settings.localization.defaultLocaleName&&!i.settings.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var t={};for(var n in this.values)t[n]=this.values[n];return t},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},null!=e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return this.setHtmlValue(e,""),!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),c=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"}},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return u})),n.d(t,"createDialogOptions",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/console-warnings.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},u=function(e){function t(t,n,r,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=n,r&&"string"==typeof r)i.verticalPosition=r,i.horizontalPosition=o;else if(r){var s=r;for(var a in s)i[a]=s[a]}return i}return a(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},l([Object(i.property)()],t.prototype,"contentComponentName",void 0),l([Object(i.property)()],t.prototype,"contentComponentData",void 0),l([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),l([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"showPointer",void 0),l([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"canShrink",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),l([Object(i.property)({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),l([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),l([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function c(e,t,n,r,o,i,a,l,u){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===u&&(u="popup"),s.ConsoleWarnings.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:a,title:l,displayMode:u}}},"./src/react/boolean-checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=n("./src/react/components/title/title-actions.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return l(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?o.createElement(o.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):o.createElement(o.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBoolean",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/action-bar/action-bar-item.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.viewModel=new s.ActionDropdownViewModel(n.item),n}return c(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel,getTarget:s.getActionDropdownButtonTarget}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyAction",(function(){return d})),n.d(t,"SurveyActionBarItem",(function(){return h}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/action-bar/action-bar-separator.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,n=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),this.item,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarSeparator",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBar",(function(){return d}));var r=n("react"),o=n.n(r),i=n("./src/react/element-factory.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/action-bar/action-bar-item.tsx"),l=n("./src/react/components/action-bar/action-bar-item-dropdown.tsx");n.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=n("./src/react/components/action-bar/action-bar-separator.tsx");n.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t,(function(e){setTimeout(e)}))}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(t,n){if(e.prototype.componentDidUpdate.call(this,t,n),t.model!=this.props.model&&this.model.hasActions){this.model.resetResponsivityManager();var r=this.rootRef.current;r&&this.model.initResponsivityManager(r,(function(e){setTimeout(e)}))}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"BrandInfo",(function(){return a}));var r,o=n("react"),i=n.n(o),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounterComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentsContainer",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/file/file-choose-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFileChooseButton",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactSurvey.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return Object(s.attachKey2click)(i.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(t){return e.question.chooseFile(t.nativeEvent)}},this.question.cssClasses.chooseFileIconId?i.a.createElement(l.SvgIcon,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,i.a.createElement("span",null,this.question.chooseButtonText)))},t}(a.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("sv-file-choose-btn",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/file/file-preview.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFilePreview",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?i.a.createElement("div",{className:e},i.a.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.question.previewValue.map((function(t,n){return t?i.a.createElement("span",{key:e.question.inputId+"_"+n,className:e.question.cssClasses.previewItem,onClick:function(t){return e.question.doDownloadFileFromContainer(t)},style:{display:e.question.isPreviewVisible(n)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),i.a.createElement("div",{className:e.question.getImageWrapperCss(t)},e.question.canPreviewImage(t)?i.a.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?i.a.createElement(a.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?i.a.createElement("div",{className:e.question.getRemoveButtonCss(),onClick:function(n){return e.question.doRemoveFile(t,n)}},i.a.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?i.a.createElement(a.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return i.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(s.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("sv-file-preview",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"HeaderMobile",(function(){return c})),n.d(t,"HeaderCell",(function(){return p})),n.d(t,"Header",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(l.TitleElement,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},s.SurveyElementBase.renderLocString(this.model.survey.locDescription))):null)},t}(i.a.Component),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:this.model.css,style:this.model.style},i.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(l.TitleElement,{element:this.model.survey})):null,this.model.showDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},s.SurveyElementBase.renderLocString(this.model.survey.locDescription))):null))},t}(i.a.Component),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var e;return e=this.props.survey.isMobile?i.a.createElement(c,{model:this.model}):i.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(e,t){return i.a.createElement(p,{key:t,model:e})}))),i.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?i.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-header",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/list/list-item-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItemContent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=[],t=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=i.a.createElement(l.SvgIcon,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});e.push(n),e.push(i.a.createElement("span",{key:"text"},t))}else e.push(t);return this.item.markerIconName&&(n=i.a.createElement(l.SvgIcon,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize}),e.push(n)),i.a.createElement(i.a.Fragment,null,e)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item-content",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list-item-group.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItemGroup",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var t=s.ReactElementFactory.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:null===(e=this.item)||void 0===e?void 0:e.popupModel}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item-group",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=this.item.component||"sv-list-item-content",o=s.ReactElementFactory.Instance.createElement(r,{item:this.item,key:this.item.id,model:this.model}),a=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(t){e.model.onItemHover(e.item)},onMouseLeave:function(t){e.model.onItemLeave(e.item)}},o),u=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,c={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:n,role:"option",style:c,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},u,a),this.item)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"List",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/list/list-item.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=s.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/loading-indicator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LoadingIndicatorComponent",(function(){return a}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return o.createElement("div",{className:"sd-loading-indicator"},o.createElement(i.SvgIcon,{iconName:"icon-loading",size:"auto"}))},t}(o.Component)},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRow",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.root=i.a.createRef(),n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.model!==this.model&&(t.element&&t.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},t.prototype.render=function(){var e=this,t=this.model;return t.visible?i.a.createElement("tr",{ref:this.root,className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"NotifierComponent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText);return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h})),n.d(t,"PopupContainer",(function(){return f})),n.d(t,"PopupDropdownContainer",(function(){return m})),n.d(t,"showModal",(function(){return g})),n.d(t,"showDialog",(function(){return y}));var r,o=n("react-dom"),i=n.n(o),s=n("react"),a=n.n(s),l=n("survey-core"),u=n("./src/react/element-factory.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=n("./src/react/components/action-bar/action-bar.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=a.a.createRef(),n.createModel(),n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e,this.props.getTarget?this.props.getTarget(e):void 0,this.props.getArea?this.props.getArea(e):void 0)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?a.a.createElement(f,{model:this.popup}):a.a.createElement(m,{model:this.popup}),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},n,a.a.createElement("div",{className:"sv-popup__body-content"},r,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function g(e,t,n,r,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,n,r,void 0,void 0,o,i,s))}function y(e,t){var n=Object(l.createPopupModalViewModel)(e,t);return n.onVisibilityChanged.add((function(e,t){t.isVisible||(i.a.unmountComponentAtNode(n.container),n.dispose())})),i.a.render(a.a.createElement(f,{model:n}),n.container),n.model.isVisible=!0,n}l.settings.showModal=g,l.settings.showDialog=y},"./src/react/components/question-error.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionErrorComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/string-viewer.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return i.a.createElement("div",null,i.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),i.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},i.a.createElement(a.SurveyLocStringViewer,{locStr:this.props.error.locText})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-question-error",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/rating/rating-dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingDropdownItem",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,t=this.renderDescription(e);return i.a.createElement("div",{className:"sd-rating-dropdown-item"},i.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),t)},t.prototype.renderDescription=function(e){return e.description?i.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-dropdown-item",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemSmiley",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(a.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemStar",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(a.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(a.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemBase",(function(){return u})),n.d(t,"RatingItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(a.SurveyElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(u);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/skeleton.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Skeleton",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LogoImage",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=i.a.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleActions",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/title/title-content.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleContent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))}return e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp"))),r.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e,t))),r},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleElement",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/title/title-actions.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),r=void 0;e.hasTitleEvents&&(r=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:r},n)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyCustomWidget",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/components/popup/popup.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.chevronPointerDown=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.chevronPointerDown(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return o.createElement("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var i=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=o.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass()},i,this.renderReadOnlyElement())}else r=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return o.createElement("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!!e.filterReadOnly||void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?o.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},o.createElement(a.SvgIcon,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionOptionItem",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return s(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_dropdown.tsx"),l=n("./src/react/dropdown-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactElementFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementHeader",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/action-bar/action-bar.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(l.TitleElement,{element:e}):null,n=e.hasDescriptionUnderTitle?u.SurveyElementBase.renderQuestionDescription(this.element):null,r=e.hasAdditionalTitleToolbar?i.a.createElement(a.SurveyActionBar,{model:e.additionalTitleToolbar}):null,o={width:void 0};return e instanceof s.Question&&(o.width=e.titleWidth),i.a.createElement("div",{className:e.cssHeader,onClick:function(t){return e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent)},style:o},t,n,r)},t}(i.a.Component)},"./src/react/element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRowElement",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.element.cssClasses,n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.element!==this.element&&(t.element&&t.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},t.prototype.renderElement=function(){var e=this.element,t=this.createElement(e,this.index),n=e.cssClassesValue;return o.createElement("div",{className:n.questionWrapper,style:e.rootStyle,"data-key":t.key,key:t.key,onFocus:function(){var t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},this.row.isNeedRender?t:s.ReactElementFactory.Instance.createElement(e.skeletonComponentName,{element:e,css:this.css}))},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/flow-panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFlowPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/element-factory.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(a.SurveyQuestion,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImagePicker",(function(){return c})),n.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,s=n.isItemSelected(t),a=n.getItemClass(t),u=null;n.showLabel&&(u=o.createElement("span",{className:n.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:r.itemNoImage,style:d},r.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPage",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel-base.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=n("./src/react/reactquestion.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),r=o.createElement(l.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanelBase",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/row.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.activePage&&t.page.id===this.survey.activePage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var t=this;return this.panelBase.visibleRows.map((function(n){return t.createRow(n,e)}))},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanel",(function(){return f}));var r,o=n("react"),i=n("./src/react/reactquestion.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/panel-base.tsx"),u=n("./src/react/reactsurveymodel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/title/title-element.tsx"),d=n("./src/react/element-header.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},s=null;if(this.panel.renderedIsExpanded){var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(r,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/progress.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgress",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/progressButtons.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtons",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.listContainerRef=o.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?o.createElement("div",{className:this.css.progressButtonsHeader},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?o.createElement("div",{className:this.css.progressButtonsFooter},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this,r=l.SurveyElementBase.renderLocString(e.locNavigationTitle);return o.createElement("li",{key:"listelement"+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?function(){return n.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},o.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?o.createElement(o.Fragment,null,o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},r),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,o.createElement("div",{className:this.css.progressButtonsButton},o.createElement("div",{className:this.css.progressButtonsButtonBackground}),o.createElement("div",{className:this.css.progressButtonsButtonContent}),o.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),setTimeout((function(){t.respManager=new i.ProgressButtonsResponsivityManager(t.model,t.listContainerRef.current,t)}),10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(c,e)}))},"./src/react/progressToc.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressToc",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactSurveyNavigationBase.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/list/list.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e,t=this.props.model;return e=t.isMobile?o.createElement("div",{onClick:t.togglePopup},o.createElement(u.SvgIcon,{iconName:t.icon,size:24}),o.createElement(l.Popup,{model:t.popupModel})):o.createElement(a.List,{model:t.listModel}),o.createElement("div",{className:t.containerCss},e)},t}(i.SurveyNavigationBase);s.ReactElementFactory.Instance.registerElement("sv-navigation-toc",(function(e){return o.createElement(p,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRatingDropdown",(function(){return c}));var r=n("react"),o=n("survey-core"),i=n("./src/react/dropdown-base.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/rating/rating-dropdown-item.tsx");n.d(t,"RatingDropdownItem",(function(){return a.RatingDropdownItem}));var l,u=(l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return r.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(i.SurveyQuestionDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return r.createElement(c,e)})),o.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurvey",(function(){return u})),n.d(t,"SurveyWindow",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurvey.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,t=this.renderWindowHeader(),n=this.renderBody(),r={};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r,onScroll:function(){return e.popup.onScroll()}},o.createElement("div",{className:this.popup.cssRootContent},t,n))},t.prototype.renderWindowHeader=function(){var e,t=this.popup,n=(t.cssHeaderRoot,null),r=null,i=null;return t.isCollapsed?(t.cssRootCollapsedMod,n=this.renderTitleCollapsed(t),e=this.renderExpandIcon()):e=this.renderCollapseIcon(),t.allowClose&&(r=this.renderCloseButton(this.popup)),t.allowFullScreen&&(i=this.renderAllowFullScreenButon(this.popup)),o.createElement("div",{className:t.cssHeaderRoot},n,o.createElement("div",{className:t.cssHeaderButtonsContainer},i,o.createElement("div",{className:t.cssHeaderCollapseButton,onClick:this.handleOnExpanded},e),r))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?o.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return o.createElement(a.SvgIcon,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return o.createElement(a.SvgIcon,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){return o.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide()}},o.createElement(a.SvgIcon,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var t;return t=e.isFullScreen?o.createElement(a.SvgIcon,{iconName:"icon-back-to-panel_16x16",size:16}):o.createElement(a.SvgIcon,{iconName:"icon-full-screen_16x16",size:16}),o.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},t)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new i.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.allowFullScreen=t.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(s.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/react/reactSurvey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",(function(){return y})),n.d(t,"attachKey2click",(function(){return v}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/page.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/survey-header/survey-header.tsx"),u=n("./src/react/reactquestion_factory.tsx"),c=n("./src/react/element-factory.tsx"),p=n("./src/react/components/brand-info.tsx"),d=n("./src/react/components/notifier.tsx"),h=n("./src/react/components/components-container.tsx"),f=n("./src/react/svgbundle.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return m(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"empty"==this.survey.state?this.renderEmptySurvey():this.renderSurvey();var t=this.survey.backgroundImage?o.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?o.createElement(l.SurveyHeader,{survey:this.survey}):null,r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var i=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+i:i;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?o.createElement(f.SvgBundleComponent,null):null,o.createElement("div",{className:this.survey.wrapperFormCss},t,o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},n,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(p.BrandInfo,null):null,o.createElement(d.NotifierComponent,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),o.createElement(h.ComponentsContainer,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{className:"sv-components-column sv-components-column--expandable"},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"center"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"contentBottom"}))),o.createElement(h.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return u.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n,r){return c.ReactElementFactory.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasses:n,element:r})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function v(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=g({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}c.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(y,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationBase",(function(){return s}));var r,o=n("react"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactquestion.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestion",(function(){return d})),n.d(t,"SurveyElementErrors",(function(){return h})),n.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return f})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return m})),n.d(t,"SurveyQuestionErrorCell",(function(){return g}));var r,o=n("react"),i=n("./src/react/reactsurveymodel.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_comment.tsx"),u=n("./src/react/custom-widget.tsx"),c=n("./src/react/element-header.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return p(t,e),t.renderQuestionBody=function(e,t){return t.customWidget?o.createElement(u.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.renderedIsExpanded?"":"none"},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=i.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=i.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return a.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=a.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(l.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(c.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(h,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(d,e)}));var h=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n}return p(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses,this.element))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(a.ReactSurveyElement),f=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return o.createElement(o.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return d.renderQuestionBody(this.creator,this.question)},t}(a.ReactSurveyElement),m=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return p(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return o.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.props.cell;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:function(){t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=i.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(f),g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return p(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.registerCallback=function(e){var t=this;e.registerFunctionOnPropertyValueChanged("errors",(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertyValueChanged("errors","__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return o.createElement(h,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(o.Component)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionButtonGroup",(function(){return c})),n.d(t,"SurveyButtonGroupItem",(function(){return p}));var r,o=n("./src/react/reactquestion_element.tsx"),i=n("react"),s=n.n(i),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("survey-core"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return s.a.createElement(p,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCheckbox",(function(){return p})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem("item_h"+n,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,o){return t.renderItem("item"+o,n,0===r&&0===o,e,""+r+o)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i="item"+r,s=this.renderItem(i,o,0==r,e,""+r);s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:n}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=this.question.getItemClass(this.item),i=this.question.getLabelClass(this.item),s=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation"},o.createElement("label",{className:i},o.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionComment",(function(){return c})),n.d(t,"SurveyQuestionCommentItem",(function(){return p})),n.d(t,"SurveyQuestionOtherValueItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("survey-core"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/character-counter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(l.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:n,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var n=t.target.value;e.question.updateRemainingCharacterCounter(n)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage,style:{resize:this.question.resizeStyle}}),r)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={comment:n.getComment()||""},n}return u(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.control){var e=this.control,t=this.getComment()||"";s.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=t)}},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.setComment=function(e){this.props.question.comment=e},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.renderedCommentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,n=this.props.otherCss||this.cssClasses.comment;if(t.isReadOnlyRenderDiv()){var r=this.getComment()||"";return o.createElement("div",null,r)}return o.createElement("textarea",{id:this.getId(),className:n,ref:function(t){return e.setControl(t)},disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),rows:t.commentAreaRows,placeholder:this.getPlaceholder(),onBlur:function(t){e.onCommentChange(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired||t.a11y_input_ariaRequired,"aria-label":t.ariaLabel||t.a11y_input_ariaLabel,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.setComment=function(e){this.props.question.otherValue=e},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(p);a.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCustom",(function(){return c})),n.d(t,"SurveyQuestionComposite",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/panel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementBase",(function(){return u})),n.d(t,"ReactSurveyElement",(function(){return c})),n.d(t,"SurveyQuestionElementBase",(function(){return p})),n.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n}return l(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact(),this.getStateElements().forEach((function(e){e.afterRerender()}))},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRenderedEvent(),this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].disableOnElementRenderedEvent(),this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))})}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();i.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionEmpty",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionExpression",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactQuestionFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionFile",(function(){return h}));var r,o=n("react"),i=n("./src/react/components/action-bar/action-bar.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_factory.tsx"),u=n("./src/react/components/loading-indicator.tsx"),c=n("./src/react/components/action-bar/action-bar-item.tsx"),p=n("./src/entries/react-ui-model.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){return e.call(this,t)||this}return d(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.question.allowShowPreview?this.renderPreview():null,r=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,s=this.question.isPlayingVideo?this.renderVideo():null,a=this.question.showFileDecorator?this.renderFileDecorator():null,l=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,u=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,c=this.question.fileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.fileNavigator}):null;return e=this.question.isReadOnlyAttr?o.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?o.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):null,o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},a,r,s,l,n,u,c))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,t=this.question.actionsContainerVisible?o.createElement(i.SurveyActionBar,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t,n))},t.prototype.renderChooseButton=function(){return o.createElement(p.SurveyFileChooseButton,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return p.ReactElementFactory.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(u.LoadingIndicatorComponent,null))},t.prototype.renderVideo=function(){return o.createElement("div",{className:this.question.cssClasses.videoContainer},o.createElement(c.SurveyAction,{item:this.question.changeCameraAction}),o.createElement(c.SurveyAction,{item:this.question.closeCameraAction}),o.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),o.createElement(c.SurveyAction,{item:this.question.takePictureAction}))},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(h,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionHtml",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrix",(function(){return c})),n.d(t,"SurveyQuestionMatrixRow",(function(){return p})),n.d(t,"SurveyQuestionMatrixCell",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var c=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,c.push(o.createElement(p,{key:a,question:this.question,cssClasses:t,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,c))))},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElement=function(){return this.row?this.row.item:e.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=this.question.cellComponent,i=function(){var i=null,u=s.question.visibleColumns[a],c="value"+a,p=s.question.getItemClass(n,u);if(s.question.hasCellText){var d=function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:c,className:p,onClick:d?d(u):function(){}},s.renderLocString(s.question.getCellDisplayLocText(n.name,u)))}else{var h=l.ReactElementFactory.Instance.createElement(r,{question:s.question,row:s.row,column:u,columnIndex:a,cssClasses:s.cssClasses,cellChanged:function(){e.cellClick(e.row,u)}});i=o.createElement("td",{key:c,"data-responsive-title":u.locText.renderedHtml,className:s.question.cssClasses.cell},h)}t.push(i)},s=this,a=0;a<this.question.visibleColumns.length;a++)i();return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,t=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.isMobile?o.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),r)},t.prototype.renderInput=function(e,t){return o.createElement("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},t}(i.ReactSurveyElement);l.ReactElementFactory.Instance.registerElement("survey-matrix-cell",(function(e){return o.createElement(d,e)})),s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_matrixdropdownbase.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return y})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return C}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_checkbox.tsx"),l=n("./src/react/reactquestion_radiogroup.tsx"),u=n("./src/react/panel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/matrix/row.tsx"),d=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=n("./src/react/reactquestion_comment.tsx"),f=n("./src/react/element-factory.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,t,n){return this.props.wrapCell(e,t,n)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},"row-footer"==r?o.createElement("tr",null,i):o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n,r){var i="cell"+t;if(e.hasQuestion)return o.createElement(C,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:r});var s=r;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,n),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var a=this.renderLocString(e.locTitle),l=e.column?o.createElement(b,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,a,l)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),e.isErrorsCell&&e.isErrorsCell)return o.createElement(s.SurveyQuestionErrorCell,{question:e.question,creator:this.creator});if(!r)return null;var c=o.createElement(o.Fragment,null,r);return this.wrapCell(e,c,t)},t.prototype.renderElement=function(){var e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return o.createElement("table",{className:this.question.getTableCss()},e,n,t)},t}(i.SurveyElementBase),y=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:t,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement(g,{question:this.question,creator:this.creator,wrapCell:function(t,n,r){return e.wrapCell(t,n,r)}}))},t}(i.SurveyQuestionElementBase),v=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(v,e)}));var b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",null," "),o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),C=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderCellContent=function(){var t=e.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?o.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return o.createElement(o.Fragment,null,n,t)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question):o.createElement(o.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/reactquestion_matrixdropdownbase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMultipleText",(function(){return c})),n.d(t,"SurveyMultipleTextItem",(function(){return p})),n.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/title/title-content.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return o.createElement("table",{className:this.question.getQuestionRootCss()},o.createElement("tbody",null,n))},t.prototype.renderCell=function(e,t,n){var r;return r=e.isErrorsCell?o.createElement(s.SurveyQuestionErrorCell,{question:e.item.editor,creator:this.creator}):o.createElement(p,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),o.createElement("td",{key:"item"+n,className:e.className,onFocus:function(){e.item.focusIn()}},r)},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(this.renderCell(a,n,s))}return o.createElement("tr",{key:r,className:n.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle,style:n},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),n.d(t,"SurveyQuestionPanelDynamicItem",(function(){return m}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=n("./src/react/element-factory.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,t=[];this.question.renderedPanels.forEach((function(n,r){t.push(o.createElement(m,{key:n.id,element:n,question:e.question,index:r,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,r=this.question.isProgressTopShowing?this.renderNavigator():null,i=this.question.isProgressBottomShowing?this.renderNavigator():null,s=this.renderNavigatorV2(),a=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},a,r,o.createElement("div",{className:this.question.cssClasses.panelsContainer},t),i,n,s)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRadiogroup",(function(){return p})),n.d(t,"SurveyQuestionRadioItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,i){var s=r.map((function(r,o){return t.renderItem("item"+i+o,r,n,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:n===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:t},o.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRanking",(function(){return c})),n.d(t,"SurveyQuestionRankingItem",(function(){return p})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return this.question.selectToRankEnabled?o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},o.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),o.createElement("div",{className:this.question.cssClasses.containersDivider}),o.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null)):o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.renderedRankingChoices);for(var r=[],o=function(o){var s=e[o];r.push(i.renderItem(s,o,(function(e){n.question.handleKeydown.call(n.question,e,s)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,s,e.currentTarget)}),(function(e){e.persist(),n.question.handlePointerUp.call(n.question,e,s,e.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,t))},i=this,s=0;s<e.length;s++)o(s);return r},t.prototype.renderItem=function(e,t,n,r,i,s,l,u,c){e.renderedId;var d=this.renderLocString(e.locText),h=t,f=this.question.getNumberByIndex(h),m=this.question.getItemTabIndex(e),g=o.createElement(p,{key:e.value,text:d,index:h,indexText:f,itemTabIndex:m,handleKeydown:n,handlePointerDown:r,handlePointerUp:i,cssClasses:s,itemClass:l,question:u,unrankedItem:c,item:e}),y=this.question.survey,v=null;return y&&(v=a.ReactSurveyElementsWrapper.wrapItemValue(y,g,this.question,e)),null!=v?v:g},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return o.createElement("svg",null,o.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=l.ReactElementFactory.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{className:this.question.getIconHoverCss()},o.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),o.createElement("svg",{className:this.question.getIconFocusCss()},o.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),o.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{className:this.cssClasses.controlLabel},i.SurveyElementBase.renderLocString(this.item.locText))},t}(i.ReactSurveyElement);l.ReactElementFactory.Instance.registerElement("sv-ranking-item",(function(e){return o.createElement(d,e)})),s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRating",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagbox",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/tagbox-item.tsx"),l=n("./src/react/tagbox-filter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionText",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.inputValue);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var r=n("survey-core"),o=n("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,row:n,componentData:i})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapItemValue=function(e,t,n,r){var i=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var i=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:n,componentData:s})},e}();r.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return u(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=n?"-"+n:0,i=t.name+r;return o.createElement(s.SurveyRowElement,{element:t,index:n,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:i})}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return l.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,t.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return a.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),a.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionSignaturePad",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/loading-indicator.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{width:this.question.renderedCanvasWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",null,this.renderBackgroundImage(),o.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:this.question.onBlur})),r,n)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?o.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(l.LoadingIndicatorComponent,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(c,e)}))},"./src/react/string-editor.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringEditor",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringViewer",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/svgbundle.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgBundleComponent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=i.a.createRef(),n}return a(t,e),t.prototype.componentDidMount=function(){this.containerRef.current&&(this.containerRef.current.innerHTML=s.SvgRegistry.iconsRenderedHtml())},t.prototype.render=function(){return i.a.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(i.a.Component)},"./src/react/tagbox-filter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TagboxFilterString",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!!this.model.filterReadOnly||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return a}));var r=n("./src/global_variables_utils.ts"),o=n("./src/utils/utils.ts"),i="undefined"!=typeof globalThis?globalThis.document:(void 0).document,s=i?{root:i,_rootElement:r.DomDocumentHelper.getBody(),get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:r.DomDocumentHelper.getBody(),get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:i.head,stylesSheetsMountContainer:i.head}:void 0,a={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return a.commentSuffix},set commentPrefix(e){a.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,n,r,i){return Object(o.showConfirmDialog)(e,t,n,r,i)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:s,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}}}},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return y})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return v}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/utils/animation.ts"),h=n("./src/utils/utils.ts"),f=n("./src/global_variables_utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return m(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},g([Object(i.property)()],t.prototype,"hasDescription",void 0),g([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var v=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r._renderedIsExpanded=!0,r._isAnimatingCollapseExpand=!1,r.animationCollapsed=new d.AnimationBoolean(r.getExpandCollapseAnimationOptions(),(function(e){r._renderedIsExpanded=e,r.animationAllowed&&(e?r.isAnimatingCollapseExpand=!0:r.updateElementCss(!1))}),(function(){return r.renderedIsExpanded})),r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return m(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e,n,r){var o=u.settings.environment.root;if(!e||void 0===o)return!1;var i=o.getElementById(e);return t.ScrollElementToViewCore(i,!1,n,r)},t.ScrollElementToViewCore=function(e,t,n,r){if(!e||!e.scrollIntoView)return!1;var o=n?-1:e.getBoundingClientRect().top,i=o<0,s=-1;if(!i&&t&&(i=(s=e.getBoundingClientRect().left)<0),!i&&f.DomWindowHelper.isAvailable()){var a=f.DomWindowHelper.getInnerHeight();if(!(i=a>0&&a<o)&&t){var l=f.DomWindowHelper.getInnerWidth();i=l>0&&l<s}}return i&&e.scrollIntoView(r),i},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||!f.DomDocumentHelper.isAvailable())return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var n=u.settings.environment.root;if(!n)return!1;var r=n.getElementById(e);return!(!r||r.disabled||"none"===r.style.display||null===r.offsetParent||(t.ScrollElementToViewCore(r,!0,!1),r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!("collapsed"===this.state&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){return this.getPropertyValueWithoutDefault("cssClassesValue")},set:function(e){this.setPropertyValue("cssClassesValue",e)},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRenderedValue=!0,this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&!this.parent.originalPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={},t=this.minWidth;return"auto"!=t&&(t="min(100%, "+this.minWidth+")"),this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=t,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),t.prototype.isContainsSelection=function(e){var t=void 0,n=f.DomDocumentHelper.getDocument();if(f.DomDocumentHelper.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var r=f.DomWindowHelper.getSelection();if(r&&r.rangeCount>0){var o=r.getRangeAt(0);o.startOffset!==o.endOffset&&(t=o.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!t||!e.isContainsSelection(t.target))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,n=e||this.isReadOnly;return[n&&!t,!this.isDefaultV2Theme&&(n||t)]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,t.style.setProperty("--animation-height",t.offsetHeight+"px")},n=function(t){e.isAnimatingCollapseExpand=!1};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeIn,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){n(),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeOut,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getAnimatedElement:function(){var t,n=e.isPanel?e.cssClasses.panel:e.cssClasses;if(n.content){var r=Object(h.classesToSelector)(n.content);if(r)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+r)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t||!this.renderedIsExpanded||this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,g([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),g([Object(i.property)()],t.prototype,"_renderedIsExpanded",void 0),t}(y)},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeDirections:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/utils/animation.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationUtils",(function(){return l})),n.d(t,"AnimationPropertyUtils",(function(){return u})),n.d(t,"AnimationGroupUtils",(function(){return c})),n.d(t,"AnimationProperty",(function(){return p})),n.d(t,"AnimationBoolean",(function(){return d})),n.d(t,"AnimationGroup",(function(){return h})),n.d(t,"AnimationTab",(function(){return f}));var r,o=n("./src/utils/taskmanager.ts"),i=n("./src/utils/utils.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),n=t.animationDelay.split(", "),r=t.animationDuration.split(", "),o=0,i=0;i<Math.max(r.length,n.length);i++)o=Math.max(o,this.getMsFromRule(r[i%r.length])+this.getMsFromRule(n[i%n.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,n){var r,o=this,i=this.getAnimationsCount(e),s=function(i){void 0===i&&(i=!0),o.afterAnimationRun(e,n),t(i),clearTimeout(r),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),r=setTimeout((function(){s(!1)}),this.getAnimationDuration(e)+10)):(this.afterAnimationRun(e,n),t(!0))},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)},e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,n){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach((function(t){e.classList.add(t)})),this.onAnimationEnd(e,n,t)):n(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach((function(t){e.classList.remove(t)}))},e.prototype.onNextRender=function(e,t){var n=this;if(void 0===t&&(t=!1),!t&&s.DomWindowHelper.isAvailable()){var r=function(){e(!0),cancelAnimationFrame(o)},o=s.DomWindowHelper.requestAnimationFrame((function(){o=s.DomWindowHelper.requestAnimationFrame((function(){e(!1),n.removeCancelCallback(r)}))}));this.addCancelCallback(r)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach((function(e){return e()})),this.cancelQueue=[]},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onEnter=function(e){var t=this,n=e.getAnimatedElement(),r=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,(function(){t.clearHtmlElement(n,r)}))},t.prototype.onLeave=function(e,t){var n=this,r=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,(function(e){t(),n.onNextRender((function(){n.clearHtmlElement(r,o)}),e)}))},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.runGroupAnimation=function(e,t,n,r,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},a=t.map((function(t){return e.getAnimatedElement(t)})),l=t.map((function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}})),u=n.map((function(t){return e.getAnimatedElement(t)})),c=n.map((function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}})),p=r.map((function(t){return e.getAnimatedElement(t.item)})),d=r.map((function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}}));t.forEach((function(e,t){i.beforeAnimationRun(a[t],l[t])})),n.forEach((function(e,t){i.beforeAnimationRun(u[t],c[t])})),r.forEach((function(e,t){i.beforeAnimationRun(p[t],d[t])}));var h=t.length+n.length+p.length,f=function(e){--h<=0&&(o&&o(),i.onNextRender((function(){t.forEach((function(e,t){i.clearHtmlElement(a[t],l[t])})),n.forEach((function(e,t){i.clearHtmlElement(u[t],c[t])})),r.forEach((function(e,t){i.clearHtmlElement(p[t],d[t])}))}),e))};t.forEach((function(e,t){i.runAnimation(a[t],l[t],f)})),n.forEach((function(e,t){i.runAnimation(u[t],c[t],f)})),r.forEach((function(e,t){i.runAnimation(p[t],d[t],f)}))},t}(l),p=function(){function e(e,t,n){var r=this;this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=Object(o.debounce)((function(e){r.animation.cancel();try{r._sync(e)}catch(t){r.update(e)}}))}return e.prototype.onNextRender=function(e,t){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var o=function(){r.remove(i),n.cancelCallback=void 0},i=function(){e(),o()};this.cancelCallback=function(){t&&t(),o()},r.add(i)}else{if(!s.DomWindowHelper.isAvailable())throw new Error("Can't get next render");var a=s.DomWindowHelper.requestAnimationFrame((function(){e(),n.cancelCallback=void 0}));this.cancelCallback=function(){t&&t(),cancelAnimationFrame(a),n.cancelCallback=void 0}}},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new u,t}return a(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender((function(){t.animation.onEnter(t.animationOptions)})),this.update(e)):this.animation.onLeave(this.animationOptions,(function(){t.update(e)})):this.update(e)},t}(p),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new c,t}return a(t,e),t.prototype._sync=function(e){var t,n,r=this,o=this.getCurrentValue(),s=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,a=Object(i.compareArrays)(o,e,null!==(n=this.animationOptions.getKey)&&void 0!==n?n:function(e){return e}),l=a.addedItems,u=a.deletedItems,c=a.reorderedItems,p=a.mergedItems;!s&&(c.length>0||l.length>0)&&(u=[],p=e);var d=function(){r.animation.runGroupAnimation(r.animationOptions,l,u,c,(function(){u.length>0&&r.update(e)}))};[l,u,c].some((function(e){return e.length>0}))?u.length<=0||c.length>0||l.length>0?(this.onNextRender(d,(function(){r.update(e)})),this.update(p)):d():this.update(e)},t}(p),f=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.mergeValues=o,i.animation=new c,i}return a(t,e),t.prototype._sync=function(e){var t=this,n=[].concat(this.getCurrentValue());if(n[0]!==e[0]){var r=this.mergeValues?this.mergeValues(e,n):[].concat(n,e);this.onNextRender((function(){t.animation.runGroupAnimation(t.animationOptions,e,n,[],(function(){t.update(e)}))}),(function(){return t.update(e)})),this.update(r,!0)}else this.update(e)},t}(p)},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return a})),n.d(t,"VerticalResponsivityManager",(function(){return l}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e,t,n,r,i){var s=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=i,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return o.DomDocumentHelper.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(s.isInitialized=!1),setTimeout((function(){s.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){o.DomWindowHelper.requestAnimationFrame((function(){s.process()}))})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.getRenderedVisibleActionsCount=function(){var e=this,t=0;return this.container.querySelectorAll(this.itemsSelector).forEach((function(n){e.calcItemSize(n)>0&&t++})),t},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(i.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var t=function(){var t,n=e.dotsItemSize;if(!e.dotsItemSize){var r=null===(t=e.container)||void 0===t?void 0:t.querySelector(".sv-dots");n=r&&e.calcItemSize(r)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),n)};if(this.isInitialized)t();else{var n=function(){e.calcItemsSizes(),e.isInitialized=!0,t()};this.getRenderedVisibleActionsCount()<this.model.visibleActions.length?this.delayedUpdateFunction?this.delayedUpdateFunction(n):queueMicrotask?queueMicrotask(n):n():n()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),l=function(e){function t(t,n,r,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,n,r,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return s(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(a)},"./src/utils/taskmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Task",(function(){return r})),n.d(t,"TaskManger",(function(){return o})),n.d(t,"debounce",(function(){return i}));var r=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),e}(),o=function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}return e.Instance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],n=0;n<e.tasks.length;n++){var r=e.tasks[n];r.execute(),r.isCompleted?"function"==typeof r.dispose&&r.dispose():t.push(r)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[],e}();function i(e){var t,n=this,r=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,r||(r=!0,queueMicrotask((function(){o||e.apply(n,t),o=!1,r=!1})))},cancel:function(){o=!0}}}},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return E})),n.d(t,"getRenderedSize",(function(){return P})),n.d(t,"getRenderedStyleSize",(function(){return S})),n.d(t,"doKey2ClickBlur",(function(){return T})),n.d(t,"doKey2ClickUp",(function(){return _})),n.d(t,"doKey2ClickDown",(function(){return V})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return B})),n.d(t,"showConfirmDialog",(function(){return q})),n.d(t,"configConfirmDialog",(function(){return H})),n.d(t,"compareArrays",(function(){return Q})),n.d(t,"mergeValues",(function(){return F})),n.d(t,"getElementWidth",(function(){return D})),n.d(t,"isContainerVisible",(function(){return N})),n.d(t,"classesToSelector",(function(){return A})),n.d(t,"compareVersions",(function(){return a})),n.d(t,"confirmAction",(function(){return l})),n.d(t,"confirmActionAsync",(function(){return u})),n.d(t,"detectIEOrEdge",(function(){return p})),n.d(t,"detectIEBrowser",(function(){return c})),n.d(t,"loadFileFromBase64",(function(){return d})),n.d(t,"isMobile",(function(){return h})),n.d(t,"isShadowDOM",(function(){return f})),n.d(t,"getElement",(function(){return m})),n.d(t,"isElementVisible",(function(){return g})),n.d(t,"findScrollableParent",(function(){return y})),n.d(t,"scrollElementByChildId",(function(){return v})),n.d(t,"navigateToUrl",(function(){return b})),n.d(t,"wrapUrlForBackgroundImage",(function(){return C})),n.d(t,"createSvg",(function(){return x})),n.d(t,"getIconNameFromProxy",(function(){return w})),n.d(t,"increaseHeightByContent",(function(){return R})),n.d(t,"getOriginalEvent",(function(){return I})),n.d(t,"preventDefaults",(function(){return k})),n.d(t,"findParentByClassNames",(function(){return L})),n.d(t,"getFirstVisibleChild",(function(){return M})),n.d(t,"chooseFiles",(function(){return z}));var r=n("./src/localizablestring.ts"),o=n("./src/settings.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/global_variables_utils.ts");function a(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function l(e){return o.settings&&o.settings.confirmActionFunc?o.settings.confirmActionFunc(e):confirm(e)}function u(e,t,n,r,i){var s=function(e){e?t():n&&n()};o.settings&&o.settings.confirmActionAsync&&o.settings.confirmActionAsync(e,s,void 0,r,i)||s(l(e))}function c(){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function p(){if(void 0===p.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");p.isIEOrEdge=r>0||n>0||t>0}return p.isIEOrEdge}function d(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function h(){return s.DomWindowHelper.isAvailable()&&s.DomWindowHelper.hasOwn("orientation")}var f=function(e){return!!e&&!(!("host"in e)||!e.host)},m=function(e){var t=o.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function g(e,t){if(void 0===t&&(t=0),void 0===o.settings.environment)return!1;var n=o.settings.environment.root,r=f(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),a=-t,l=Math.max(r,s.DomWindowHelper.getInnerHeight())+t,u=i.top,c=i.bottom;return Math.max(a,u)<=Math.min(l,c)}function y(e){var t=o.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:y(e.parentElement):f(t)?t.host:t.documentElement}function v(e){var t=o.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var r=y(n);r&&setTimeout((function(){return r.dispatchEvent(new CustomEvent("scroll"))}),10)}}}function b(e){var t=s.DomWindowHelper.getLocation();e&&t&&(t.href=e)}function C(e){return e?["url(",e,")"].join(""):""}function w(e){return e&&o.settings.customIcons[e]||e}function x(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var a=o.childNodes[0],l=w(r);a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var u=o.getElementsByTagName("title")[0];i?(u||(u=s.DomDocumentHelper.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(u)),u.textContent=i):u&&o.removeChild(u)}}function E(e){return"function"!=typeof e?e:e()}function P(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function S(e){if(void 0===P(e))return e}var O="sv-focused--by-key";function T(e){var t=e.target;t&&t.classList&&t.classList.remove(O)}function _(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(O)&&n.classList.add(O)}}}function V(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function R(e,t){if(e){t||(t=function(e){return s.DomDocumentHelper.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px")}}function I(e){return e.originalEvent||e}function k(e){e.preventDefault(),e.stopPropagation()}function A(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function D(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function N(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function M(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function L(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:L(e.parentElement,t)}function j(e,t){if(void 0===t&&(t=!0),s.DomWindowHelper.isAvailable()&&s.DomDocumentHelper.isAvailable()&&e.childNodes.length>0){var n=s.DomWindowHelper.getSelection();if(0==n.rangeCount)return;var r=n.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),n.removeAllRanges(),n.addRange(r);var o=n.toString(),i=e.innerText;o=o.replace(/\r/g,""),t&&(o=o.replace(/\n/g,""),i=i.replace(/\n/g,""));var a=o.length;for(e.innerText=i,(r=s.DomDocumentHelper.getDocument().createRange()).setStart(e.firstChild,0),r.setEnd(e.firstChild,0),n.removeAllRanges(),n.addRange(r);n.toString().length<i.length-a;){var l=n.toString().length;if(n.modify("extend","forward","character"),n.toString().length==l)break}(r=n.getRangeAt(0)).setStart(r.endContainer,r.endOffset)}}function F(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),F(r,t[n])):t[n]=r}}var B=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}();function q(e,t,n,s,a){var l=new r.LocalizableString(void 0),u=o.settings.showDialog({componentName:"sv-string-viewer",data:{locStr:l,locString:l,model:l},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:e,displayMode:"popup",isFocusedContent:!1,cssClass:"sv-popup--confirm-delete"},a),c=u.footerToolbar,p=c.getActionById("apply"),d=c.getActionById("cancel");return d.title=i.surveyLocalization.getString("cancel",s),d.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",p.title=n||i.surveyLocalization.getString("ok",s),p.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",H(u),!0}function H(e){e.width="min-content"}function z(e,t){s.DomWindowHelper.isFileReaderAvailable()&&(e.value="",e.onchange=function(n){if(s.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var r=[],o=0;o<e.files.length;o++)r.push(e.files[o]);t(r)}},e.click())}function Q(e,t,n){var r=new Map,o=new Map,i=new Map,s=new Map;e.forEach((function(e){var t=n(e);if(r.has(t))throw new Error("keys must be unique");r.set(n(e),e)})),t.forEach((function(e){var t=n(e);if(o.has(t))throw new Error("keys must be unique");o.set(t,e)}));var a=[],l=[];o.forEach((function(e,t){r.has(t)?i.set(t,i.size):a.push(e)})),r.forEach((function(e,t){o.has(t)?s.set(t,s.size):l.push(e)}));var u=[];i.forEach((function(e,t){var n=s.get(t),r=o.get(t);n!==e&&u.push({item:r,movedForward:n<e})}));var c=new Array(e.length),p=0,d=Array.from(i.keys());e.forEach((function(e,t){i.has(n(e))?(c[t]=o.get(d[p]),p++):c[t]=e}));var h=new Map,f=[];c.forEach((function(e){var t=n(e);o.has(t)?f.length>0&&(h.set(t,f),f=[]):f.push(e)}));var m=new Array;return o.forEach((function(e,t){h.has(t)&&h.get(t).forEach((function(e){m.push(e)})),m.push(e)})),f.forEach((function(e){m.push(e)})),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:m}}},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(540),n(961),n(522))},771:e=>{"use strict";e.exports=function(){}},633:(e,t,n)=>{var r=n(738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof C?t:C,i=Object.create(o.prototype),s=new A(r||[]);return a(i,"_invoke",{value:V(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var m="suspendedStart",g="suspendedYield",y="executing",v="completed",b={};function C(){}function w(){}function x(){}var E={};d(E,u,(function(){return this}));var P=Object.getPrototypeOf,S=P&&P(P(D([])));S&&S!==i&&s.call(S,u)&&(E=S);var O=x.prototype=C.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function V(e,n,r){var o=m;return function(i,s){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=R(a,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?v:g,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(s.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(O),e},n.awrap=function(e){return{__await:e}},T(_.prototype),d(_.prototype,c,(function(){return this})),n.AsyncIterator=_,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var s=new _(h(e,t,r,o),i);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},T(O),d(O,p,"Generator"),d(O,u,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},756:(e,t,n)=>{var r=n(633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{"use strict";var e,t=o(540),n=o.t(t,2),r=o(338);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const s="popstate";function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function p(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let s=[...n,String(o)],l="string"==typeof e.id?e.id:s.join("-");if(a(!0!==e.index||!e.children,"Cannot specify children on an index route"),a(!r[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=i({},e,t(e),{id:l});return r[l]=n,n}{let n=i({},e,t(e),{id:l,children:void 0});return r[l]=n,e.children&&(n.children=m(e.children,t,s,r)),n}}))}function g(e,t,n){return void 0===n&&(n="/"),y(e,t,n,!1)}function y(e,t,n,r){let o=I(("string"==typeof t?d(t):t).pathname||"/",n);if(null==o)return null;let i=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let e=0;null==s&&e<i.length;++e){let t=R(o);s=_(i[e],t,r)}return s}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=M([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:T(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of b(e.path))o(e,t,n);else o(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=b(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const C=/^:[\w-]+$/,w=3,x=2,E=1,P=10,S=-2,O=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(O)&&(r+=S),t&&(r+=x),n.filter((e=>!O(e))).reduce(((e,t)=>e+(C.test(t)?w:""===t?E:P)),r)}function _(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=V({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u),p=a.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=V({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:M([i,c.pathname]),pathnameBase:L(M([i,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(i=M([i,c.pathnameBase]))}return s}function V(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function k(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t){let n=A(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function N(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=d(e):(o=i({},e),a(!o.pathname||!o.pathname.includes("?"),k("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let s,l=""===e||""===o.pathname,u=l?"/":o.pathname;if(null==u)s=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?d(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:j(r),hash:F(o)}}(o,s),p=u&&"/"!==u&&u.endsWith("/"),h=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!p&&!h||(c.pathname+="/"),c}const M=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class B{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],z=new Set(H),Q=["get",...H],U=new Set(Q),W=new Set([301,302,303,307,308]),G=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ee="remix-router-transitions";function te(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let e of t)if(l.push(e),e.route.id===s){u=e;break}}else l=t,u=t[t.length-1];let c=N(o||".",D(l,i),I(e.pathname,n)||e.pathname,"path"===a);return null==o&&(c.search=e.search,c.hash=e.hash),null!=o&&""!==o&&"."!==o||!u||!u.route.index||Re(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:M([n,c.pathname])),p(c)}function ne(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!U.has(o.toLowerCase())))return{path:n,error:Ce(405,{method:r.formMethod})};var o;let i,s,l=()=>({path:n,error:Ce(400,{type:"invalid-body"})}),u=r.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),h=xe(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Te(c))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:c,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Te(c))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:h,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(a("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=he(r.formData),s=r.formData;else if(r.body instanceof FormData)i=he(r.body),s=r.body;else if(r.body instanceof URLSearchParams)i=r.body,s=fe(i);else if(null==r.body)i=new URLSearchParams,s=new FormData;else try{i=new URLSearchParams(r.body),s=fe(i)}catch(e){return l()}let f={formMethod:c,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Te(f.formMethod))return{path:n,submission:f};let m=d(n);return t&&m.search&&Re(m.search)&&i.append("index",""),m.search="?"+i,{path:p(m),submission:f}}function re(e,t,n,r,o,s,a,l,u,c,p,d,h,f,m,y){let v=y?Pe(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),C=e.createURL(o),w=y&&Pe(y[1])?y[0]:void 0,x=w?function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,w):n,E=y?y[1].statusCode:void 0,P=a&&E&&E>=400,S=x.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(s)return!("function"==typeof o.loader&&!o.loader.hydrate&&(void 0!==t.loaderData[o.id]||t.errors&&void 0!==t.errors[o.id]));if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let a=t.matches[n],c=e;return ie(e,i({currentUrl:b,currentParams:a.params,nextUrl:C,nextParams:c.params},r,{actionResult:v,unstable_actionStatus:E,defaultShouldRevalidate:!P&&(l||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||oe(a,c))}))})),O=[];return d.forEach(((e,o)=>{if(s||!n.some((t=>t.route.id===e.routeId))||p.has(o))return;let a=g(f,e.path,m);if(!a)return void O.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),d=Ie(a,e.path),y=!1;y=!h.has(o)&&(!!c.includes(o)||(u&&"idle"!==u.state&&void 0===u.data?l:ie(d,i({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,unstable_actionStatus:E,defaultShouldRevalidate:!P&&l})))),y&&O.push({key:o,routeId:e.routeId,path:e.path,matches:a,match:d,controller:new AbortController})})),[S,O]}function oe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ie(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function se(e,t,n,r,o,i,s,a){let l=[t,...n.map((e=>e.route.id))].join("-");try{let c=s.get(l);c||(c=e({path:t,matches:n,patch:(e,t)=>{a.aborted||ae(e,t,r,o,i)}}),s.set(l,c)),c&&"object"==typeof(u=c)&&null!=u&&"then"in u&&await c}finally{s.delete(l)}var u}function ae(e,t,n,r,o){if(e){var i;let n=r[e];a(n,"No route found to patch children into: routeId = "+e);let s=m(t,o,[e,"patch",String((null==(i=n.children)?void 0:i.length)||"0")],r);n.children?n.children.push(...s):n.children=s}else{let e=m(t,o,["patch",String(n.length||"0")],r);n.push(...e)}}async function le(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];a(o,"No route found in manifest");let s={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;l(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(s[e]=r[e])}Object.assign(o,s),Object.assign(o,i({},t(o),{lazy:void 0}))}function ue(e){return Promise.all(e.matches.map((e=>e.resolve())))}function ce(e,t,n,r,o,i){let s=e.headers.get("Location");if(a(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!X.test(s)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);s=te(new URL(t.url),a,o,!0,s,i),e.headers.set("Location",s)}return e}function pe(e,t,n){if(X.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=I(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function de(e,t,n,r){let o=e.createURL(xe(t)).toString(),i={signal:n};if(r&&Te(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=he(r.formData):i.body=r.formData}return new Request(o,i)}function he(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function fe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function me(e,t,n,r,o,s,l,u){let{loaderData:c,errors:p}=function(e,t,n,r,o,i){let s,l={},u=null,c=!1,p={},d=r&&Pe(r[1])?r[1].error:void 0;return n.forEach(((n,r)=>{let h=t[r].route.id;if(a(!Se(n),"Cannot handle redirect results in processLoaderData"),Pe(n)){let t=n.error;if(void 0!==d&&(t=d,d=void 0),u=u||{},i)u[h]=t;else{let n=ve(e,h);null==u[n.route.id]&&(u[n.route.id]=t)}l[h]=void 0,c||(c=!0,s=q(n.error)?n.error.status:500),n.headers&&(p[h]=n.headers)}else Ee(n)?(o.set(h,n.deferredData),l[h]=n.deferredData.data,null==n.statusCode||200===n.statusCode||c||(s=n.statusCode),n.headers&&(p[h]=n.headers)):(l[h]=n.data,n.statusCode&&200!==n.statusCode&&!c&&(s=n.statusCode),n.headers&&(p[h]=n.headers))})),void 0!==d&&r&&(u={[r[0]]:d},l[r[0]]=void 0),{loaderData:l,errors:u,statusCode:s||200,loaderHeaders:p}}(t,n,r,o,u,!1);for(let t=0;t<s.length;t++){let{key:n,match:r,controller:o}=s[t];a(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let u=l[t];if(!o||!o.signal.aborted)if(Pe(u)){let t=ve(e.matches,null==r?void 0:r.route.id);p&&p[t.route.id]||(p=i({},p,{[t.route.id]:u.error})),e.fetchers.delete(n)}else if(Se(u))a(!1,"Unhandled fetcher revalidation redirect");else if(Ee(u))a(!1,"Unhandled fetcher deferred data");else{let t=Ne(u.data);e.fetchers.set(n,t)}}return{loaderData:c,errors:p}}function ge(e,t,n,r){let o=i({},t);for(let i of n){let n=i.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ye(e){return e?Pe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ve(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function be(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ce(e,t){let{pathname:n,routeId:r,method:o,type:i,message:s}=void 0===t?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(a="Bad Request","route-discovery"===i?l='Unable to match URL "'+n+'" - the `children()` function for route `'+r+"` threw the following error:\n"+s:o&&n&&r?l="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(a="Not Found",l='No route matches URL "'+n+'"'):405===e&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new B(e||500,a,new Error(l),!0)}function we(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Se(n))return{result:n,idx:t}}}function xe(e){return p(i({},"string"==typeof e?d(e):e,{hash:""}))}function Ee(e){return e.type===h.deferred}function Pe(e){return e.type===h.error}function Se(e){return(e&&e.type)===h.redirect}function Oe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Te(e){return z.has(e.toLowerCase())}async function _e(e,t,n,r,o,i){for(let s=0;s<n.length;s++){let l=n[s],u=t[s];if(!u)continue;let c=e.find((e=>e.route.id===u.route.id)),p=null!=c&&!oe(c,u)&&void 0!==(i&&i[u.route.id]);if(Ee(l)&&(o||p)){let e=r[s];a(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ve(l,e,o).then((e=>{e&&(n[s]=e||n[s])}))}}}async function Ve(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Re(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ie(e,t){let n="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Re(n||""))return e[e.length-1];let r=A(e);return r[r.length-1]}function ke(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==s?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}:void 0}function Ae(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function De(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ne(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}Symbol("deferred");const Le=t.createContext(null),je=t.createContext(null),Fe=t.createContext(null),Be=t.createContext(null),qe=t.createContext({outlet:null,matches:[],isDataRoute:!1}),He=t.createContext(null);function ze(){return null!=t.useContext(Be)}function Qe(){return ze()||a(!1),t.useContext(Be).location}function Ue(e){t.useContext(Fe).static||t.useLayoutEffect(e)}function We(){let{isDataRoute:e}=t.useContext(qe);return e?function(){let{router:e}=nt(et.UseNavigateStable),n=ot(tt.UseNavigateStable),r=t.useRef(!1);Ue((()=>{r.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),r.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Me({fromRouteId:n},o)))}),[e,n]);return o}():function(){ze()||a(!1);let e=t.useContext(Le),{basename:n,future:r,navigator:o}=t.useContext(Fe),{matches:i}=t.useContext(qe),{pathname:s}=Qe(),l=JSON.stringify(D(i,r.v7_relativeSplatPath)),u=t.useRef(!1);Ue((()=>{u.current=!0}));let c=t.useCallback((function(t,r){if(void 0===r&&(r={}),!u.current)return;if("number"==typeof t)return void o.go(t);let i=N(t,JSON.parse(l),s,"path"===r.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:M([n,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[n,o,l,s,e]);return c}()}const $e=t.createContext(null);function Ge(e,n){let{relative:r}=void 0===n?{}:n,{future:o}=t.useContext(Fe),{matches:i}=t.useContext(qe),{pathname:s}=Qe(),a=JSON.stringify(D(i,o.v7_relativeSplatPath));return t.useMemo((()=>N(e,JSON.parse(a),s,"path"===r)),[e,a,s,r])}function Je(n,r,o,i){ze()||a(!1);let{navigator:s}=t.useContext(Fe),{matches:l}=t.useContext(qe),u=l[l.length-1],c=u?u.params:{},p=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let h,f=Qe();if(r){var m;let e="string"==typeof r?d(r):r;"/"===p||(null==(m=e.pathname)?void 0:m.startsWith(p))||a(!1),h=e}else h=f;let y=h.pathname||"/",v=y;if("/"!==p){let e=p.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=g(n,{pathname:v}),C=function(e,n,r,o){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var s;if(null==(s=r)||!s.errors)return null;e=r.matches}let l=e,u=null==(i=r)?void 0:i.errors;if(null!=u){let e=l.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||a(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,p=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(p=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,l=p>=0?l.slice(0,p+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let s,a=!1,d=null,h=null;var f;r&&(s=u&&o.route.id?u[o.route.id]:void 0,d=o.route.errorElement||Ke,c&&(p<0&&0===i?(st[f="route-fallback"]||(st[f]=!0),a=!0,h=null):p===i&&(a=!0,h=o.route.hydrateFallbackElement||null)));let m=n.concat(l.slice(0,i+1)),g=()=>{let n;return n=s?d:a?h:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(Ze,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(Xe,{location:r.location,revalidation:r.revalidation,component:d,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:M([p,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:M([p,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,o,i);return r&&C?t.createElement(Be.Provider,{value:{location:Me({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:e.Pop}},C):C}function Ye(){let e=function(){var e;let n=t.useContext(He),r=rt(tt.UseRouteError),o=ot(tt.UseRouteError);return void 0!==n?n:null==(e=r.errors)?void 0:e[o]}(),n=q(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}const Ke=t.createElement(Ye,null);class Xe extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(qe.Provider,{value:this.props.routeContext},t.createElement(He.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ze(e){let{routeContext:n,match:r,children:o}=e,i=t.useContext(Le);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(qe.Provider,{value:n},o)}var et=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(et||{}),tt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tt||{});function nt(e){let n=t.useContext(Le);return n||a(!1),n}function rt(e){let n=t.useContext(je);return n||a(!1),n}function ot(e){let n=function(e){let n=t.useContext(qe);return n||a(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||a(!1),r.route.id}let it=0;const st={};function at(e){return function(e){let n=t.useContext(qe).outlet;return n?t.createElement($e.Provider,{value:e},n):n}(e.context)}function lt(n){let{basename:r="/",children:o=null,location:i,navigationType:s=e.Pop,navigator:l,static:u=!1,future:c}=n;ze()&&a(!1);let p=r.replace(/^\/*/,"/"),h=t.useMemo((()=>({basename:p,navigator:l,static:u,future:Me({v7_relativeSplatPath:!1},c)})),[p,c,l,u]);"string"==typeof i&&(i=d(i));let{pathname:f="/",search:m="",hash:g="",state:y=null,key:v="default"}=i,b=t.useMemo((()=>{let e=I(f,p);return null==e?null:{location:{pathname:e,search:m,hash:g,state:y,key:v},navigationType:s}}),[p,f,m,g,y,v,s]);return null==b?null:t.createElement(Fe.Provider,{value:h},t.createElement(Be.Provider,{children:o,value:b}))}n.startTransition,new Promise((()=>{})),t.Component;var ut=o(961),ct=o.t(ut,2);function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function dt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ht=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(jS){}function ft(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new B(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const mt=t.createContext({isTransitioning:!1}),gt=t.createContext(new Map),yt=n.startTransition,vt=ct.flushSync;function bt(e){vt?vt(e):e()}n.useId;class Ct{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function wt(e){let{fallbackElement:n,router:r,future:o}=e,[i,s]=t.useState(r.state),[a,l]=t.useState(),[u,c]=t.useState({isTransitioning:!1}),[p,d]=t.useState(),[h,f]=t.useState(),[m,g]=t.useState(),y=t.useRef(new Map),{v7_startTransition:v}=o||{},b=t.useCallback((e=>{v?function(e){yt?yt(e):e()}(e):e()}),[v]),C=t.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:o,unstable_viewTransitionOpts:i}=t;n.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(i&&!a){if(o){bt((()=>{h&&(p&&p.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=r.window.document.startViewTransition((()=>{bt((()=>s(e)))}));return t.finished.finally((()=>{bt((()=>{d(void 0),f(void 0),l(void 0),c({isTransitioning:!1})}))})),void bt((()=>f(t)))}h?(p&&p.resolve(),h.skipTransition(),g({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?bt((()=>s(e))):b((()=>s(e)))}),[r.window,h,p,y,b]);t.useLayoutEffect((()=>r.subscribe(C)),[r,C]),t.useEffect((()=>{u.isTransitioning&&!u.flushSync&&d(new Ct)}),[u]),t.useEffect((()=>{if(p&&a&&r.window){let e=a,t=p.promise,n=r.window.document.startViewTransition((async()=>{b((()=>s(e))),await t}));n.finished.finally((()=>{d(void 0),f(void 0),l(void 0),c({isTransitioning:!1})})),f(n)}}),[b,a,p,r.window]),t.useEffect((()=>{p&&a&&i.location.key===a.location.key&&p.resolve()}),[p,h,i.location,a]),t.useEffect((()=>{!u.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))}),[u.isTransitioning,m]),t.useEffect((()=>{}),[]);let w=t.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),x=r.basename||"/",E=t.useMemo((()=>({router:r,navigator:w,static:!1,basename:x})),[r,w,x]);return t.createElement(t.Fragment,null,t.createElement(Le.Provider,{value:E},t.createElement(je.Provider,{value:i},t.createElement(gt.Provider,{value:y.current},t.createElement(mt.Provider,{value:u},t.createElement(lt,{basename:x,location:i.location,navigationType:i.historyAction,navigator:w,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?t.createElement(xt,{routes:r.routes,future:r.future,state:i}):n))))),null)}function xt(e){let{routes:t,future:n,state:r}=e;return Je(t,void 0,r,n)}const Et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Pt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,St=t.forwardRef((function(e,n){let r,{onClick:o,relative:i,reloadDocument:s,replace:l,state:u,target:c,to:d,preventScrollReset:h,unstable_viewTransition:f}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ht),{basename:g}=t.useContext(Fe),y=!1;if("string"==typeof d&&Pt.test(d)&&(r=d,Et))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=I(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:y=!0}catch(e){}let v=function(e,n){let{relative:r}=void 0===n?{}:n;ze()||a(!1);let{basename:o,navigator:i}=t.useContext(Fe),{hash:s,pathname:l,search:u}=Ge(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:M([o,l])),i.createHref({pathname:c,search:u,hash:s})}(d,{relative:i}),b=function(e,n){let{target:r,replace:o,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l}=void 0===n?{}:n,u=We(),c=Qe(),d=Ge(e,{relative:a});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:p(c)===p(d);u(e,{replace:n,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l})}}),[c,u,d,o,i,r,e,s,a,l])}(d,{replace:l,state:u,target:c,preventScrollReset:h,relative:i,unstable_viewTransition:f});return t.createElement("a",pt({},m,{href:r||v,onClick:y||s?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:n,target:c}))}));var Ot,Tt;function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vt(e,t){if(e){if("string"==typeof e)return _t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||Vt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ot||(Ot={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Tt||(Tt={}));var It=(0,t.createContext)({show:!1,toggle:function(){}});const kt=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1];return t.createElement(It.Provider,{value:{show:o,toggle:function(){i(!o)}}},n)};function At(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Dt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){At(i,r,o,s,a,"next",e)}function a(e){At(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Nt=o(756),Mt=o.n(Nt);function Lt(){return(Lt=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/user/");case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var jt={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ft=(0,t.createContext)({user:jt,logout:function(){}});const Bt=function(e){var n=e.children,r=Rt((0,t.useState)(jt),2),o=r[0],i=r[1];function s(){return(s=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/logout");case 2:i(jt);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,t.useEffect)((function(){(function(){return Lt.apply(this,arguments)})().then((function(e){i(e)}))}),[]),t.createElement(Ft.Provider,{value:{user:o,logout:function(){return s.apply(this,arguments)}}},n)};var qt=(0,t.createContext)({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:function(){}});const Ht=function(e){var n=e.children,r=Rt((0,t.useState)({selectedYears:[],selectedNrens:[]}),2),o=r[0],i=r[1];return t.createElement(qt.Provider,{value:{filterSelection:o,setFilterSelection:i}},n)};var zt=(0,t.createContext)(null);const Qt=function(e){var n=e.children,r=(0,t.useRef)(null);return t.createElement(zt.Provider,{value:r},n)};var Ut=(0,t.createContext)({preview:!1,setPreview:function(){}});const Wt=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1];return t.createElement(Ut.Provider,{value:{preview:o,setPreview:i}},n)};function $t(){return($t=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var Gt=(0,t.createContext)({nrens:[],setNrens:function(){}});const Jt=function(e){var n=e.children,r=Rt((0,t.useState)([]),2),o=r[0],i=r[1];return(0,t.useEffect)((function(){(function(){return $t.apply(this,arguments)})().then((function(e){return i(e)}))}),[]),t.createElement(Gt.Provider,{value:{nrens:o,setNrens:i}},n)};function Yt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kt(e){return function(e){if(Array.isArray(e))return _t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Zt(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}function tn(e,t,n){return(t=Zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=["category","action","name","value"];function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=function(){return function(e,t,n){return t&&en(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tn(this,"mutationObserver",void 0),!t.urlBase)throw new Error("Matomo urlBase is required.");if(!t.siteId)throw new Error("Matomo siteId is required.");this.initialize(t)}),[{key:"initialize",value:function(e){var t=this,n=e.urlBase,r=e.siteId,o=e.userId,i=e.trackerUrl,s=e.srcUrl,a=e.disabled,l=e.heartBeat,u=e.requireConsent,c=void 0!==u&&u,p=e.configurations,d=void 0===p?{}:p,h="/"!==n[n.length-1]?"".concat(n,"/"):n;if("undefined"!=typeof window&&(window._paq=window._paq||[],0===window._paq.length&&!a)){var f;c&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",null!=i?i:"".concat(h,"matomo.php")),this.pushInstruction("setSiteId",r),o&&this.pushInstruction("setUserId",o),Object.entries(d).forEach((function(e){var n=Rt(e,2),r=n[0],o=n[1];o instanceof Array?t.pushInstruction.apply(t,[r].concat(Kt(o))):t.pushInstruction(r,o)})),(!l||l&&l.active)&&this.enableHeartBeatTimer(null!==(f=l&&l.seconds)&&void 0!==f?f:15);var m=document,g=m.createElement("script"),y=m.getElementsByTagName("script")[0];g.type="text/javascript",g.async=!0,g.defer=!0,g.src=s||"".concat(h,"matomo.js"),y&&y.parentNode&&y.parentNode.insertBefore(g,y)}}},{key:"enableHeartBeatTimer",value:function(e){this.pushInstruction("enableHeartBeatTimer",e)}},{key:"trackEventsForElements",value:function(e){var t=this;e.length&&e.forEach((function(e){e.addEventListener("click",(function(){var n=e.dataset,r=n.matomoCategory,o=n.matomoAction,i=n.matomoName,s=n.matomoValue;if(!r||!o)throw new Error("Error: data-matomo-category and data-matomo-action are required.");t.trackEvent({category:r,action:o,name:i,value:Number(s)})}))}))}},{key:"trackEvents",value:function(){var e=this,t='[data-matomo-event="click"]',n=!1;if(this.mutationObserver||(n=!0,this.mutationObserver=new MutationObserver((function(n){n.forEach((function(n){n.addedNodes.forEach((function(n){if(n instanceof HTMLElement){n.matches(t)&&e.trackEventsForElements([n]);var r=Array.from(n.querySelectorAll(t));e.trackEventsForElements(r)}}))}))}))),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),n){var r=Array.from(document.querySelectorAll(t));this.trackEventsForElements(r)}}},{key:"stopObserving",value:function(){this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"trackEvent",value:function(e){var t=e.category,n=e.action,r=e.name,o=e.value,i=function(e,t){if(null==e)return{};var n,r,o=Yt(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,nn);if(!t||!n)throw new Error("Error: category and action are required.");this.track(on({data:["trackEvent",t,n,r,o]},i))}},{key:"giveConsent",value:function(){this.pushInstruction("setConsentGiven")}},{key:"trackLink",value:function(e){var t=e.href,n=e.linkType,r=void 0===n?"link":n;this.pushInstruction("trackLink",t,r)}},{key:"trackPageView",value:function(e){this.track(on({data:["trackPageView"]},e))}},{key:"track",value:function(e){var t=this,n=e.data,r=void 0===n?[]:n,o=e.documentTitle,i=void 0===o?window.document.title:o,s=e.href,a=e.customDimensions,l=void 0!==a&&a;r.length&&(l&&Array.isArray(l)&&l.length&&l.map((function(e){return t.pushInstruction("setCustomDimension",e.id,e.value)})),this.pushInstruction("setCustomUrl",null!=s?s:window.location.href),this.pushInstruction("setDocumentTitle",i),this.pushInstruction.apply(this,Kt(r)))}},{key:"pushInstruction",value:function(e){if("undefined"!=typeof window){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];window._paq.push([e].concat(n))}return this}}])}(),an=(0,t.createContext)({consent:null,setConsent:function(){}});const ln=function(e){var n=e.children,r=(0,t.useState)(function(){var e=localStorage.getItem("matomo_consent");if(e){var t=JSON.parse(e);if(new Date(t.expiry)>new Date)return t.consent}return null}()),o=Rt(r,2),i=o[0],s=o[1];return t.createElement(an.Provider,{value:{setConsent:function(e){return s(e)},consent:i}},n)};var un=(0,t.createContext)(null);const cn=function(e){var n,r=e.children,o=un,i=(n={urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:!(0,t.useContext)(an).consent},"localhost"===window.location.hostname&&(console.log("Matomo tracking disabled in development mode."),n.disabled=!0),new sn(n));return t.createElement(o.Provider,{value:i},r)},pn=function(e){var n=e.children;return t.createElement(ln,null,t.createElement(cn,null,t.createElement(kt,null,t.createElement(Bt,null,t.createElement(Ht,null,t.createElement(Qt,null,t.createElement(Wt,null,t.createElement(Jt,null,n))))))))};var dn=function(e){return e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e}({}),hn=function(e){return e.network_services="network_services",e.isp_support="isp_support",e.security="security",e.identity="identity",e.collaboration="collaboration",e.multimedia="multimedia",e.storage_and_hosting="storage_and_hosting",e.professional_services="professional_services",e}({}),fn=o(942),mn=o.n(fn),gn=o(848);const yn=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:vn,Provider:bn}=yn;function Cn(e,n){const{prefixes:r}=(0,t.useContext)(yn);return e||r[n]||n}function wn(){const{breakpoints:e}=(0,t.useContext)(yn);return e}function xn(){const{minBreakpoint:e}=(0,t.useContext)(yn);return e}function En(){const{dir:e}=(0,t.useContext)(yn);return"rtl"===e}const Pn=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=Cn(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,gn.jsx)(n,{ref:i,...o,className:mn()(r,t?`${s}${a}`:s)})}));Pn.displayName="Container";const Sn=Pn,On=t.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=Cn(e,"row"),s=wn(),a=xn(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==a?`-${e}`:"";null!=n&&u.push(`${l}${o}-${n}`)})),(0,gn.jsx)(n,{ref:o,...r,className:mn()(t,i,...u)})}));On.displayName="Row";const Tn=On,_n=t.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:n,...r}){t=Cn(t,"col");const o=wn(),i=xn(),s=[],a=[];return o.forEach((e=>{const n=r[e];let o,l,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:l,order:u}=n):o=n;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...r,className:mn()(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,gn.jsx)(o,{...r,ref:t,className:mn()(n,!s.length&&i)})}));_n.displayName="Col";const Vn=_n,Rn=o.p+"9ab20ac1d835b50b2e01.svg",In=function(){var e=(0,t.useContext)(Ft).user,n=Qe().pathname;return t.createElement("div",{className:"external-page-nav-bar"},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,{xs:10},t.createElement("div",{className:"nav-wrapper"},t.createElement("nav",{className:"header-nav"},t.createElement("a",{href:"https://geant.org/"},t.createElement("img",{src:Rn})),t.createElement("ul",null,t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"/"},"COMPENDIUM")))))),t.createElement(Vn,{xs:2},e.permissions.admin&&!n.includes("survey")&&t.createElement("div",{className:"nav-link",style:{float:"right"}},t.createElement("a",{className:"nav-link-entry",href:"/survey"},"Go to Survey"))))))},kn=o.p+"a0a202b04b5c8b9d1b93.svg",An=o.p+"67fa101547c0e32181b3.png",Dn=function(){return t.createElement("footer",{className:"page-footer pt-3"},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,null,t.createElement("a",{href:"https://geant.org"},t.createElement("img",{src:kn,className:"m-3",style:{maxWidth:"100px"}})),t.createElement("img",{src:An,className:"m-3",style:{maxWidth:"200px"}})),t.createElement(Vn,{className:"mt-4 text-end"},t.createElement("span",null,t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/"},"Disclaimer"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/"},"GEANT Anti‑Slavery Policy"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:function(){localStorage.removeItem("matomo_consent"),window.location.reload()}},"Analytics Consent"))))))},Nn=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-body"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Nn.displayName="CardBody";const Mn=Nn,Ln=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-footer"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Ln.displayName="CardFooter";const jn=Ln,Fn=t.createContext(null);Fn.displayName="CardHeaderContext";const Bn=Fn,qn=t.forwardRef((({bsPrefix:e,className:n,as:r="div",...o},i)=>{const s=Cn(e,"card-header"),a=(0,t.useMemo)((()=>({cardHeaderBsPrefix:s})),[s]);return(0,gn.jsx)(Bn.Provider,{value:a,children:(0,gn.jsx)(r,{ref:i,...o,className:mn()(n,s)})})}));qn.displayName="CardHeader";const Hn=qn,zn=t.forwardRef((({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=Cn(e,"card-img");return(0,gn.jsx)(r,{ref:i,className:mn()(n?`${s}-${n}`:s,t),...o})}));zn.displayName="CardImg";const Qn=zn,Un=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-img-overlay"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Un.displayName="CardImgOverlay";const Wn=Un,$n=t.forwardRef((({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=Cn(t,"card-link"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));$n.displayName="CardLink";const Gn=$n,Jn=e=>t.forwardRef(((t,n)=>(0,gn.jsx)("div",{...t,ref:n,className:mn()(t.className,e)}))),Yn=Jn("h6"),Kn=t.forwardRef((({className:e,bsPrefix:t,as:n=Yn,...r},o)=>(t=Cn(t,"card-subtitle"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Kn.displayName="CardSubtitle";const Xn=Kn,Zn=t.forwardRef((({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=Cn(t,"card-text"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Zn.displayName="CardText";const er=Zn,tr=Jn("h5"),nr=t.forwardRef((({className:e,bsPrefix:t,as:n=tr,...r},o)=>(t=Cn(t,"card-title"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));nr.displayName="CardTitle";const rr=nr,or=t.forwardRef((({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=Cn(e,"card");return(0,gn.jsx)(a,{ref:u,...l,className:mn()(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?(0,gn.jsx)(Mn,{children:s}):s})}));or.displayName="Card";const ir=Object.assign(or,{Img:Qn,Title:rr,Subtitle:Xn,Body:Mn,Link:Gn,Text:er,Header:Hn,Footer:jn,ImgOverlay:Wn}),sr=o.p+"4b5816823ff8fb2eb238.svg",ar=o.p+"b604b5dd99b466fbf823.svg",lr=function(){var e=(0,t.useContext)(un),n=(0,t.useCallback)((function(t){return null==e?void 0:e.trackPageView(t)}),[e]),r=(0,t.useCallback)((function(t){return null==e?void 0:e.trackEvent(t)}),[e]),o=(0,t.useCallback)((function(){return null==e?void 0:e.trackEvents()}),[e]),i=(0,t.useCallback)((function(t){return null==e?void 0:e.trackLink(t)}),[e]),s=(0,t.useCallback)((function(){}),[]),a=(0,t.useCallback)((function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==e||e.pushInstruction.apply(e,[t].concat(r))}),[e]);return{trackEvent:r,trackEvents:o,trackPageView:n,trackLink:i,enableLinkTracking:s,pushInstruction:a}},ur=function(){var e=lr().trackPageView;return(0,t.useEffect)((function(){e({documentTitle:"GEANT Compendium Landing Page"})}),[e]),t.createElement(Sn,{className:"py-5 grey-container"},t.createElement(Tn,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS"),t.createElement("div",{className:"wordwrap pt-4"},t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."),t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."),t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form.")))),t.createElement(Tn,null,t.createElement(Vn,null,t.createElement(Sn,{style:{backgroundColor:"white"},className:"rounded-border"},t.createElement(Tn,{className:"justify-content-md-center"},t.createElement(Vn,{align:"center"},t.createElement(ir,{border:"light",style:{width:"18rem"}},t.createElement(St,{to:"/data",className:"link-text"},t.createElement(ir.Img,{src:sr}),t.createElement(ir.Body,null,t.createElement(ir.Title,null,"Compendium Data"),t.createElement(ir.Text,null,t.createElement("span",null,"Statistical representation of the annual Compendium Survey data is available here")))))),t.createElement(Vn,{align:"center"},t.createElement(ir,{border:"light",style:{width:"18rem"}},t.createElement("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer"},t.createElement(ir.Img,{src:ar}),t.createElement(ir.Body,null,t.createElement(ir.Title,null,"Compendium Reports"),t.createElement(ir.Text,null,"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"))))))))))};var cr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pr=t.createContext&&t.createContext(cr),dr=["attr","size","title"];function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(e){return e&&e.map(((e,n)=>t.createElement(e.tag,mr({key:n},e.attr),gr(e.child))))}function yr(e){return n=>t.createElement(vr,hr({attr:mr({},e.attr)},n),gr(e.child))}function vr(e){var n=n=>{var r,{attr:o,size:i,title:s}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,dr),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",hr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,a,{className:r,style:mr(mr({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&t.createElement("title",null,s),e.children)};return void 0!==pr?t.createElement(pr.Consumer,null,(e=>n(e))):n(cr)}function br(e){return yr({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function Cr(e){return yr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(e)}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Er=function(e){var n=e.title,r=e.children,o=e.startCollapsed,i=e.theme,s=void 0===i?"":i,a=Rt((0,t.useState)(!!o),2),l=a[0],u=a[1],c={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"};return s&&(c=xr(xr({},c),{},{color:"black",fontWeight:"bold"})),t.createElement("div",{className:"collapsible-box".concat(s," p-0")},t.createElement(Tn,null,t.createElement(Vn,null,t.createElement("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3"},n)),t.createElement(Vn,{className:"flex-grow-0 flex-shrink-1"},t.createElement("div",{className:"toggle-btn".concat(s," p-").concat(s?3:2),onClick:function(){return u(!l)}},l?t.createElement(Cr,{style:c}):t.createElement(br,{style:c})))),t.createElement("div",{className:"collapsible-content".concat(l?" collapsed":"")},r))},Pr=function(e){var n=e.section;return t.createElement("div",{className:"bold-caps-17pt section-container"},t.createElement("div",{style:{display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"}},t.createElement("span",null,"Compendium ",t.createElement("br",null),t.createElement("span",{style:{float:"right"}},n))),t.createElement("img",{src:ar,style:{maxWidth:"4rem"}}))},Sr=function(e){var n=e.type,r="";return"data"==n?r+=" compendium-data-header":"reports"==n&&(r=" compendium-reports-header"),t.createElement("div",{className:r},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,{sm:8},t.createElement("h1",{className:"bold-caps-30pt",style:{marginTop:"0.5rem"}},t.createElement(St,{to:"data"===n?"/data":"/",style:{textDecoration:"none",color:"white"}},t.createElement("span",null,"Compendium ","data"===n?"Data":"Reports")))),t.createElement(Vn,{sm:4},t.createElement("a",{style:{color:"inherit"},href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer"},t.createElement(Pr,{section:"Reports"}))))))},Or=function(e){var n=e.children,r=e.type,o="";return"data"==r?o+=" compendium-data-banner":"reports"==r&&(o=" compendium-reports-banner"),t.createElement("div",{className:o},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Tn,null,t.createElement("div",{className:"section-container"},t.createElement("img",{src:sr,style:{maxWidth:"7rem",marginBottom:"1rem"}}),t.createElement("div",{style:{display:"flex",alignSelf:"right"}},t.createElement("div",{className:"center-text",style:{paddingTop:"1rem"}},n)))))))};var Tr=function(e){return e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e}({}),_r=function(e){return e.CSV="CSV",e.EXCEL="EXCEL",e}({}),Vr=function(e){return e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e}({}),Rr={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},Ir={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},kr={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function Ar(){var e=(0,t.useContext)(Ut),n=e.preview,r=e.setPreview,o=(0,t.useContext)(Ft).user,i=Rt(function(e){let n=t.useRef(dt(e)),r=t.useRef(!1),o=Qe(),i=t.useMemo((()=>function(e,t){let n=dt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(o.search,r.current?null:n.current)),[o.search]),s=We(),a=t.useCallback(((e,t)=>{const n=dt("function"==typeof e?e(i):e);r.current=!0,s("?"+n,t)}),[s,i]);return[i,a]}(),1)[0].get("preview");return(0,t.useEffect)((function(){null!==i&&o.permissions.admin&&r(!0)}),[i,r,o]),n}const Dr=function(){Ar();var e=lr().trackPageView;return t.useEffect((function(){e({documentTitle:"Compendium Data"})}),[e]),t.createElement("main",{className:"grow"},t.createElement(Sr,{type:"data"}),t.createElement(Or,{type:"data"},t.createElement("p",{className:"wordwrap"},"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing.")),t.createElement(Sn,{className:"pt-5"},t.createElement(Er,{title:Tr.Organisation},t.createElement("div",{className:"collapsible-column"},t.createElement("h6",{className:"section-title"},"Budget, Income and Billing"),t.createElement(St,{to:"/budget",className:"link-text-underline"},t.createElement("span",null,"Budget of NRENs per Year")),t.createElement(St,{to:"/funding",className:"link-text-underline"},t.createElement("span",null,"Income Source of NRENs")),t.createElement(St,{to:"/charging",className:"link-text-underline"},t.createElement("span",null,"Charging Mechanism of NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Staff and Projects"),t.createElement(St,{to:"/employee-count",className:"link-text-underline"},t.createElement("span",null,"Number of NREN Employees")),t.createElement(St,{to:"/roles",className:"link-text-underline"},t.createElement("span",null,"Roles of NREN employees (Technical v. Non-Technical)")),t.createElement(St,{to:"/employment",className:"link-text-underline"},t.createElement("span",null,"Types of Employment within NRENs")),t.createElement(St,{to:"/suborganisations",className:"link-text-underline"},t.createElement("span",null,"NREN Sub-Organisations")),t.createElement(St,{to:"/parentorganisation",className:"link-text-underline"},t.createElement("span",null,"NREN Parent Organisations")),t.createElement(St,{to:"/ec-projects",className:"link-text-underline"},t.createElement("span",null,"NREN Involvement in European Commission Projects")))),t.createElement(Er,{title:Tr.Policy,startCollapsed:!0},t.createElement("div",{className:"collapsible-column"},t.createElement(St,{to:"/policy",className:"link-text-underline"},t.createElement("span",null,"NREN Policies")),t.createElement("h6",{className:"section-title"},"Standards"),t.createElement(St,{to:"/audits",className:"link-text-underline"},t.createElement("span",null,"External and Internal Audits of Information Security Management Systems")),t.createElement(St,{to:"/business-continuity",className:"link-text-underline"},t.createElement("span",null,"NREN Business Continuity Planning")),t.createElement(St,{to:"/central-procurement",className:"link-text-underline"},t.createElement("span",null,"Central Procurement of Software")),t.createElement(St,{to:"/crisis-management",className:"link-text-underline"},t.createElement("span",null,"Crisis Management Procedures")),t.createElement(St,{to:"/crisis-exercise",className:"link-text-underline"},t.createElement("span",null,"Crisis Exercises - NREN Operation and Participation")),t.createElement(St,{to:"/security-control",className:"link-text-underline"},t.createElement("span",null,"Security Controls Used by NRENs")),t.createElement(St,{to:"/services-offered",className:"link-text-underline"},t.createElement("span",null,"Services Offered by NRENs by Types of Users")),t.createElement(St,{to:"/corporate-strategy",className:"link-text-underline"},t.createElement("span",null,"NREN Corporate Strategies ")),t.createElement(St,{to:"/service-level-targets",className:"link-text-underline"},t.createElement("span",null,"NRENs Offering Service Level Targets")),t.createElement(St,{to:"/service-management-framework",className:"link-text-underline"},t.createElement("span",null,"NRENs Operating a Formal Service Management Framework")))),t.createElement(Er,{title:Tr.ConnectedUsers,startCollapsed:!0},t.createElement("div",{className:"collapsible-column"},t.createElement("h6",{className:"section-title"},"Connected Users"),t.createElement(St,{to:"/institutions-urls",className:"link-text-underline"},t.createElement("span",null,"Webpages Listing Institutions and Organisations Connected to NREN Networks")),t.createElement(St,{to:"/connected-proportion",className:"link-text-underline"},t.createElement("span",null,"Proportion of Different Categories of Institutions Served by NRENs")),t.createElement(St,{to:"/connectivity-level",className:"link-text-underline"},t.createElement("span",null,"Level of IP Connectivity by Institution Type")),t.createElement(St,{to:"/connection-carrier",className:"link-text-underline"},t.createElement("span",null,"Methods of Carrying IP Traffic to Users")),t.createElement(St,{to:"/connectivity-load",className:"link-text-underline"},t.createElement("span",null,"Connectivity Load")),t.createElement(St,{to:"/connectivity-growth",className:"link-text-underline"},t.createElement("span",null,"Connectivity Growth")),t.createElement(St,{to:"/remote-campuses",className:"link-text-underline"},t.createElement("span",null,"NREN Connectivity to Remote Campuses in Other Countries")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Connected Users - Commercial"),t.createElement(St,{to:"/commercial-charging-level",className:"link-text-underline"},t.createElement("span",null,"Commercial Charging Level")),t.createElement(St,{to:"/commercial-connectivity",className:"link-text-underline"},t.createElement("span",null,"Commercial Connectivity")))),t.createElement(Er,{title:Tr.Network,startCollapsed:!0},t.createElement("div",{className:"collapsible-column"},t.createElement("h6",{className:"section-title"},"Connectivity"),t.createElement(St,{to:"/traffic-volume",className:"link-text-underline"},t.createElement("span",null,"NREN Traffic - NREN Customers & External Networks")),t.createElement(St,{to:"/iru-duration",className:"link-text-underline"},t.createElement("span",null,"Average Duration of IRU leases of Fibre by NRENs")),t.createElement(St,{to:"/fibre-light",className:"link-text-underline"},t.createElement("span",null,"Approaches to lighting NREN fibre networks")),t.createElement(St,{to:"/dark-fibre-lease",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (National)")),t.createElement(St,{to:"/dark-fibre-lease-international",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (International)")),t.createElement(St,{to:"/dark-fibre-installed",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Installed Dark Fibre")),t.createElement(St,{to:"/network-map",className:"link-text-underline"},t.createElement("span",null,"NREN Network Maps")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Performance Monitoring & Management"),t.createElement(St,{to:"/monitoring-tools",className:"link-text-underline"},t.createElement("span",null,"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions")),t.createElement(St,{to:"/pert-team",className:"link-text-underline"},t.createElement("span",null,"NRENs with Performance Enhancement Response Teams")),t.createElement(St,{to:"/passive-monitoring",className:"link-text-underline"},t.createElement("span",null,"Methods for Passively Monitoring International Traffic")),t.createElement(St,{to:"/traffic-stats",className:"link-text-underline"},t.createElement("span",null,"Traffic Statistics ")),t.createElement(St,{to:"/weather-map",className:"link-text-underline"},t.createElement("span",null,"NREN Online Network Weather Maps ")),t.createElement(St,{to:"/certificate-provider",className:"link-text-underline"},t.createElement("span",null,"Certification Services used by NRENs")),t.createElement(St,{to:"/siem-vendors",className:"link-text-underline"},t.createElement("span",null,"Vendors of SIEM/SOC systems used by NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Alienwave"),t.createElement(St,{to:"/alien-wave",className:"link-text-underline"},t.createElement("span",null,"NREN Use of 3rd Party Alienwave/Lightpath Services")),t.createElement(St,{to:"/alien-wave-internal",className:"link-text-underline"},t.createElement("span",null,"Internal NREN Use of Alien Waves")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Capacity"),t.createElement(St,{to:"/capacity-largest-link",className:"link-text-underline"},t.createElement("span",null,"Capacity of the Largest Link in an NREN Network")),t.createElement(St,{to:"/external-connections",className:"link-text-underline"},t.createElement("span",null,"NREN External IP Connections")),t.createElement(St,{to:"/capacity-core-ip",className:"link-text-underline"},t.createElement("span",null,"NREN Core IP Capacity")),t.createElement(St,{to:"/non-rne-peers",className:"link-text-underline"},t.createElement("span",null,"Number of Non-R&E Networks NRENs Peer With")),t.createElement(St,{to:"/traffic-ratio",className:"link-text-underline"},t.createElement("span",null,"Types of traffic in NREN networks")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"),t.createElement(St,{to:"/ops-automation",className:"link-text-underline"},t.createElement("span",null,"NREN Automation of Operational Processes")),t.createElement(St,{to:"/network-automation",className:"link-text-underline"},t.createElement("span",null,"Network Tasks for which NRENs Use Automation ")),t.createElement(St,{to:"/nfv",className:"link-text-underline"},t.createElement("span",null,"Kinds of Network Function Virtualisation used by NRENs")))),t.createElement(Er,{title:Tr.Services,startCollapsed:!0},t.createElement("div",{className:"collapsible-column"},t.createElement(St,{to:"/network-services",className:"link-text-underline"},t.createElement("span",null,"Network services")),t.createElement(St,{to:"/isp-support-services",className:"link-text-underline"},t.createElement("span",null,"ISP support services")),t.createElement(St,{to:"/security-services",className:"link-text-underline"},t.createElement("span",null,"Security services")),t.createElement(St,{to:"/identity-services",className:"link-text-underline"},t.createElement("span",null,"Identity services")),t.createElement(St,{to:"/collaboration-services",className:"link-text-underline"},t.createElement("span",null,"Collaboration services")),t.createElement(St,{to:"/multimedia-services",className:"link-text-underline"},t.createElement("span",null,"Multimedia services")),t.createElement(St,{to:"/storage-and-hosting-services",className:"link-text-underline"},t.createElement("span",null,"Storage and hosting services")),t.createElement(St,{to:"/professional-services",className:"link-text-underline"},t.createElement("span",null,"Professional services"))))))},Nr=!("undefined"==typeof window||!window.document||!window.document.createElement);var Mr=!1,Lr=!1;try{var jr={get passive(){return Mr=!0},get once(){return Lr=Mr=!0}};Nr&&(window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,!0))}catch(jS){}const Fr=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Lr){var o=r.once,i=r.capture,s=n;!Lr&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=s),e.addEventListener(t,s,Mr?r:i)}e.addEventListener(t,n,r)};function Br(e){return e&&e.ownerDocument||document}const qr=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var Hr;function zr(e){if((!Hr&&0!==Hr||e)&&Nr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Hr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Hr}function Qr(){return(0,t.useState)(null)}const Ur=function(e){const n=(0,t.useRef)(e);return(0,t.useEffect)((()=>{n.current=e}),[e]),n};function Wr(e){const n=Ur(e);return(0,t.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const $r=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,Gr=function(e,n){return(0,t.useMemo)((()=>function(e,t){const n=$r(e),r=$r(t);return e=>{n&&n(e),r&&r(e)}}(e,n)),[e,n])};function Jr(e){const n=function(e){const n=(0,t.useRef)(e);return n.current=e,n}(e);(0,t.useEffect)((()=>()=>n.current()),[])}var Yr=/([A-Z])/g,Kr=/^ms-/;function Xr(e){return function(e){return e.replace(Yr,"-$1").toLowerCase()}(e).replace(Kr,"-ms-")}var Zr=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const eo=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Xr(t))||function(e,t){return function(e){var t=Br(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Xr(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Zr.test(e))}(o)?r+=o+"("+i+") ":n+=Xr(o)+": "+i+";":e.style.removeProperty(Xr(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},to=function(e,t,n,r){return Fr(e,t,n,r),function(){qr(e,t,n,r)}};function no(e,t,n,r){var o,i;null==n&&(i=-1===(o=eo(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=to(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),a=to(e,"transitionend",t);return function(){s(),a()}}function ro(e){void 0===e&&(e=Br());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}function oo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function io(){const e=(0,t.useRef)(!0),n=(0,t.useRef)((()=>e.current));return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),n.current}function so(e){const n=(0,t.useRef)(null);return(0,t.useEffect)((()=>{n.current=e})),n.current}const ao="data-rr-ui-";function lo(e){return`${ao}${e}`}const uo=lo("modal-open"),co=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(eo(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(uo,""),eo(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(uo),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},po=(0,t.createContext)(Nr?window:void 0);function ho(){return(0,t.useContext)(po)}po.Provider;const fo=(e,t)=>Nr?null==e?(t||Br()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null,mo=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,go="undefined"!=typeof document||mo?t.useLayoutEffect:t.useEffect,yo=function({children:e,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const s=(0,t.useRef)(null),a=(0,t.useRef)(n),l=Wr(r);(0,t.useEffect)((()=>{n?a.current=!0:l(s.current)}),[n,l]);const u=Gr(s,e.ref),c=(0,t.cloneElement)(e,{ref:u});return n?c:i||!a.current&&o?null:c},vo=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];const bo=["component"],Co=t.forwardRef(((e,n)=>{let{component:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,bo);const i=function(e){let{onEnter:n,onEntering:r,onEntered:o,onExit:i,onExiting:s,onExited:a,addEndListener:l,children:u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,vo);const{major:p}=function(){const e=t.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}(),d=p>=19?u.props.ref:u.ref,h=(0,t.useRef)(null),f=Gr(h,"function"==typeof u?null:d),m=e=>t=>{e&&h.current&&e(h.current,t)},g=(0,t.useCallback)(m(n),[n]),y=(0,t.useCallback)(m(r),[r]),v=(0,t.useCallback)(m(o),[o]),b=(0,t.useCallback)(m(i),[i]),C=(0,t.useCallback)(m(s),[s]),w=(0,t.useCallback)(m(a),[a]),x=(0,t.useCallback)(m(l),[l]);return Object.assign({},c,{nodeRef:h},n&&{onEnter:g},r&&{onEntering:y},o&&{onEntered:v},i&&{onExit:b},s&&{onExiting:C},a&&{onExited:w},l&&{addEndListener:x},{children:"function"==typeof u?(e,t)=>u(e,Object.assign({},t,{ref:f})):(0,t.cloneElement)(u,{ref:f})})}(o);return(0,gn.jsx)(r,Object.assign({ref:n},i))})),wo=Co;function xo({children:e,in:n,onExited:r,onEntered:o,transition:i}){const[s,a]=(0,t.useState)(!n);n&&s&&a(!1);const l=function({in:e,onTransition:n}){const r=(0,t.useRef)(null),o=(0,t.useRef)(!0),i=Wr(n);return go((()=>{if(!r.current)return;let t=!1;return i({in:e,element:r.current,initial:o.current,isStale:()=>t}),()=>{t=!0}}),[e,i]),go((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(a(!0),null==r||r(e.element)))}),(t=>{throw e.in||a(!0),t}))}}),u=Gr(l,e.ref);return s&&!n?null:(0,t.cloneElement)(e,{ref:u})}function Eo(e,t,n){return e?(0,gn.jsx)(wo,Object.assign({},n,{component:e})):t?(0,gn.jsx)(xo,Object.assign({},n,{transition:t})):(0,gn.jsx)(yo,Object.assign({},n))}const Po=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let So;const Oo=(0,t.forwardRef)(((e,n)=>{let{show:r=!1,role:o="dialog",className:i,style:s,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:p,transition:d,runTransition:h,backdropTransition:f,runBackdropTransition:m,autoFocus:g=!0,enforceFocus:y=!0,restoreFocus:v=!0,restoreFocusOptions:b,renderDialog:C,renderBackdrop:w=(e=>(0,gn.jsx)("div",Object.assign({},e))),manager:x,container:E,onShow:P,onHide:S=(()=>{}),onExit:O,onExited:T,onExiting:_,onEnter:V,onEntering:R,onEntered:I}=e,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Po);const A=ho(),D=function(e,n){const r=ho(),[o,i]=(0,t.useState)((()=>fo(e,null==r?void 0:r.document)));if(!o){const t=fo(e);t&&i(t)}return(0,t.useEffect)((()=>{}),[n,o]),(0,t.useEffect)((()=>{const t=fo(e);t!==o&&i(t)}),[e,o]),o}(E),N=function(e){const n=ho(),r=e||function(e){return So||(So=new co({ownerDocument:null==e?void 0:e.document})),So}(n),o=(0,t.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,t.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,t.useCallback)((e=>{o.current.backdrop=e}),[])})}(x),M=io(),L=so(r),[j,F]=(0,t.useState)(!r),B=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(()=>N),[N]),Nr&&!L&&r&&(B.current=ro(null==A?void 0:A.document)),r&&j&&F(!1);const q=Wr((()=>{if(N.add(),$.current=to(document,"keydown",U),W.current=to(document,"focus",(()=>setTimeout(z)),!0),P&&P(),g){var e,t;const n=ro(null!=(e=null==(t=N.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);N.dialog&&n&&!oo(N.dialog,n)&&(B.current=n,N.dialog.focus())}})),H=Wr((()=>{var e;N.remove(),null==$.current||$.current(),null==W.current||W.current(),v&&(null==(e=B.current)||null==e.focus||e.focus(b),B.current=null)}));(0,t.useEffect)((()=>{r&&D&&q()}),[r,D,q]),(0,t.useEffect)((()=>{j&&H()}),[j,H]),Jr((()=>{H()}));const z=Wr((()=>{if(!y||!M()||!N.isTopModal())return;const e=ro(null==A?void 0:A.document);N.dialog&&e&&!oo(N.dialog,e)&&N.dialog.focus()})),Q=Wr((e=>{e.target===e.currentTarget&&(null==c||c(e),!0===l&&S())})),U=Wr((e=>{u&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&N.isTopModal()&&(null==p||p(e),e.defaultPrevented||S())})),W=(0,t.useRef)(),$=(0,t.useRef)();if(!D)return null;const G=Object.assign({role:o,ref:N.setDialogRef,"aria-modal":"dialog"===o||void 0},k,{style:s,className:i,tabIndex:-1});let J=C?C(G):(0,gn.jsx)("div",Object.assign({},G,{children:t.cloneElement(a,{role:"document"})}));J=Eo(d,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:O,onExiting:_,onExited:(...e)=>{F(!0),null==T||T(...e)},onEnter:V,onEntering:R,onEntered:I,children:J});let Y=null;return l&&(Y=w({ref:N.setBackdropRef,onClick:Q}),Y=Eo(f,m,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Y})),(0,gn.jsx)(gn.Fragment,{children:ut.createPortal((0,gn.jsxs)(gn.Fragment,{children:[Y,J]}),D)})}));Oo.displayName="Modal";const To=Object.assign(Oo,{Manager:co});var _o=Function.prototype.bind.call(Function.prototype.call,[].slice);function Vo(e,t){return _o(e.querySelectorAll(t))}function Ro(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Io=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ko=".sticky-top",Ao=".navbar-toggler";class Do extends co{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,eo(t,{[e]:`${parseFloat(eo(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],eo(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vo(t,Io).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Vo(t,ko).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),Vo(t,Ao).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ro(n.className,r):n.setAttribute("class",Ro(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vo(t,Io).forEach((e=>this.restore(o,e))),Vo(t,ko).forEach((e=>this.restore(i,e))),Vo(t,Ao).forEach((e=>this.restore(i,e)))}}let No;function Mo(e,t){return Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mo(e,t)}const Lo=t.createContext(null);var jo="unmounted",Fo="exited",Bo="entering",qo="entered",Ho="exiting",zo=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fo,r.appearStatus=Bo):o=qo:o=t.unmountOnExit||t.mountOnEnter?jo:Fo,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jo?{status:Fo}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Bo&&n!==qo&&(t=Bo):n!==Bo&&n!==qo||(t=Ho)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fo&&this.setState({status:jo})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ut.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:Bo},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:qo},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:qo},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ut.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Ho},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fo},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fo},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===jo)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Yt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Lo.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function Qo(){}zo.contextType=Lo,zo.propTypes={},zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qo,onEntering:Qo,onEntered:Qo,onExit:Qo,onExiting:Qo,onExited:Qo},zo.UNMOUNTED=jo,zo.EXITED=Fo,zo.ENTERING=Bo,zo.ENTERED=qo,zo.EXITING=Ho;const Uo=zo;function Wo(e,t){const n=eo(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function $o(e,t){const n=Wo(e,"transitionDuration"),r=Wo(e,"transitionDelay"),o=no(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Go(e){e.offsetHeight}const Jo=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=Gr(d,u),f=e=>{var t;h((t=e)&&"setState"in t?ut.findDOMNode(t):null!=t?t:null)},m=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,t.useCallback)(m(e),[e]),y=(0,t.useCallback)(m(n),[n]),v=(0,t.useCallback)(m(r),[r]),b=(0,t.useCallback)(m(o),[o]),C=(0,t.useCallback)(m(i),[i]),w=(0,t.useCallback)(m(s),[s]),x=(0,t.useCallback)(m(a),[a]);return(0,gn.jsx)(Uo,{ref:p,...c,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:C,addEndListener:x,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),Yo=Jo,Ko={[Bo]:"show",[qo]:"show"},Xo=t.forwardRef((({className:e,children:n,transitionClasses:r={},onEnter:o,...i},s)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,t.useCallback)(((e,t)=>{Go(e),null==o||o(e,t)}),[o]);return(0,gn.jsx)(Yo,{ref:s,addEndListener:$o,...a,onEnter:l,childRef:n.ref,children:(o,i)=>t.cloneElement(n,{...i,className:mn()("fade",e,n.props.className,Ko[o],r[o])})})}));Xo.displayName="Fade";const Zo=Xo,ei=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"modal-body"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));ei.displayName="ModalBody";const ti=ei,ni=t.createContext({onHide(){}}),ri=t.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:s,scrollable:a,...l},u)=>{const c=`${e=Cn(e,"modal")}-dialog`,p="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return(0,gn.jsx)("div",{...l,ref:u,className:mn()(c,t,o&&`${e}-${o}`,r&&`${c}-centered`,a&&`${c}-scrollable`,i&&p),children:(0,gn.jsx)("div",{className:mn()(`${e}-content`,n),children:s})})}));ri.displayName="ModalDialog";const oi=ri,ii=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"modal-footer"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));ii.displayName="ModalFooter";const si=ii;var ai=o(556),li=o.n(ai);const ui={"aria-label":li().string,onClick:li().func,variant:li().oneOf(["white"])},ci=t.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,gn.jsx)("button",{ref:o,type:"button",className:mn()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));ci.displayName="CloseButton",ci.propTypes=ui;const pi=ci,di=t.forwardRef((({closeLabel:e="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...s},a)=>{const l=(0,t.useContext)(ni),u=Wr((()=>{null==l||l.onHide(),null==o||o()}));return(0,gn.jsxs)("div",{ref:a,...s,children:[i,r&&(0,gn.jsx)(pi,{"aria-label":e,variant:n,onClick:u})]})})),hi=di,fi=t.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=Cn(e,"modal-header"),(0,gn.jsx)(hi,{ref:i,...o,className:mn()(t,e),closeLabel:n,closeButton:r}))));fi.displayName="ModalHeader";const mi=fi,gi=Jn("h4"),yi=t.forwardRef((({className:e,bsPrefix:t,as:n=gi,...r},o)=>(t=Cn(t,"modal-title"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));yi.displayName="ModalTitle";const vi=yi;function bi(e){return(0,gn.jsx)(Zo,{...e,timeout:null})}function Ci(e){return(0,gn.jsx)(Zo,{...e,timeout:null})}const wi=t.forwardRef((({bsPrefix:e,className:n,style:r,dialogClassName:o,contentClassName:i,children:s,dialogAs:a=oi,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":p,show:d=!1,animation:h=!0,backdrop:f=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:y,onHide:v,container:b,autoFocus:C=!0,enforceFocus:w=!0,restoreFocus:x=!0,restoreFocusOptions:E,onEntered:P,onExit:S,onExiting:O,onEnter:T,onEntering:_,onExited:V,backdropClassName:R,manager:I,...k},A)=>{const[D,N]=(0,t.useState)({}),[M,L]=(0,t.useState)(!1),j=(0,t.useRef)(!1),F=(0,t.useRef)(!1),B=(0,t.useRef)(null),[q,H]=Qr(),z=Gr(A,H),Q=Wr(v),U=En();e=Cn(e,"modal");const W=(0,t.useMemo)((()=>({onHide:Q})),[Q]);function $(){return I||function(e){return No||(No=new Do(e)),No}({isRTL:U})}function G(e){if(!Nr)return;const t=$().getScrollbarWidth()>0,n=e.scrollHeight>Br(e).documentElement.clientHeight;N({paddingRight:t&&!n?zr():void 0,paddingLeft:!t&&n?zr():void 0})}const J=Wr((()=>{q&&G(q.dialog)}));Jr((()=>{qr(window,"resize",J),null==B.current||B.current()}));const Y=()=>{j.current=!0},K=e=>{j.current&&q&&e.target===q.dialog&&(F.current=!0),j.current=!1},X=()=>{L(!0),B.current=no(q.dialog,(()=>{L(!1)}))},Z=e=>{"static"!==f?F.current||e.target!==e.currentTarget?F.current=!1:null==v||v():(e=>{e.target===e.currentTarget&&X()})(e)},ee=(0,t.useCallback)((t=>(0,gn.jsx)("div",{...t,className:mn()(`${e}-backdrop`,R,!h&&"show")})),[h,R,e]),te={...r,...D};return te.display="block",(0,gn.jsx)(ni.Provider,{value:W,children:(0,gn.jsx)(To,{show:d,ref:z,backdrop:f,container:b,keyboard:!0,autoFocus:C,enforceFocus:w,restoreFocus:x,restoreFocusOptions:E,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===f&&X())},onShow:y,onHide:v,onEnter:(e,t)=>{e&&G(e),null==T||T(e,t)},onEntering:(e,t)=>{null==_||_(e,t),Fr(window,"resize",J)},onEntered:P,onExit:e=>{null==B.current||B.current(),null==S||S(e)},onExiting:O,onExited:e=>{e&&(e.style.display=""),null==V||V(e),qr(window,"resize",J)},manager:$(),transition:h?bi:void 0,backdropTransition:h?Ci:void 0,renderBackdrop:ee,renderDialog:t=>(0,gn.jsx)("div",{role:"dialog",...t,style:te,className:mn()(n,e,M&&`${e}-static`,!h&&"show"),onClick:f?Z:void 0,onMouseUp:K,"data-bs-theme":l,"aria-label":p,"aria-labelledby":u,"aria-describedby":c,children:(0,gn.jsx)(a,{...k,onMouseDown:Y,className:o,contentClassName:i,children:s})})})})}));wi.displayName="Modal";const xi=Object.assign(wi,{Body:ti,Header:mi,Title:vi,Footer:si,Dialog:oi,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Ei={type:li().string,tooltip:li().bool,as:li().elementType},Pi=t.forwardRef((({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>(0,gn.jsx)(e,{...o,ref:i,className:mn()(t,`${n}-${r?"tooltip":"feedback"}`)})));Pi.displayName="Feedback",Pi.propTypes=Ei;const Si=Pi,Oi=t.createContext({}),Ti=t.forwardRef((({id:e,bsPrefix:n,className:r,type:o="checkbox",isValid:i=!1,isInvalid:s=!1,as:a="input",...l},u)=>{const{controlId:c}=(0,t.useContext)(Oi);return n=Cn(n,"form-check-input"),(0,gn.jsx)(a,{...l,ref:u,type:o,id:e||c,className:mn()(r,n,i&&"is-valid",s&&"is-invalid")})}));Ti.displayName="FormCheckInput";const _i=Ti,Vi=t.forwardRef((({bsPrefix:e,className:n,htmlFor:r,...o},i)=>{const{controlId:s}=(0,t.useContext)(Oi);return e=Cn(e,"form-check-label"),(0,gn.jsx)("label",{...o,ref:i,htmlFor:r||s,className:mn()(n,e)})}));Vi.displayName="FormCheckLabel";const Ri=Vi,Ii=t.forwardRef((({id:e,bsPrefix:n,bsSwitchPrefix:r,inline:o=!1,reverse:i=!1,disabled:s=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:p,className:d,style:h,title:f="",type:m="checkbox",label:g,children:y,as:v="input",...b},C)=>{n=Cn(n,"form-check"),r=Cn(r,"form-switch");const{controlId:w}=(0,t.useContext)(Oi),x=(0,t.useMemo)((()=>({controlId:e||w})),[w,e]),E=!y&&null!=g&&!1!==g||function(e,n){return t.Children.toArray(e).some((e=>t.isValidElement(e)&&e.type===n))}(y,Ri),P=(0,gn.jsx)(_i,{...b,type:"switch"===m?"checkbox":m,ref:C,isValid:a,isInvalid:l,disabled:s,as:v});return(0,gn.jsx)(Oi.Provider,{value:x,children:(0,gn.jsx)("div",{style:h,className:mn()(d,E&&n,o&&`${n}-inline`,i&&`${n}-reverse`,"switch"===m&&r),children:y||(0,gn.jsxs)(gn.Fragment,{children:[P,E&&(0,gn.jsx)(Ri,{title:f,children:g}),c&&(0,gn.jsx)(Si,{type:p,tooltip:u,children:c})]})})})}));Ii.displayName="FormCheck";const ki=Object.assign(Ii,{Input:_i,Label:Ri});var Ai=o(771),Di=o.n(Ai);const Ni=t.forwardRef((({bsPrefix:e,type:n,size:r,htmlSize:o,id:i,className:s,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:p="input",...d},h)=>{const{controlId:f}=(0,t.useContext)(Oi);return e=Cn(e,"form-control"),(0,gn.jsx)(p,{...d,type:n,size:o,ref:h,readOnly:c,id:i||f,className:mn()(s,u?`${e}-plaintext`:e,r&&`${e}-${r}`,"color"===n&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})}));Ni.displayName="FormControl";const Mi=Object.assign(Ni,{Feedback:Si}),Li=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"form-floating"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Li.displayName="FormFloating";const ji=Li,Fi=t.forwardRef((({controlId:e,as:n="div",...r},o)=>{const i=(0,t.useMemo)((()=>({controlId:e})),[e]);return(0,gn.jsx)(Oi.Provider,{value:i,children:(0,gn.jsx)(n,{...r,ref:o})})}));Fi.displayName="FormGroup";const Bi=Fi,qi=t.forwardRef((({as:e="label",bsPrefix:n,column:r=!1,visuallyHidden:o=!1,className:i,htmlFor:s,...a},l)=>{const{controlId:u}=(0,t.useContext)(Oi);n=Cn(n,"form-label");let c="col-form-label";"string"==typeof r&&(c=`${c} ${c}-${r}`);const p=mn()(i,n,o&&"visually-hidden",r&&c);return s=s||u,r?(0,gn.jsx)(Vn,{ref:l,as:"label",className:p,htmlFor:s,...a}):(0,gn.jsx)(e,{ref:l,className:p,htmlFor:s,...a})}));qi.displayName="FormLabel";const Hi=qi,zi=t.forwardRef((({bsPrefix:e,className:n,id:r,...o},i)=>{const{controlId:s}=(0,t.useContext)(Oi);return e=Cn(e,"form-range"),(0,gn.jsx)("input",{...o,type:"range",ref:i,className:mn()(n,e),id:r||s})}));zi.displayName="FormRange";const Qi=zi,Ui=t.forwardRef((({bsPrefix:e,size:n,htmlSize:r,className:o,isValid:i=!1,isInvalid:s=!1,id:a,...l},u)=>{const{controlId:c}=(0,t.useContext)(Oi);return e=Cn(e,"form-select"),(0,gn.jsx)("select",{...l,size:r,ref:u,className:mn()(o,e,n&&`${e}-${n}`,i&&"is-valid",s&&"is-invalid"),id:a||c})}));Ui.displayName="FormSelect";const Wi=Ui,$i=t.forwardRef((({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=Cn(e,"form-text"),(0,gn.jsx)(n,{...o,ref:i,className:mn()(t,e,r&&"text-muted")}))));$i.displayName="FormText";const Gi=$i,Ji=t.forwardRef(((e,t)=>(0,gn.jsx)(ki,{...e,ref:t,type:"switch"})));Ji.displayName="Switch";const Yi=Object.assign(Ji,{Input:ki.Input,Label:ki.Label}),Ki=t.forwardRef((({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=Cn(e,"form-floating"),(0,gn.jsxs)(Bi,{ref:s,className:mn()(t,e),controlId:r,...i,children:[n,(0,gn.jsx)("label",{htmlFor:r,children:o})]}))));Ki.displayName="FloatingLabel";const Xi=Ki,Zi={_ref:li().any,validated:li().bool,as:li().elementType},es=t.forwardRef((({className:e,validated:t,as:n="form",...r},o)=>(0,gn.jsx)(n,{...r,ref:o,className:mn()(e,t&&"was-validated")})));es.displayName="Form",es.propTypes=Zi;const ts=Object.assign(es,{Group:Bi,Control:Mi,Floating:ji,Check:ki,Switch:Yi,Label:Hi,Text:Gi,Range:Qi,Select:Wi,FloatingLabel:Xi}),ns=["as","disabled"];function rs({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=n||null!=r||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==s||s(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}const os=t.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ns);const[i,{tagName:s}]=rs(Object.assign({tagName:n,disabled:r},o));return(0,gn.jsx)(s,Object.assign({},o,i,{ref:t}))}));os.displayName="Button";const is=os,ss=t.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=Cn(t,"btn"),[c,{tagName:p}]=rs({tagName:e,disabled:i,...a}),d=p;return(0,gn.jsx)(d,{...c,...a,ref:l,disabled:i,className:mn()(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})}));ss.displayName="Button";const as=ss,ls=function(){var e=(0,t.useContext)(an),n=e.consent,r=e.setConsent,o=Rt((0,t.useState)(null===n),2),i=o[0],s=o[1],a=function(){s(!1),window.location.reload()},l=Rt((0,t.useState)(!0),2),u=l[0],c=l[1],p=function(e){var t=new Date;t.setDate(t.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:e,expiry:t})),r(e)};return t.createElement(xi,{show:i,centered:!0},t.createElement(xi.Header,{closeButton:!0},t.createElement(xi.Title,null,"Privacy on this site")),t.createElement(xi.Body,null,t.createElement("p",null,"On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",t.createElement("a",{href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"),".",t.createElement("br",null),"Below, you can choose to accept or decline to have this data collected."),t.createElement(ts,null,t.createElement(ts.Group,{className:"mb-3"},t.createElement(ts.Check,{type:"checkbox",label:"Analytics",checked:u,onChange:function(){return c(!u)}}),t.createElement(ts.Text,{className:"text-muted"},"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it.")))),t.createElement(xi.Footer,null,t.createElement(as,{variant:"secondary",onClick:function(){p(!1),a()}},"Decline all"),t.createElement(as,{variant:"primary",onClick:function(){p(u),a()}},"Save consent for 30 days")))};function us(e){return e+.5|0}const cs=(e,t,n)=>Math.max(Math.min(e,n),t);function ps(e){return cs(us(2.55*e),0,255)}function ds(e){return cs(us(255*e),0,255)}function hs(e){return cs(us(e/2.55)/100,0,1)}function fs(e){return cs(us(100*e),0,100)}const ms={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},gs=[..."0123456789ABCDEF"],ys=e=>gs[15&e],vs=e=>gs[(240&e)>>4]+gs[15&e],bs=e=>(240&e)>>4==(15&e);const Cs=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ws(e,t,n){const r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function xs(e,t,n){const r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Es(e,t,n){const r=ws(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function Ps(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=Math.min(t,n,r),s=(o+i)/2;let a,l,u;return o!==i&&(u=o-i,l=s>.5?u/(2-o-i):u/(o+i),a=function(e,t,n,r,o){return e===o?(t-n)/r+(t<n?6:0):t===o?(n-e)/r+2:(e-t)/r+4}(t,n,r,u,o),a=60*a+.5),[0|a,l||0,s]}function Ss(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ds)}function Os(e,t,n){return Ss(ws,e,t,n)}function Ts(e){return(e%360+360)%360}const _s={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Rs;const Is=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ks=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,As=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ds(e,t,n){if(e){let r=Ps(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Os(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Ns(e,t){return e?Object.assign(t||{},e):e}function Ms(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ds(e[3]))):(t=Ns(e,{r:0,g:0,b:0,a:1})).a=ds(t.a),t}function Ls(e){return"r"===e.charAt(0)?function(e){const t=Is.exec(e);let n,r,o,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?ps(e):cs(255*e,0,255)}return n=+t[1],r=+t[3],o=+t[5],n=255&(t[2]?ps(n):cs(n,0,255)),r=255&(t[4]?ps(r):cs(r,0,255)),o=255&(t[6]?ps(o):cs(o,0,255)),{r:n,g:r,b:o,a:i}}}(e):function(e){const t=Cs.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?ps(+t[5]):ds(+t[5]));const o=Ts(+t[2]),i=+t[3]/100,s=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return Ss(Es,e,t,n)}(o,i,s):"hsv"===t[1]?function(e,t,n){return Ss(xs,e,t,n)}(o,i,s):Os(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}(e)}class js{constructor(e){if(e instanceof js)return e;const t=typeof e;let n;var r,o,i;"object"===t?n=Ms(e):"string"===t&&(i=(r=e).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*ms[r[1]],g:255&17*ms[r[2]],b:255&17*ms[r[3]],a:5===i?17*ms[r[4]]:255}:7!==i&&9!==i||(o={r:ms[r[1]]<<4|ms[r[2]],g:ms[r[3]]<<4|ms[r[4]],b:ms[r[5]]<<4|ms[r[6]],a:9===i?ms[r[7]]<<4|ms[r[8]]:255})),n=o||function(e){Rs||(Rs=function(){const e={},t=Object.keys(Vs),n=Object.keys(_s);let r,o,i,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],o=0;o<n.length;o++)i=n[o],a=a.replace(i,_s[i]);i=parseInt(Vs[s],16),e[a]=[i>>16&255,i>>8&255,255&i]}return e}(),Rs.transparent=[0,0,0,0]);const t=Rs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||Ls(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ns(this._rgb);return e&&(e.a=hs(e.a)),e}set rgb(e){this._rgb=Ms(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${hs(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(e){var t=(e=>bs(e.r)&&bs(e.g)&&bs(e.b)&&bs(e.a))(e)?ys:vs;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Ps(e),n=t[0],r=fs(t[1]),o=fs(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${hs(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let o;const i=t===o?.5:t,s=2*i-1,a=n.a-r.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;o=1-l,n.r=255&l*n.r+o*r.r+.5,n.g=255&l*n.g+o*r.g+.5,n.b=255&l*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=As(hs(e.r)),o=As(hs(e.g)),i=As(hs(e.b));return{r:ds(ks(r+n*(As(hs(t.r))-r))),g:ds(ks(o+n*(As(hs(t.g))-o))),b:ds(ks(i+n*(As(hs(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new js(this.rgb)}alpha(e){return this._rgb.a=ds(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=us(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ds(this._rgb,2,e),this}darken(e){return Ds(this._rgb,2,-e),this}saturate(e){return Ds(this._rgb,1,e),this}desaturate(e){return Ds(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Ps(e);n[0]=Ts(n[0]+t),n=Os(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Fs(){}const Bs=(()=>{let e=0;return()=>e++})();function qs(e){return null==e}function Hs(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function zs(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Qs(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Us(e,t){return Qs(e)?e:t}function Ws(e,t){return void 0===e?t:e}function $s(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Gs(e,t,n,r){let o,i,s;if(Hs(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o);else if(zs(e))for(s=Object.keys(e),i=s.length,o=0;o<i;o++)t.call(n,e[s[o]],s[o])}function Js(e,t){let n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function Ys(e){if(Hs(e))return e.map(Ys);if(zs(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let o=0;for(;o<r;++o)t[n[o]]=Ys(e[n[o]]);return t}return e}function Ks(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Xs(e,t,n,r){if(!Ks(e))return;const o=t[e],i=n[e];zs(o)&&zs(i)?Zs(o,i,r):t[e]=Ys(i)}function Zs(e,t,n){const r=Hs(t)?t:[t],o=r.length;if(!zs(e))return e;const i=(n=n||{}).merger||Xs;let s;for(let t=0;t<o;++t){if(s=r[t],!zs(s))continue;const o=Object.keys(s);for(let t=0,r=o.length;t<r;++t)i(o[t],e,s,n)}return e}function ea(e,t){return Zs(e,t,{merger:ta})}function ta(e,t,n){if(!Ks(e))return;const r=t[e],o=n[e];zs(r)&&zs(o)?ea(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ys(o))}const na={"":e=>e,x:e=>e.x,y:e=>e.y};function ra(e,t){const n=na[t]||(na[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function oa(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ia=e=>void 0!==e,sa=e=>"function"==typeof e,aa=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},la=Math.PI,ua=2*la,ca=ua+la,pa=Number.POSITIVE_INFINITY,da=la/180,ha=la/2,fa=la/4,ma=2*la/3,ga=Math.log10,ya=Math.sign;function va(e,t,n){return Math.abs(e-t)<n}function ba(e){const t=Math.round(e);e=va(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ga(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Ca(e){return!isNaN(parseFloat(e))&&isFinite(e)}function wa(e){return e*(la/180)}function xa(e){if(!Qs(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Ea(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*la&&(i+=ua),{angle:i,distance:o}}function Pa(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Sa(e,t){return(e-t+ca)%ua-la}function Oa(e){return(e%ua+ua)%ua}function Ta(e,t,n,r){const o=Oa(e),i=Oa(t),s=Oa(n),a=Oa(i-o),l=Oa(s-o),u=Oa(o-i),c=Oa(o-s);return o===i||o===s||r&&i===s||a>l&&u<c}function _a(e,t,n){return Math.max(t,Math.min(n,e))}function Va(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Ra(e,t,n){n=n||(n=>e[n]<t);let r,o=e.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const Ia=(e,t,n,r)=>Ra(e,n,r?r=>{const o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),ka=(e,t,n)=>Ra(e,n,(r=>e[r][t]>=n)),Aa=["push","pop","shift","splice","unshift"];function Da(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(Aa.forEach((t=>{delete e[t]})),delete e._chartjs)}const Na="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Ma(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,Na.call(window,(()=>{r=!1,e.apply(t,n)})))}}const La=e=>"start"===e?"left":"end"===e?"right":"center",ja=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const Fa=e=>0===e||1===e,Ba=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ua/n),qa=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ua/n)+1,Ha={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ha),easeOutSine:e=>Math.sin(e*ha),easeInOutSine:e=>-.5*(Math.cos(la*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Fa(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Fa(e)?e:Ba(e,.075,.3),easeOutElastic:e=>Fa(e)?e:qa(e,.075,.3),easeInOutElastic(e){const t=.1125;return Fa(e)?e:e<.5?.5*Ba(2*e,t,.45):.5+.5*qa(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Ha.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Ha.easeInBounce(2*e):.5*Ha.easeOutBounce(2*e-1)+.5};function za(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Qa(e){return za(e)?e:new js(e)}function Ua(e){return za(e)?e:new js(e).saturate(.5).darken(.1).hexString()}const Wa=["x","y","borderWidth","radius","tension"],$a=["color","borderColor","backgroundColor"],Ga=new Map;function Ja(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Ga.get(n);return r||(r=new Intl.NumberFormat(e,t),Ga.set(n,r)),r}(t,n).format(e)}const Ya={values:e=>Hs(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const s=ga(Math.abs(i)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ja(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ga(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ya.numeric.call(this,e,t,n):""}};var Ka={formatters:Ya};const Xa=Object.create(null),Za=Object.create(null);function el(e,t){if(!t)return e;const n=t.split(".");for(let t=0,r=n.length;t<r;++t){const r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tl(e,t,n){return"string"==typeof t?Zs(el(e,t),n):Zs(el(e,""),t)}class nl{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ua(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ua(t.borderColor),this.hoverColor=(e,t)=>Ua(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tl(this,e,t)}get(e){return el(this,e)}describe(e,t){return tl(Za,e,t)}override(e,t){return tl(Xa,e,t)}route(e,t,n,r){const o=el(this,e),i=el(this,n),s="_"+t;Object.defineProperties(o,{[s]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=i[r];return zs(e)?Object.assign({},t,e):Ws(e,t)},set(e){this[s]=e}}})}apply(e){e.forEach((e=>e(this)))}}var rl=new nl({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:$a},numbers:{type:"number",properties:Wa}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ka.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ol(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function il(e,t,n){const r=e.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((t-o)*r)/r+o}function sl(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function al(e,t,n,r){ll(e,t,n,r,null)}function ll(e,t,n,r,o){let i,s,a,l,u,c,p,d;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*da;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:o?e.ellipse(n,r,o/2,m,0,0,ua):e.arc(n,r,m,0,ua),e.closePath();break;case"triangle":c=o?o/2:m,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=ma,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=ma,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":u=.516*m,l=m-u,s=Math.cos(g+fa)*l,p=Math.cos(g+fa)*(o?o/2-u:l),a=Math.sin(g+fa)*l,d=Math.sin(g+fa)*(o?o/2-u:l),e.arc(n-p,r-a,u,g-la,g-ha),e.arc(n+d,r-s,u,g-ha,g),e.arc(n+p,r+a,u,g,g+ha),e.arc(n-d,r+s,u,g+ha,g+la),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,c=o?o/2:l,e.rect(n-c,r-l,2*c,2*l);break}g+=fa;case"rectRot":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+d,r-s),e.lineTo(n+p,r+a),e.lineTo(n-d,r+s),e.closePath();break;case"crossRot":g+=fa;case"cross":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"star":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s),g+=fa,p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"line":s=o?o/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(o?o/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function ul(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function cl(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pl(e){e.restore()}function dl(e,t,n,r,o){if(!t)return e.lineTo(n.x,n.y);if("middle"===o){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===o!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function hl(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function fl(e,t,n,r,o){if(o.strikethrough||o.underline){const i=e.measureText(r),s=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,c=o.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(s,c),e.lineTo(a,c),e.stroke()}}function ml(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function gl(e,t,n,r,o,i={}){const s=Hs(t)?t:[t],a=i.strokeWidth>0&&""!==i.strokeColor;let l,u;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),qs(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<s.length;++l)u=s[l],i.backdrop&&ml(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),qs(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,r,i.maxWidth)),e.fillText(u,n,r,i.maxWidth),fl(e,n,r,u,i),r+=Number(o.lineHeight);e.restore()}function yl(e,t){const{x:n,y:r,w:o,h:i,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*la,la,!0),e.lineTo(n,r+i-s.bottomLeft),e.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,la,ha,!0),e.lineTo(n+o-s.bottomRight,r+i),e.arc(n+o-s.bottomRight,r+i-s.bottomRight,s.bottomRight,ha,0,!0),e.lineTo(n+o,r+s.topRight),e.arc(n+o-s.topRight,r+s.topRight,s.topRight,0,-ha,!0),e.lineTo(n+s.topLeft,r)}const vl=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,bl=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Cl(e,t){const n=(""+e).match(vl);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const wl=e=>+e||0;function xl(e,t){const n={},r=zs(t),o=r?Object.keys(t):t,i=zs(e)?r?n=>Ws(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of o)n[e]=wl(i(e));return n}function El(e){return xl(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Pl(e){return xl(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Sl(e){const t=El(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ol(e,t){e=e||{},t=t||rl.font;let n=Ws(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=Ws(e.style,t.style);r&&!(""+r).match(bl)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Ws(e.family,t.family),lineHeight:Cl(Ws(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ws(e.weight,t.weight),string:""};return o.string=function(e){return!e||qs(e.size)||qs(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function Tl(e,t,n,r){let o,i,s,a=!0;for(o=0,i=e.length;o<i;++o)if(s=e[o],void 0!==s&&(void 0!==t&&"function"==typeof s&&(s=s(t),a=!1),void 0!==n&&Hs(s)&&(s=s[n%s.length],a=!1),void 0!==s))return r&&!a&&(r.cacheable=!1),s}function _l(e,t){return Object.assign(Object.create(e),t)}function Vl(e,t=[""],n,r,o=(()=>e[0])){const i=n||e;void 0===r&&(r=Bl("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:o,override:n=>Vl([n,...e],t,i,r)};return new Proxy(s,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>Dl(n,r,(()=>function(e,t,n,r){let o;for(const i of t)if(o=Bl(kl(i,e),n),void 0!==o)return Al(e,o)?jl(n,r,e,o):o}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>ql(e).includes(t),ownKeys:e=>ql(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Rl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Il(e,r),setContext:t=>Rl(e,t,n,r),override:o=>Rl(e.override(o),t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Dl(e,t,(()=>function(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:s}=e;let a=r[t];return sa(a)&&s.isScriptable(t)&&(a=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,s||r);return a.delete(e),Al(e,l)&&(l=jl(o._scopes,o,e,l)),l}(t,a,e,n)),Hs(a)&&a.length&&(a=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=n;if(void 0!==i.index&&r(e))return t[i.index%t.length];if(zs(t[0])){const n=t,r=o._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=jl(r,o,e,l);t.push(Rl(n,i,s&&s[e],a))}}return t}(t,a,e,s.isIndexable)),Al(t,a)&&(a=Rl(a,o,i&&i[t],s)),a}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function Il(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:sa(n)?n:()=>n,isIndexable:sa(r)?r:()=>r}}const kl=(e,t)=>e?e+oa(t):t,Al=(e,t)=>zs(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Dl(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const r=n();return e[t]=r,r}function Nl(e,t,n){return sa(e)?e(t,n):e}const Ml=(e,t)=>!0===e?t:"string"==typeof e?ra(t,e):void 0;function Ll(e,t,n,r,o){for(const i of t){const t=Ml(n,i);if(t){e.add(t);const i=Nl(t._fallback,n,o);if(void 0!==i&&i!==n&&i!==r)return i}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}function jl(e,t,n,r){const o=t._rootScopes,i=Nl(t._fallback,n,r),s=[...e,...o],a=new Set;a.add(r);let l=Fl(a,s,n,i||n,r);return null!==l&&(void 0===i||i===n||(l=Fl(a,s,i,l,r),null!==l))&&Vl(Array.from(a),[""],o,i,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return Hs(o)&&zs(n)?n:o||{}}(t,n,r)))}function Fl(e,t,n,r,o){for(;n;)n=Ll(e,t,n,r,o);return n}function Bl(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function ql(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Hl=Number.EPSILON||1e-14,zl=(e,t)=>t<e.length&&!e[t].skip&&e[t],Ql=e=>"x"===e?"y":"x";function Ul(e,t,n,r){const o=e.skip?t:e,i=t,s=n.skip?t:n,a=Pa(i,o),l=Pa(s,i);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const p=r*u,d=r*c;return{previous:{x:i.x-p*(s.x-o.x),y:i.y-p*(s.y-o.y)},next:{x:i.x+d*(s.x-o.x),y:i.y+d*(s.y-o.y)}}}function Wl(e,t,n){return Math.max(Math.min(e,n),t)}function $l(e,t,n,r,o){let i,s,a,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=Ql(t),r=e.length,o=Array(r).fill(0),i=Array(r);let s,a,l,u=zl(e,0);for(s=0;s<r;++s)if(a=l,l=u,u=zl(e,s+1),l){if(u){const e=u[t]-l[t];o[s]=0!==e?(u[n]-l[n])/e:0}i[s]=a?u?ya(o[s-1])!==ya(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}!function(e,t,n){const r=e.length;let o,i,s,a,l,u=zl(e,0);for(let c=0;c<r-1;++c)l=u,u=zl(e,c+1),l&&u&&(va(t[c],0,Hl)?n[c]=n[c+1]=0:(o=n[c]/t[c],i=n[c+1]/t[c],a=Math.pow(o,2)+Math.pow(i,2),a<=9||(s=3/Math.sqrt(a),n[c]=o*s*t[c],n[c+1]=i*s*t[c])))}(e,o,i),function(e,t,n="x"){const r=Ql(n),o=e.length;let i,s,a,l=zl(e,0);for(let u=0;u<o;++u){if(s=a,a=l,l=zl(e,u+1),!a)continue;const o=a[n],c=a[r];s&&(i=(o-s[n])/3,a[`cp1${n}`]=o-i,a[`cp1${r}`]=c-i*t[u]),l&&(i=(l[n]-o)/3,a[`cp2${n}`]=o+i,a[`cp2${r}`]=c+i*t[u])}}(e,i,t)}(e,o);else{let n=r?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)a=e[i],l=Ul(n,a,e[Math.min(i+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,o,i,s,a=ul(e[0],t);for(n=0,r=e.length;n<r;++n)s=i,i=a,a=n<r-1&&ul(e[n+1],t),i&&(o=e[n],s&&(o.cp1x=Wl(o.cp1x,t.left,t.right),o.cp1y=Wl(o.cp1y,t.top,t.bottom)),a&&(o.cp2x=Wl(o.cp2x,t.left,t.right),o.cp2y=Wl(o.cp2y,t.top,t.bottom)))}(e,n)}function Gl(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Jl(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Yl(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const Kl=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),Xl=["top","right","bottom","left"];function Zl(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Xl[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const eu=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tu(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Kl(n),i="border-box"===o.boxSizing,s=Zl(o,"padding"),a=Zl(o,"border","width"),{x:l,y:u,box:c}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let s,a,l=!1;if(eu(o,i,e.target))s=o,a=i;else{const e=t.getBoundingClientRect();s=r.clientX-e.left,a=r.clientY-e.top,l=!0}return{x:s,y:a,box:l}}(e,n),p=s.left+(c&&a.left),d=s.top+(c&&a.top);let{width:h,height:f}=t;return i&&(h-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-p)/h*n.width/r),y:Math.round((u-d)/f*n.height/r)}}const nu=e=>Math.round(10*e)/10;function ru(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||s.height!==o||s.width!==i)&&(e.currentDevicePixelRatio=r,s.height=o,s.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}const ou=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gl()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function iu(e,t){const n=function(e,t){return Kl(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function su(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function au(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function lu(e,t,n,r){const o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=su(e,o,n),a=su(o,i,n),l=su(i,t,n),u=su(s,a,n),c=su(a,l,n);return su(u,c,n)}function uu(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function cu(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function pu(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function du(e){return"angle"===e?{between:Ta,compare:Sa,normalize:Oa}:{between:Va,compare:(e,t)=>e-t,normalize:e=>e}}function hu({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function fu(e,t,n){if(!n)return[e];const{property:r,start:o,end:i}=n,s=t.length,{compare:a,between:l,normalize:u}=du(r),{start:c,end:p,loop:d,style:h}=function(e,t,n){const{property:r,start:o,end:i}=n,{between:s,normalize:a}=du(r),l=t.length;let u,c,{start:p,end:d,loop:h}=e;if(h){for(p+=l,d+=l,u=0,c=l;u<c&&s(a(t[p%l][r]),o,i);++u)p--,d--;p%=l,d%=l}return d<p&&(d+=l),{start:p,end:d,loop:h,style:e.style}}(e,t,n),f=[];let m,g,y,v=!1,b=null;for(let e=c,n=c;e<=p;++e)g=t[e%s],g.skip||(m=u(g[r]),m!==y&&(v=l(m,o,i),null===b&&(v||l(o,y,m)&&0!==a(o,y))&&(b=0===a(m,o)?e:n),null!==b&&(!v||0===a(i,m)||l(i,y,m))&&(f.push(hu({start:b,end:e,loop:d,count:s,style:h})),b=null),n=e,y=m));return null!==b&&f.push(hu({start:b,end:p,loop:d,count:s,style:h})),f}function mu(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function gu(e,t){if(!t)return!1;const n=[],r=function(e,t){return za(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}class yu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=Na.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,s=o.length-1,a=!1;for(;s>=0;--s)i=o[s],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),a=!0):(o[s]=o[o.length-1],o.pop());a&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var vu=new yu;const bu="transparent",Cu={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=Qa(e||bu),o=r.valid&&Qa(t||bu);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class wu{constructor(e,t,n,r){const o=t[n];r=Tl([e.to,r,o,e.from]);const i=Tl([e.from,o,r]);this._active=!0,this._fn=e.fn||Cu[e.type||typeof i],this._easing=Ha[e.easing]||Ha.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Tl([e.to,t,r,e.from]),this._from=Tl([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,s=this._to;let a;if(this._active=o!==s&&(i||t<n),!this._active)return this._target[r]=s,void this._notify(!0);t<0?this._target[r]=o:(a=t/n%2,a=i&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(o,s,a))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class xu{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!zs(e))return;const t=Object.keys(rl.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!zs(o))return;const i={};for(const e of t)i[e]=o[e];(Hs(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),s=Date.now();let a;for(a=i.length-1;a>=0;--a){const l=i[a];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const u=t[l];let c=o[l];const p=n.get(l);if(c){if(p&&c.active()){c.update(p,u,s);continue}c.cancel()}p&&p.duration?(o[l]=c=new wu(p,e,l,u),r.push(c)):e[l]=u}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(vu.add(this._chart,n),!0):void 0}}function Eu(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function Pu(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Su(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let s,a,l,u;if(null!==t){for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===n){if(r.all)continue;break}u=e.values[l],Qs(u)&&(i||0===t||ya(t)===ya(u))&&(t+=u)}return t}}function Ou(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Tu(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function _u(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function Vu(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:a}=r,l=i.axis,u=s.axis,c=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,s,r),p=t.length;let d;for(let e=0;e<p;++e){const n=t[e],{[l]:i,[u]:p}=n;d=(n._stacks||(n._stacks={}))[u]=Tu(o,c,i),d[a]=p,d._top=_u(d,s,!0,r.type),d._bottom=_u(d,s,!1,r.type),(d._visualValues||(d._visualValues={}))[a]=p}}function Ru(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Iu(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const ku=e=>"reset"===e||"none"===e,Au=(e,t)=>t?e:Object.assign({},e);class Du{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ou(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Iu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=Ws(n.xAxisID,Ru(e,"x")),i=t.yAxisID=Ws(n.yAxisID,Ru(e,"y")),s=t.rAxisID=Ws(n.rAxisID,Ru(e,"r")),a=t.indexAxis,l=t.iAxisID=r(a,o,i,s),u=t.vAxisID=r(a,i,o,s);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Da(this._data,this),e._stacked&&Iu(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(zs(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",s=Object.keys(e),a=new Array(s.length);let l,u,c;for(l=0,u=s.length;l<u;++l)c=s[l],a[l]={[o]:c,[i]:e[c]};return a}(t,e)}else if(n!==t){if(n){Da(n,this);const e=this._cachedMeta;Iu(e),e._parsed=[]}t&&Object.isExtensible(t)&&((r=t)._chartjs?r._chartjs.listeners.push(this):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Aa.forEach((e=>{const t="_onData"+oa(e),n=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value(...e){const o=n.apply(this,e);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),o}})})))),this._syncList=[],this._data=t}var r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=Ou(t.vScale,t),t.stack!==n.stack&&(r=!0,Iu(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&Vu(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,s=o.axis;let a,l,u,c=0===e&&t===r.length||n._sorted,p=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,u=r;else{u=Hs(r[e])?this.parseArrayData(n,r,e,t):zs(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[s]||p&&l[s]<p[s];for(a=0;a<t;++a)n._parsed[a+e]=l=u[a],c&&(o()&&(c=!1),p=l);n._sorted=c}i&&Vu(this,u)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,s=o.axis,a=i.axis,l=o.getLabels(),u=o===i,c=new Array(r);let p,d,h;for(p=0,d=r;p<d;++p)h=p+n,c[p]={[s]:u||o.parse(l[h],h),[a]:i.parse(t[h],h)};return c}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,s=new Array(r);let a,l,u,c;for(a=0,l=r;a<l;++a)u=a+n,c=t[u],s[a]={x:o.parse(c[0],u),y:i.parse(c[1],u)};return s}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(r);let u,c,p,d;for(u=0,c=r;u<c;++u)p=u+n,d=t[p],l[u]={x:o.parse(ra(d,s),p),y:i.parse(ra(d,a),p)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return Su({keys:Pu(r,!0),values:t._stacks[e.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const s=r&&n._stacks[t.axis];r&&s&&(r.values=s,i=Su(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,s=this._getOtherScale(e),a=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Pu(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:c}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(s);let p,d;function h(){d=r[p];const t=d[s.axis];return!Qs(d[e.axis])||u>t||c<t}for(p=0;p<i&&(h()||(this.updateRangeFromParsed(l,e,d,a),!o));++p);if(o)for(p=i-1;p>=0;--p)if(!h()){this.updateRangeFromParsed(l,e,d,a);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],Qs(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return zs(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(Ws(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=Eu(e,n),o=Eu(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],s=this._drawStart||0,a=this._drawCount||r.length-s,l=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(e,o,s,a),u=s;u<s+a;++u){const t=r[u];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(u=0;u<i.length;++u)i[u].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return _l(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return _l(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,s=o[i],a=this.enableOptionSharing&&ia(n);if(s)return Au(s,a);const l=this.chart.config,u=l.datasetElementScopeKeys(this._type,e),c=r?[`${e}Hover`,"hover",e,""]:[e,""],p=l.getOptionScopes(this.getDataset(),u),d=Object.keys(rl.elements[e]),h=l.resolveNamedOptions(p,d,(()=>this.getContext(n,r,t)),c);return h.$shared&&(h.$shared=a,o[i]=Object.freeze(Au(h,a))),h}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,s=o[i];if(s)return s;let a;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);a=r.createResolver(i,this.getContext(e,n,t))}const l=new xu(r,a&&a.animations);return a&&a._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||ku(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){ku(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!ku(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let s;const a=e=>{for(e.length+=t,s=e.length-1;s>=i;s--)e[s]=e[s-t]};for(a(o),s=e;s<i;++s)o[s]=new this.dataElementType;this._parsing&&a(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&Iu(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nu(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=function(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,i,s,a=t._length;const l=()=>{32767!==i&&-32768!==i&&(ia(s)&&(a=Math.min(a,Math.abs(i-s)||a)),s=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(s=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return a}function Mu(e,t,n,r){return Hs(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),s=Math.min(o,i),a=Math.max(o,i);let l=s,u=a;Math.abs(s)>Math.abs(a)&&(l=a,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:o,end:i,min:s,max:a}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Lu(e,t,n,r){const o=e.iScale,i=e.vScale,s=o.getLabels(),a=o===i,l=[];let u,c,p,d;for(u=n,c=n+r;u<c;++u)d=t[u],p={},p[o.axis]=a||o.parse(s[u],u),l.push(Mu(d,p,i,u));return l}function ju(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Fu(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:u,bottom:c}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=u:(n._bottom||0)===r?o=c:(i[Bu(c,s,a,l)]=!0,o=u)),i[Bu(o,s,a,l)]=!0,e.borderSkipped=i}function Bu(e,t,n,r){var o,i,s;return r?(s=n,e=qu(e=(o=e)===(i=t)?s:o===s?i:o,n,t)):e=qu(e,t,n),e}function qu(e,t,n){return"start"===e?t:"end"===e?n:e}function Hu(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class zu extends Du{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return Lu(e,t,n,r)}parseArrayData(e,t,n,r){return Lu(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===o.axis?s:a,u="x"===i.axis?s:a,c=[];let p,d,h,f;for(p=n,d=n+r;p<d;++p)f=t[p],h={},h[o.axis]=o.parse(ra(f,l),p),c.push(Mu(ra(f,u),h,i,p));return c}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,s=ju(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),u=this._getRuler(),{sharedOptions:c,includeOptions:p}=this._getSharedOptions(t,r);for(let d=t;d<t+n;d++){const t=this.getParsed(d),n=o||qs(t[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),h=this._calculateBarIndexPixels(d,u),f=(t._stacks||{})[s.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||ju(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};p&&(m.options=c||this.resolveDataElementOptions(d,e[d].active?"active":r));const g=m.options||e[d].options;Fu(m,g,f,i),Hu(m,g,u.ratio),this.updateElement(e[d],d,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,i=[],s=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(qs(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!s(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=e.barThickness;return{min:s||Nu(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,s=o||0,a=this.getParsed(e),l=a._custom,u=ju(l);let c,p,d=a[t.axis],h=0,f=n?this.applyStack(t,a,n):d;f!==d&&(h=f-d,f=d),u&&(d=l.barStart,f=l.barEnd-l.barStart,0!==d&&ya(d)!==ya(l.barEnd)&&(h=0),h+=d);const m=qs(o)||u?h:o;let g=t.getPixelForValue(m);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):g,p=c-g,Math.abs(p)<i){p=function(e,t,n){return 0!==e?ya(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(p,t,s)*i,d===s&&(g-=p/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),l=Math.min(e,o),h=Math.max(e,o);g=Math.max(Math.min(g,h),l),c=g+p,n&&!u&&(a._stacks[t.axis]._visualValues[r]=t.getValueForPixel(c)-t.getValueForPixel(g))}if(g===t.getPixelForValue(s)){const e=ya(p)*t.getLineWidthForValue(s)/2;g+=e,p-=e}return{size:p,base:g,head:c,center:c+p/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=Ws(r.maxBarThickness,1/0);let s,a;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let s=e>0?o[e-1]:null,a=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===s&&(s=i-(null===a?t.end-t.start:a-i)),null===a&&(a=i+i-s);const u=i-(i-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,s;return qs(o)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=o*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}(e,t,r,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);s=l.start+l.chunk*u+l.chunk/2,a=Math.min(i,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(e)[n.axis],e),a=Math.min(i,t.min*t.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[t.axis]||n[o].hidden||n[o].draw(this._ctx)}}class Qu extends Du{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:s,count:a}=function(e,t,n){const r=t.length;let o=0,i=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:u,max:c,minDefined:p,maxDefined:d}=s.getUserBounds();p&&(o=_a(Math.min(Ia(a,l,u).lo,n?r:Ia(t,l,s.getPixelForValue(u)).lo),0,r-1)),i=d?_a(Math.max(Ia(a,s.axis,c,!0).hi+1,n?0:Ia(t,l,s.getPixelForValue(c),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}(t,r,i);this._drawStart=s,this._drawCount=a,function(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}(t)&&(s=0,a=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,s,a,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(t,r),p=i.axis,d=s.axis,{spanGaps:h,segment:f}=this.options,m=Ca(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r,y=t+n,v=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<v;++n){const h=e[n],v=g?h:{};if(n<t||n>=y){v.skip=!0;continue}const C=this.getParsed(n),w=qs(C[d]),x=v[p]=i.getPixelForValue(C[p],n),E=v[d]=o||w?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,C,a):C[d],n);v.skip=isNaN(x)||isNaN(E)||w,v.stop=n>0&&Math.abs(C[p]-b[p])>m,f&&(v.parsed=C,v.raw=l.data[n]),c&&(v.options=u||this.resolveDataElementOptions(n,h.active?"active":r)),g||this.updateElement(h,n,v,r),b=C}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}function Uu(e,t,n,r){const{controller:o,data:i,_sorted:s}=e,a=o._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&s&&i.length){const e=a._reversePixels?ka:Ia;if(!r)return e(i,t,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(i,t,n-o),s=e(i,t,n+o);return{lo:r.lo,hi:s.hi}}}}return{lo:0,hi:i.length-1}}function Wu(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:a}=i[e],{lo:l,hi:u}=Uu(i[e],t,s,o);for(let e=l;e<=u;++e){const t=a[e];t.skip||r(t,n,e)}}}function $u(e,t,n,r,o){const i=[];return o||e.isPointInArea(t)?(Wu(e,n,t,(function(n,s,a){(o||ul(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:s,index:a})}),!0),i):i}function Gu(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?function(e,t,n,r,o,i){let s=[];const a=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Wu(e,n,t,(function(n,u,c){const p=n.inRange(t.x,t.y,o);if(r&&!p)return;const d=n.getCenterPoint(o);if(!i&&!e.isPointInArea(d)&&!p)return;const h=a(t,d);h<l?(s=[{element:n,datasetIndex:u,index:c}],l=h):h===l&&s.push({element:n,datasetIndex:u,index:c})})),s}(e,t,n,r,o,i):function(e,t,n,r){let o=[];return Wu(e,n,t,(function(e,n,i){const{startAngle:s,endAngle:a}=e.getProps(["startAngle","endAngle"],r),{angle:l}=Ea(e,{x:t.x,y:t.y});Ta(l,s,a)&&o.push({element:e,datasetIndex:n,index:i})})),o}(e,t,n,o):[]}function Ju(e,t,n,r,o){const i=[],s="x"===n?"inXRange":"inYRange";let a=!1;return Wu(e,n,t,((e,r,l)=>{e[s](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),a=a||e.inRange(t.x,t.y,o))})),r&&!a?[]:i}var Yu={evaluateInteractionItems:Wu,modes:{index(e,t,n,r){const o=tu(t,e),i=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?$u(e,o,i,r,s):Gu(e,o,i,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=a[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const o=tu(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?$u(e,o,i,r,s):Gu(e,o,i,!1,r,s);if(a.length>0){const t=a[0].datasetIndex,n=e.getDatasetMeta(t).data;a=[];for(let e=0;e<n.length;++e)a.push({element:n[e],datasetIndex:t,index:e})}return a},point:(e,t,n,r)=>$u(e,tu(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=tu(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Gu(e,o,i,n.intersect,r,s)},x:(e,t,n,r)=>Ju(e,tu(t,e),"x",n.intersect,r),y:(e,t,n,r)=>Ju(e,tu(t,e),"y",n.intersect,r)}};const Ku=["left","top","right","bottom"];function Xu(e,t){return e.filter((e=>e.pos===t))}function Zu(e,t){return e.filter((e=>-1===Ku.indexOf(e.pos)&&e.box.axis===t))}function ec(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function tc(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function nc(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function rc(e,t,n,r){const{pos:o,box:i}=n,s=e.maxPadding;if(!zs(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&nc(s,i.getPadding());const a=Math.max(0,t.outerWidth-tc(s,e,"left","right")),l=Math.max(0,t.outerHeight-tc(s,e,"top","bottom")),u=a!==e.w,c=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function oc(e,t){const n=t.maxPadding;return function(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}(e?["left","right"]:["top","bottom"])}function ic(e,t,n,r){const o=[];let i,s,a,l,u,c;for(i=0,s=e.length,u=0;i<s;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,oc(a.horizontal,t));const{same:s,other:p}=rc(t,n,a,r);u|=s&&o.length,c=c||p,l.fullSize||o.push(a)}return u&&ic(o,t,n,r)||c}function sc(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function ac(e,t,n,r){const o=n.padding;let{x:i,y:s}=t;for(const a of e){const e=a.box,l=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/l.weight||1;if(a.horizontal){const r=t.w*u,i=l.size||e.height;ia(l.start)&&(s=l.start),e.fullSize?sc(e,o.left,s,n.outerWidth-o.right-o.left,i):sc(e,t.left+l.placed,s,r,i),l.start=s,l.placed+=r,s=e.bottom}else{const r=t.h*u,s=l.size||e.width;ia(l.start)&&(i=l.start),e.fullSize?sc(e,i,o.top,s,n.outerHeight-o.bottom-o.top):sc(e,i,t.top+l.placed,s,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=s}var lc={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=Sl(e.options.layout.padding),i=Math.max(t-o.width,0),s=Math.max(n-o.height,0),a=function(e){const t=function(e){const t=[];let n,r,o,i,s,a;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:s,stackWeight:a=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return t}(e),n=ec(t.filter((e=>e.box.fullSize)),!0),r=ec(Xu(t,"left"),!0),o=ec(Xu(t,"right")),i=ec(Xu(t,"top"),!0),s=ec(Xu(t,"bottom")),a=Zu(t,"x"),l=Zu(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:Xu(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}(e.boxes),l=a.vertical,u=a.horizontal;Gs(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const c=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},o);nc(d,Sl(r));const h=Object.assign({maxPadding:d,w:i,h:s,x:o.left,y:o.top},o),f=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Ku.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,s,a;for(i=0,s=e.length;i<s;++i){a=e[i];const{fullSize:s}=a.box,l=n[a.stack],u=l&&a.stackWeight/l.weight;a.horizontal?(a.width=u?u*r:s&&t.availableWidth,a.height=o):(a.width=r,a.height=u?u*o:s&&t.availableHeight)}return n}(l.concat(u),p);ic(a.fullSize,h,p,f),ic(l,h,p,f),ic(u,h,p,f)&&ic(l,h,p,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),ac(a.leftAndTop,h,p,f),h.x+=h.w,h.y+=h.h,ac(a.rightAndBottom,h,p,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Gs(a.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class uc{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class cc extends uc{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const pc="$chartjs",dc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},hc=e=>null===e||""===e,fc=!!ou&&{passive:!0};function mc(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,fc)}function gc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function yc(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||gc(n.addedNodes,r),t=t&&!gc(n.removedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function vc(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||gc(n.removedNodes,r),t=t&&!gc(n.addedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const bc=new Map;let Cc=0;function wc(){const e=window.devicePixelRatio;e!==Cc&&(Cc=e,bc.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function xc(e,t,n){const r=e.canvas,o=r&&Jl(r);if(!o)return;const i=Ma(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),s=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return s.observe(o),function(e,t){bc.size||window.addEventListener("resize",wc),bc.set(e,t)}(e,i),s}function Ec(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){bc.delete(e),bc.size||window.removeEventListener("resize",wc)}(e)}function Pc(e,t,n){const r=e.canvas,o=Ma((t=>{null!==e.ctx&&n(function(e,t){const n=dc[e.type]||e.type,{x:r,y:o}=tu(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,fc)}(r,t,o),o}class Sc extends uc{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[pc]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",hc(o)){const t=iu(e,"width");void 0!==t&&(e.width=t)}if(hc(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=iu(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[pc])return!1;const n=t[pc].initial;["height","width"].forEach((e=>{const r=n[e];qs(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[pc],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:yc,detach:vc,resize:xc}[t]||Pc;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:Ec,detach:Ec,resize:Ec}[t]||mc)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return function(e,t,n,r){const o=Kl(e),i=Zl(o,"margin"),s=Yl(o.maxWidth,e,"clientWidth")||pa,a=Yl(o.maxHeight,e,"clientHeight")||pa,l=function(e,t,n){let r,o;if(void 0===t||void 0===n){const i=e&&Jl(e);if(i){const e=i.getBoundingClientRect(),s=Kl(i),a=Zl(s,"border","width"),l=Zl(s,"padding");t=e.width-l.width-a.width,n=e.height-l.height-a.height,r=Yl(s.maxWidth,i,"clientWidth"),o=Yl(s.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||pa,maxHeight:o||pa}}(e,t,n);let{width:u,height:c}=l;if("content-box"===o.boxSizing){const e=Zl(o,"border","width"),t=Zl(o,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-i.width),c=Math.max(0,r?u/r:c-i.height),u=nu(Math.min(u,s,l.maxWidth)),c=nu(Math.min(c,a,l.maxHeight)),u&&!c&&(c=nu(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=nu(Math.floor(c*r))),{width:u,height:c}}(e,t,n,r)}isAttached(e){const t=e&&Jl(e);return!(!t||!t.isConnected)}}class Oc{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Ca(this.x)&&Ca(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function Tc(e,t,n,r,o){const i=Ws(r,0),s=Math.min(Ws(o,e.length),e.length);let a,l,u,c=0;for(n=Math.ceil(n),o&&(a=o-r,n=a/Math.floor(a/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(l=Math.max(i,0);l<s;l++)l===u&&(t.push(e[l]),c++,u=Math.round(i+c*n))}const _c=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,Vc=(e,t)=>Math.min(t||e,e);function Rc(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function Ic(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,a=1e-6;let l,u=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(u-i,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(o-1))/2,u+=o<t?l:-l,u<i-a||u>s+a)))return u}function kc(e){return e.drawTicks?e.tickLength:0}function Ac(e,t){if(!e.display)return 0;const n=Ol(e.font,t),r=Sl(e.padding);return(Hs(e.text)?e.text.length:1)*n.lineHeight+r.height}function Dc(e,t,n){let r=La(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class Nc extends Oc{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=Us(e,Number.POSITIVE_INFINITY),t=Us(t,Number.NEGATIVE_INFINITY),n=Us(n,Number.POSITIVE_INFINITY),r=Us(r,Number.NEGATIVE_INFINITY),{min:Us(e,n),max:Us(t,r),minDefined:Qs(e),maxDefined:Qs(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)t=s[a].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:Us(n,Us(r,n)),max:Us(r,Us(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){$s(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,s=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=(l=(o-r)/2,"string"==typeof(a=t)&&a.endsWith("%")?parseFloat(a)/100*l:+a),s=(e,t)=>n&&0===e?0:e+t;var a,l;return{min:s(r,-Math.abs(i)),max:s(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?Rc(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=function(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],s=i.length,a=i[0],l=i[s-1],u=[];if(s>o)return function(e,t,n,r){let o,i=0,s=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===s&&(t.push(e[o]),i++,s=n[i*r])}(t,u,i,s/o),u;const c=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r==0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(i,t,o);if(s>0){let e,n;const r=s>1?Math.round((l-a)/(s-1)):null;for(Tc(t,u,c,qs(r)?0:a-r,a),e=0,n=s-1;e<n;e++)Tc(t,u,c,i[e],i[e+1]);return Tc(t,u,c,l,qs(r)?t.length:l+r),u}return Tc(t,u,c),u}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){$s(this.options.afterUpdate,[this])}beforeSetDimensions(){$s(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){$s(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),$s(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$s(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=$s(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){$s(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$s(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=Vc(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let i,s,a,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const u=this._getLabelSizes(),c=u.widest.width,p=u.highest.height,d=_a(this.chart.width-c,0,this.maxWidth);i=e.offset?this.maxWidth/n:d/(n-1),c+6>i&&(i=d/(n-(e.offset?.5:1)),s=this.maxHeight-kc(e.grid)-t.padding-Ac(e.title,this.chart.options.font),a=Math.sqrt(c*c+p*p),l=Math.min(Math.asin(_a((u.highest.height+6)/i,-1,1)),Math.asin(_a(s/a,-1,1))-Math.asin(_a(p/a,-1,1)))*(180/la),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){$s(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$s(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),s=this.isHorizontal();if(i){const i=Ac(r,t.options.font);if(s?(e.width=this.maxWidth,e.height=kc(o)+i):(e.height=this.maxHeight,e.width=kc(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),a=2*n.padding,l=wa(this.labelRotation),u=Math.cos(l),c=Math.sin(l);if(s){const t=n.mirror?0:c*o.width+u*i.height;e.height=Math.min(this.maxHeight,e.height+t+a)}else{const t=n.mirror?0:u*o.width+c*i.height;e.width=Math.min(this.maxWidth,e.width+t+a)}this._calculatePadding(t,r,c,u)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,p=0;a?l?(c=r*e.width,p=n*t.height):(c=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?c=e.width:"inner"!==o&&(c=e.width/2,p=t.width/2),this.paddingLeft=Math.max((c-s+i)*this.width/(this.width-s),0),this.paddingRight=Math.max((p-u+i)*this.width/(this.width-u),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){$s(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)qs(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Rc(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,i=[],s=[],a=Math.floor(t/Vc(t,n));let l,u,c,p,d,h,f,m,g,y,v,b=0,C=0;for(l=0;l<t;l+=a){if(p=e[l].label,d=this._resolveTickFontOptions(l),r.font=h=d.string,f=o[h]=o[h]||{data:{},gc:[]},m=d.lineHeight,g=y=0,qs(p)||Hs(p)){if(Hs(p))for(u=0,c=p.length;u<c;++u)v=p[u],qs(v)||Hs(v)||(g=ol(r,f.data,f.gc,g,v),y+=m)}else g=ol(r,f.data,f.gc,g,p),y=m;i.push(g),s.push(y),b=Math.max(g,b),C=Math.max(y,C)}!function(e,t){Gs(e,(e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}}))}(o,t);const w=i.indexOf(b),x=s.indexOf(C),E=e=>({width:i[e]||0,height:s[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(x),widths:i,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return _a(this._alignToPixels?il(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return _l(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=_l(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=wa(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,s=o?o.widest.width+i:0,a=o?o.highest.height+i:0;return this.isHorizontal()?a*n>s*r?s/n:a/r:a*r<s*n?a/n:s/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:s}=r,a=o.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),c=kc(o),p=[],d=s.setContext(this.getContext()),h=d.display?d.width:0,f=h/2,m=function(e){return il(n,e,h)};let g,y,v,b,C,w,x,E,P,S,O,T;if("top"===i)g=m(this.bottom),w=this.bottom-c,E=g-f,S=m(e.top)+f,T=e.bottom;else if("bottom"===i)g=m(this.top),S=e.top,T=m(e.bottom)-f,w=g+f,E=this.top+c;else if("left"===i)g=m(this.right),C=this.right-c,x=g-f,P=m(e.left)+f,O=e.right;else if("right"===i)g=m(this.left),P=e.left,O=m(e.right)-f,C=g+f,x=this.left+c;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(zs(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}S=e.top,T=e.bottom,w=g+f,E=w+c}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(zs(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=g-f,x=C-c,P=e.left,O=e.right}const _=Ws(r.ticks.maxTicksLimit,u),V=Math.max(1,Math.ceil(u/_));for(y=0;y<u;y+=V){const e=this.getContext(y),t=o.setContext(e),r=s.setContext(e),i=t.lineWidth,u=t.color,c=r.dash||[],d=r.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=Ic(this,y,a),void 0!==v&&(b=il(n,v,i),l?C=x=P=O=b:w=E=S=T=b,p.push({tx1:C,ty1:w,tx2:x,ty2:E,x1:P,y1:S,x2:O,y2:T,width:i,color:u,borderDash:c,borderDashOffset:d,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=u,this._borderValue=g,p}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:u,mirror:c}=o,p=kc(n.grid),d=p+u,h=c?-u:d,f=-wa(this.labelRotation),m=[];let g,y,v,b,C,w,x,E,P,S,O,T,_="middle";if("top"===r)w=this.bottom-h,x=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,x=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(p);x=e.textAlign,C=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(p);x=e.textAlign,C=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+d;else if(zs(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+d}x=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)C=(e.left+e.right)/2-d;else if(zs(r)){const e=Object.keys(r)[0],t=r[e];C=this.chart.scales[e].getPixelForValue(t)}x=this._getYAxisLabelAlignment(p).textAlign}"y"===t&&("start"===a?_="top":"end"===a&&(_="bottom"));const V=this._getLabelSizes();for(g=0,y=s.length;g<y;++g){v=s[g],b=v.label;const e=o.setContext(this.getContext(g));E=this.getPixelForTick(g)+o.labelOffset,P=this._resolveTickFontOptions(g),S=P.lineHeight,O=Hs(b)?b.length:1;const t=O/2,n=e.color,a=e.textStrokeColor,u=e.textStrokeWidth;let p,d=x;if(i?(C=E,"inner"===x&&(d=g===y-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),T="top"===r?"near"===l||0!==f?-O*S+S/2:"center"===l?-V.highest.height/2-t*S+S:-V.highest.height+S/2:"near"===l||0!==f?S/2:"center"===l?V.highest.height/2-t*S:V.highest.height-O*S,c&&(T*=-1),0===f||e.showLabelBackdrop||(C+=S/2*Math.sin(f))):(w=E,T=(1-O)*S/2),e.showLabelBackdrop){const t=Sl(e.backdropPadding),n=V.heights[g],r=V.widths[g];let o=T-t.top,i=0-t.left;switch(_){case"middle":o-=n/2;break;case"bottom":o-=n}switch(x){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===y-1?i-=r:g>0&&(i-=r/2)}p={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:P,textOffset:T,options:{rotation:f,color:n,strokeColor:a,strokeWidth:u,textAlign:d,textBaseline:_,translation:[C,w],backdrop:p}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-wa(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,s=this._getLabelSizes().widest.width;let a,l;return"left"===t?r?(l=this.right+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-i,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+i,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const s=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&s({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const s=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,u,c,p;this.isHorizontal()?(l=il(e,this.left,i)-i/2,u=il(e,this.right,s)+s/2,c=p=a):(c=il(e,this.top,i)-i/2,p=il(e,this.bottom,s)+s/2,l=u=a),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(l,c),t.lineTo(u,p),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&cl(t,n);const r=this.getLabelItems(e);for(const e of r){const n=e.options,r=e.font;gl(t,e.label,0,e.textOffset,r,n)}n&&pl(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=Ol(n.font),i=Sl(n.padding),s=n.align;let a=o.lineHeight/2;"bottom"===t||"center"===t||zs(t)?(a+=i.bottom,Hs(n.text)&&(a+=o.lineHeight*(n.text.length-1))):a+=i.top;const{titleX:l,titleY:u,maxWidth:c,rotation:p}=function(e,t,n,r){const{top:o,left:i,bottom:s,right:a,chart:l}=e,{chartArea:u,scales:c}=l;let p,d,h,f=0;const m=s-o,g=a-i;if(e.isHorizontal()){if(d=ja(r,i,a),zs(n)){const e=Object.keys(n)[0],r=n[e];h=c[e].getPixelForValue(r)+m-t}else h="center"===n?(u.bottom+u.top)/2+m-t:_c(e,n,t);p=a-i}else{if(zs(n)){const e=Object.keys(n)[0],r=n[e];d=c[e].getPixelForValue(r)-g+t}else d="center"===n?(u.left+u.right)/2-g+t:_c(e,n,t);h=ja(r,s,o),f="left"===n?-ha:ha}return{titleX:d,titleY:h,maxWidth:p,rotation:f}}(this,a,t,s);gl(e,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:p,textAlign:Dc(s,t,r),textBaseline:"middle",translation:[l,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Ws(e.grid&&e.grid.z,-1),r=Ws(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Nc.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return Ol(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Mc{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=Zs(Object.create(null),[n?rl.get(n):{},rl.get(t),e.defaults]);rl.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");rl.route(i,o,l,a)}))}(t,e.defaultRoutes),e.descriptors&&rl.describe(t,e.descriptors)}(e,i,n),this.override&&rl.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in rl[r]&&(delete rl[r][n],this.override&&delete Xa[n])}}class Lc{constructor(){this.controllers=new Mc(Du,"datasets",!0),this.elements=new Mc(Oc,"elements"),this.plugins=new Mc(Object,"plugins"),this.scales=new Mc(Nc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Gs(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=oa(e);$s(n["before"+r],[],n),t[e](n),$s(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var jc=new Lc;class Fc{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===$s(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){qs(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=Ws(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(jc.plugins.items);for(let e=0;e<r.length;e++)n.push(jc.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],s=e.getContext();for(const a of t){const t=a.id,l=Bc(r[t],o);null!==l&&i.push({plugin:a,options:qc(e.config,{plugin:a,local:n[t]},l,s)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Bc(e,t){return t||!1!==e?!0===e?{}:e:null}function qc(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Hc(e,t){const n=rl.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function zc(e){if("x"===e||"y"===e||"r"===e)return e}function Qc(e,...t){if(zc(e))return e;for(const r of t){const t=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.length>1&&zc(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Uc(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Wc(e){const t=e.options||(e.options={});t.plugins=Ws(t.plugins,{}),t.scales=function(e,t){const n=Xa[e.type]||{scales:{}},r=t.scales||{},o=Hc(e.type,t),i=Object.create(null);return Object.keys(r).forEach((t=>{const s=r[t];if(!zs(s))return console.error(`Invalid scale configuration for scale: ${t}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=Qc(t,s,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Uc(e,"x",n[0])||Uc(e,"y",n[0])}return{}}(t,e),rl.scales[s.type]),l=function(e,t){return e===t?"_index_":"_value_"}(a,o),u=n.scales||{};i[t]=ea(Object.create(null),[{axis:a},s,u[a],u[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,s=n.indexAxis||Hc(o,t),a=(Xa[o]||{}).scales||{};Object.keys(a).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),o=n[t+"AxisID"]||t;i[o]=i[o]||Object.create(null),ea(i[o],[{axis:t},r[o],a[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];ea(t,[rl.scales[t.type],rl.scale])})),i}(e,t)}function $c(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Gc=new Map,Jc=new Set;function Yc(e,t){let n=Gc.get(e);return n||(n=t(),Gc.set(e,n),Jc.add(n)),n}const Kc=(e,t,n)=>{const r=ra(t,n);void 0!==r&&e.add(r)};class Xc{constructor(e){this._config=function(e){return(e=e||{}).data=$c(e.data),Wc(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$c(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Wc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Yc(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Yc(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Yc(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Yc(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),s=i.get(t);if(s)return s;const a=new Set;t.forEach((t=>{e&&(a.add(e),t.forEach((t=>Kc(a,e,t)))),t.forEach((e=>Kc(a,r,e))),t.forEach((e=>Kc(a,Xa[o]||{},e))),t.forEach((e=>Kc(a,rl,e))),t.forEach((e=>Kc(a,Za,e)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Jc.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Xa[t]||{},rl.datasets[t]||{},{type:t},rl,Za]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:s}=Zc(this._resolverCache,e,r);let a=i;(function(e,t){const{isScriptable:n,isIndexable:r}=Il(e);for(const o of t){const t=n(o),i=r(o),s=(i||t)&&e[o];if(t&&(sa(s)||ep(s))||i&&Hs(s))return!0}return!1})(i,t)&&(o.$shared=!1,a=Rl(i,n=sa(n)?n():n,this.createResolver(e,n,s)));for(const e of t)o[e]=a[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Zc(this._resolverCache,e,n);return zs(t)?Rl(o,t,void 0,r):o}}function Zc(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:Vl(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,i)),i}const ep=e=>zs(e)&&Object.getOwnPropertyNames(e).some((t=>sa(e[t]))),tp=["top","bottom","left","right","chartArea"];function np(e,t){return"top"===e||"bottom"===e||-1===tp.indexOf(e)&&"x"===t}function rp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function op(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),$s(n&&n.onComplete,[e],t)}function ip(e){const t=e.chart,n=t.options.animation;$s(n&&n.onProgress,[e],t)}function sp(e){return Gl()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ap={},lp=e=>{const t=sp(e);return Object.values(ap).filter((e=>e.canvas===t)).pop()};function up(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}function cp(e,t,n){return e.options.clip?e[n]:t[n]}class pp{static defaults=rl;static instances=ap;static overrides=Xa;static registry=jc;static version="4.4.3";static getChart=lp;static register(...e){jc.add(...e),dp()}static unregister(...e){jc.remove(...e),dp()}constructor(e,t){const n=this.config=new Xc(t),r=sp(e),o=lp(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Gl()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?cc:Sc}(r)),this.platform.updateConfig(n);const s=this.platform.acquireContext(r,i.aspectRatio),a=s&&s.canvas,l=a&&a.height,u=a&&a.width;this.id=Bs(),this.ctx=s,this.canvas=a,this.width=u,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Fc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],ap[this.id]=this,s&&a?(vu.listen(this,"complete",op),vu.listen(this,"progress",ip),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return qs(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return jc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ru(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return sl(this.canvas,this.ctx),this}stop(){return vu.stop(this),this}resize(e,t){vu.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,ru(this,s,!0)&&(this.notifyPlugins("resize",{size:i}),$s(n.onResize,[this,i],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Gs(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Qc(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),Gs(o,(t=>{const o=t.options,i=o.id,s=Qc(i,o),a=Ws(o.type,t.dtype);void 0!==o.position&&np(o.position,s)===np(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;i in n&&n[i].type===a?l=n[i]:(l=new(jc.getScale(a))({id:i,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,e)})),Gs(r,((e,t)=>{e||delete n[t]})),Gs(n,(e=>{lc.configure(this,e,e.options),lc.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(rp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||Hc(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=jc.getController(i),{datasetElementType:r,dataElementType:s}=rl.datasets[i];Object.assign(t,{dataElementType:jc.getElement(s),datasetElementType:r&&jc.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Gs(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||Gs(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(rp("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Gs(this.scales,(e=>{lc.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);aa(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t)up(e,r,"_removeElements"===n?-o:o)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let e=1;e<t;e++)if(!aa(r,n(e)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;lc.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Gs(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,sa(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vu.has(this)?this.attached&&!vu.running(this)&&vu.start(this):(this.draw(),op({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:cp(n,t,"left"),right:cp(n,t,"right"),top:cp(r,t,"top"),bottom:cp(r,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&cl(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&pl(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return ul(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=Yu.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=_l(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);ia(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),vu.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),sl(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete ap[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Gs(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const s=()=>{r("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",s)},t.isAttached(this.canvas)?s():i()}unbindEvents(){Gs(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Gs(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,s,a;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),s=0,a=e.length;s<a;++s){i=e[s];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!Js(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),s=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),s.length&&r.mode&&this.updateHoverStyle(s,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,s=this._getActiveElements(e,r,n,i),a=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,a);n&&(this._lastEvent=null,$s(o.onHover,[e,s,this],this),a&&$s(o.onClick,[e,s,this],this));const u=!Js(s,r);return(u||t)&&(this._active=s,this._updateHoverStyles(s,r,t)),this._lastEvent=l,u}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function dp(){return Gs(pp.instances,(e=>e._plugins.invalidate()))}function hp(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function fp(e,t,n,r,o,i){const{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=t,p=Math.max(t.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0;let h=0;const f=o-l;if(r){const e=((c>0?c-r:0)+(p>0?p-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*p-n/la)/p)/2,g=l+m+h,y=o-m-h,{outerStart:v,outerEnd:b,innerStart:C,innerEnd:w}=function(e,t,n,r){const o=xl(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),i=(n-t)/2,s=Math.min(i,r*t/2),a=e=>{const t=(n-Math.min(i,e))*r/2;return _a(e,0,Math.min(i,t))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:_a(o.innerStart,0,s),innerEnd:_a(o.innerEnd,0,s)}}(t,d,p,y-g),x=p-v,E=p-b,P=g+v/x,S=y-b/E,O=d+C,T=d+w,_=g+C/O,V=y-w/T;if(e.beginPath(),i){const t=(P+S)/2;if(e.arc(s,a,p,P,t),e.arc(s,a,p,t,S),b>0){const t=hp(E,S,s,a);e.arc(t.x,t.y,b,S,y+ha)}const n=hp(T,y,s,a);if(e.lineTo(n.x,n.y),w>0){const t=hp(T,V,s,a);e.arc(t.x,t.y,w,y+ha,V+Math.PI)}const r=(y-w/d+(g+C/d))/2;if(e.arc(s,a,d,y-w/d,r,!0),e.arc(s,a,d,r,g+C/d,!0),C>0){const t=hp(O,_,s,a);e.arc(t.x,t.y,C,_+Math.PI,g-ha)}const o=hp(x,g,s,a);if(e.lineTo(o.x,o.y),v>0){const t=hp(x,P,s,a);e.arc(t.x,t.y,v,g-ha,P)}}else{e.moveTo(s,a);const t=Math.cos(P)*p+s,n=Math.sin(P)*p+a;e.lineTo(t,n);const r=Math.cos(S)*p+s,o=Math.sin(S)*p+a;e.lineTo(r,o)}e.closePath()}class mp extends Oc{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=Ea(r,{x:e,y:t}),{startAngle:s,endAngle:a,innerRadius:l,outerRadius:u,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,d=Ws(c,a-s)>=ua||Ta(o,s,a),h=Va(i,l+p,u+p);return d&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:a,spacing:l}=this.options,u=(r+o)/2,c=(i+s+l+a)/2;return{x:t+Math.cos(u)*c,y:n+Math.sin(u)*c}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>ua?Math.floor(n/ua):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*r,Math.sin(s)*r);const a=r*(1-Math.sin(Math.min(la,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:i,startAngle:s,circumference:a}=t;let l=t.endAngle;if(i){fp(e,t,n,r,l,o);for(let t=0;t<i;++t)e.fill();isNaN(a)||(l=s+(a%ua||ua))}fp(e,t,n,r,l,o),e.fill()}(e,this,a,o,i),function(e,t,n,r,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:p,borderDashOffset:d}=l,h="inner"===l.borderAlign;if(!u)return;e.setLineDash(p||[]),e.lineDashOffset=d,h?(e.lineWidth=2*u,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let f=t.endAngle;if(i){fp(e,t,n,r,f,o);for(let t=0;t<i;++t)e.stroke();isNaN(a)||(f=s+(a%ua||ua))}h&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=t;let u=o/a;e.beginPath(),e.arc(i,s,a,r-u,n+u),l>o?(u=o/l,e.arc(i,s,l,n+u,r-u,!0)):e.arc(i,s,o,n+ha,r-ha),e.closePath(),e.clip()}(e,t,f),i||(fp(e,t,n,r,f,o),e.stroke())}(e,this,a,o,i),e.restore()}}function gp(e,t,n=t){e.lineCap=Ws(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ws(n.borderDash,t.borderDash)),e.lineDashOffset=Ws(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ws(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ws(n.borderWidth,t.borderWidth),e.strokeStyle=Ws(n.borderColor,t.borderColor)}function yp(e,t,n){e.lineTo(n.x,n.y)}function vp(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:s,end:a}=t,l=Math.max(o,s),u=Math.min(i,a),c=o<s&&i<s||o>a&&i>a;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function bp(e,t,n,r){const{points:o,options:i}=t,{count:s,start:a,loop:l,ilen:u}=vp(o,n,r),c=function(e){return e.stepped?dl:e.tension||"monotone"===e.cubicInterpolationMode?hl:yp}(i);let p,d,h,{move:f=!0,reverse:m}=r||{};for(p=0;p<=u;++p)d=o[(a+(m?u-p:p))%s],d.skip||(f?(e.moveTo(d.x,d.y),f=!1):c(e,h,d,m,i.stepped),h=d);return l&&(d=o[(a+(m?u:0))%s],c(e,h,d,m,i.stepped)),!!l}function Cp(e,t,n,r){const o=t.points,{count:i,start:s,ilen:a}=vp(o,n,r),{move:l=!0,reverse:u}=r||{};let c,p,d,h,f,m,g=0,y=0;const v=e=>(s+(u?a-e:e))%i,b=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(p=o[v(0)],e.moveTo(p.x,p.y)),c=0;c<=a;++c){if(p=o[v(c)],p.skip)continue;const t=p.x,n=p.y,r=0|t;r===d?(n<h?h=n:n>f&&(f=n),g=(y*g+t)/++y):(b(),e.lineTo(t,n),d=r,y=0,h=f=n),m=n}b()}function wp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?bp:Cp}const xp="function"==typeof Path2D;class Ep extends Oc{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;$l(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:s,end:a}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return function(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const o=e._chart.getContext(),i=mu(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,u=[];let c=i,p=t[0].start,d=p;function h(e,t,r,o){const i=a?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:o}),c=o,p=t%l)}}for(const e of t){p=a?p:e.start;let t,i=n[p%l];for(d=p+1;d<=e.end;d++){const a=n[d%l];t=mu(r.setContext(_l(o,{type:"segment",p0:i,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),gu(t,c)&&h(p,d-1,e.loop,c),i=a,c=t}p<d-1&&h(p,d-1,e.loop,c)}return u}(e,t,n,r):t}(e,!0===r?[{start:s,end:a,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let s,a=t,l=e[t];for(s=t+1;s<=n;++s){const n=e[s%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(s-1)%o,loop:r}),t=a=n.stop?s:null):(a=s,l.skip&&(t=s)),l=n}return null!==a&&i.push({start:t%o,end:a%o,loop:r}),i}(n,s,a<s?a+o:a,!!e._fullLoop&&0===s&&a===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=function(e,t){const n=[],r=e.segments;for(let o=0;o<r.length;o++){const i=fu(r[o],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:r,end:r});if(!i.length)return;const s=[],a=function(e){return e.stepped?au:e.tension||"monotone"===e.cubicInterpolationMode?lu:su}(n);let l,u;for(l=0,u=i.length;l<u;++l){const{start:u,end:c}=i[l],p=o[u],d=o[c];if(p===d){s.push(p);continue}const h=a(p,d,Math.abs((r-p[t])/(d[t]-p[t])),n.stepped);h[t]=e[t],s.push(h)}return 1===s.length?s[0]:s}pathSegment(e,t,n){return wp(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=wp(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const s of r)i&=o(e,this,s,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),function(e,t,n,r){xp&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),gp(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,s=wp(t);for(const a of o)gp(e,i,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pp(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}class Sp extends Oc{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return Pp(this,e,"x",t)}inYRange(e,t){return Pp(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!ul(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,al(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Op(e,t){const{x:n,y:r,base:o,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,u,c,p;return e.horizontal?(p=s/2,a=Math.min(n,o),l=Math.max(n,o),u=r-p,c=r+p):(p=i/2,a=n-p,l=n+p,u=Math.min(r,o),c=Math.max(r,o)),{left:a,top:u,right:l,bottom:c}}function Tp(e,t,n,r){return e?0:_a(t,n,r)}function _p(e,t,n,r){const o=null===t,i=null===n,s=e&&!(o&&i)&&Op(e,r);return s&&(o||Va(t,s.left,s.right))&&(i||Va(n,s.top,s.bottom))}function Vp(e,t){e.rect(t.x,t.y,t.w,t.h)}function Rp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+s,radius:e.radius}}class Ip extends Oc{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=function(e){const t=Op(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=El(r);return{t:Tp(o.top,i.top,0,n),r:Tp(o.right,i.right,0,t),b:Tp(o.bottom,i.bottom,0,n),l:Tp(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Pl(o),s=Math.min(t,n),a=e.borderSkipped,l=r||zs(o);return{topLeft:Tp(!l||a.top||a.left,i.topLeft,0,s),topRight:Tp(!l||a.top||a.right,i.topRight,0,s),bottomLeft:Tp(!l||a.bottom||a.left,i.bottomLeft,0,s),bottomRight:Tp(!l||a.bottom||a.right,i.bottomRight,0,s)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}(this),s=(a=i.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?yl:Vp;var a;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),s(e,Rp(i,t,o)),e.clip(),s(e,Rp(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),s(e,Rp(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return _p(this,e,t,n)}inXRange(e,t){return _p(this,e,null,t)}inYRange(e,t){return _p(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}const kp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Ap extends Oc{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=$s(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Ol(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:s,itemHeight:a}=kp(n,o);let l,u;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,u=this._fitRows(i,o,s,a)+10):(u=this.maxHeight,l=this._fitCols(i,r,s,a)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+s;let c=e;o.textAlign="left",o.textBaseline="middle";let p=-1,d=-u;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+o.measureText(e.text).width;(0===h||l[l.length-1]+f+2*s>i)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,p++),a[h]={left:0,top:d,row:p,width:f,height:r},l[l.length-1]+=f+s})),c}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],u=i-e;let c=s,p=0,d=0,h=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,o){const i=function(e,t,n,r){let o=e.text;return o&&"string"!=typeof o&&(o=o.reduce(((e,t)=>e.length>t.length?e:t))),t+n.size/2+r.measureText(o).width}(r,e,t,n),s=function(e,t,n){let r=e;return"string"!=typeof t.text&&(r=Dp(t,n)),r}(o,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}(n,t,o,e,r);i>0&&d+g+2*s>u&&(c+=p+s,l.push({width:p,height:d}),h+=p+s,f++,p=d=0),a[i]={left:h,top:d,col:f,width:m,height:g},p=Math.max(p,m),d+=g+s})),c+=p,l.push({width:p,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=uu(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=ja(n,this.left+r,this.right-this.lineWidths[o]);for(const a of t)o!==a.row&&(o=a.row,s=ja(n,this.left+r,this.right-this.lineWidths[o])),a.top+=this.top+e+r,a.left=i.leftForLtr(i.x(s),a.width),s+=a.width+r}else{let o=0,s=ja(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const a of t)a.col!==o&&(o=a.col,s=ja(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),a.top=s,a.left+=this.left+r,a.left=i.leftForLtr(i.x(a.left),a.width),s+=a.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;cl(e,this),this._draw(),pl(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,s=rl.color,a=uu(e.rtl,this.left,this.width),l=Ol(i.font),{padding:u}=i,c=l.size,p=c/2;let d;this.drawTitle(),r.textAlign=a.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=kp(i,c),g=this.isHorizontal(),y=this._computeTitleHeight();d=g?{x:ja(o,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:ja(o,this.top+y+u,this.bottom-t[0].height),line:0},cu(this.ctx,e.textDirection);const v=m+u;this.legendItems.forEach(((b,C)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const w=r.measureText(b.text).width,x=a.textAlign(b.textAlign||(b.textAlign=i.textAlign)),E=h+p+w;let P=d.x,S=d.y;if(a.setWidth(this.width),g?C>0&&P+E+u>this.right&&(S=d.y+=v,d.line++,P=d.x=ja(o,this.left+u,this.right-n[d.line])):C>0&&S+v>this.bottom&&(P=d.x=P+t[d.line].width+u,d.line++,S=d.y=ja(o,this.top+y+u,this.bottom-t[d.line].height)),function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;r.save();const o=Ws(n.lineWidth,1);if(r.fillStyle=Ws(n.fillStyle,s),r.lineCap=Ws(n.lineCap,"butt"),r.lineDashOffset=Ws(n.lineDashOffset,0),r.lineJoin=Ws(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=Ws(n.strokeStyle,s),r.setLineDash(Ws(n.lineDash,[])),i.usePointStyle){const s={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=a.xPlus(e,h/2);ll(r,s,l,t+p,i.pointStyleWidth&&h)}else{const i=t+Math.max((c-f)/2,0),s=a.leftForLtr(e,h),l=Pl(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?yl(r,{x:s,y:i,w:h,h:f,radius:l}):r.rect(s,i,h,f),r.fill(),0!==o&&r.stroke()}r.restore()}(a.x(P),S,b),P=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(x,P+h+p,g?P+E:this.right,e.rtl),function(e,t,n){gl(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(P),S,b),g)d.x+=E+u;else if("string"!=typeof b.text){const e=l.lineHeight;d.y+=Dp(b,e)+u}else d.y+=v})),pu(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ol(t.font),r=Sl(t.padding);if(!t.display)return;const o=uu(e.rtl,this.left,this.width),i=this.ctx,s=t.position,a=n.size/2,l=r.top+a;let u,c=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+l,c=ja(e.align,c,this.right-p);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);u=l+ja(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const d=ja(s,c,c+p);i.textAlign=o.textAlign(La(s)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,gl(i,t.text,d,u,n)}_computeTitleHeight(){const e=this.options.title,t=Ol(e.font),n=Sl(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(Va(e,this.left,this.right)&&Va(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],Va(e,r.left,r.left+r.width)&&Va(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,o=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(r,n);r&&!o&&$s(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!o&&$s(t.onHover,[e,n,this],this)}else n&&$s(t.onClick,[e,n,this],this)}}function Dp(e,t){return t*(e.text?e.text.length:0)}var Np={id:"legend",_element:Ap,start(e,t,n){const r=e.legend=new Ap({ctx:e.ctx,options:n,chart:e});lc.configure(e,r,n),lc.addBox(e,r)},stop(e){lc.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;lc.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),u=Sl(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:s&&(a||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Mp extends Oc{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=Hs(n.text)?n.text.length:1;this._padding=Sl(n.padding);const o=r*Ol(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:i}=this,s=i.align;let a,l,u,c=0;return this.isHorizontal()?(l=ja(s,n,o),u=t+e,a=o-n):("left"===i.position?(l=n+e,u=ja(s,r,t),c=-.5*la):(l=o-e,u=ja(s,t,r),c=.5*la),a=r-t),{titleX:l,titleY:u,maxWidth:a,rotation:c}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Ol(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:s,rotation:a}=this._drawArgs(r);gl(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:a,textAlign:La(t.align),textBaseline:"middle",translation:[o,i]})}}var Lp={id:"title",_element:Mp,start(e,t,n){!function(e,t){const n=new Mp({ctx:e.ctx,options:t,chart:e});lc.configure(e,n,t),lc.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;lc.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;lc.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const jp={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),o+=e.y,++i}}const s=[...r].reduce(((e,t)=>e+t))/r.size;return{x:s,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,s=t.y,a=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Pa(t,r.getCenterPoint());e<a&&(a=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,s=e.y}return{x:i,y:s}}};function Fp(e,t){return t&&(Hs(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Bp(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function qp(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:e,label:s,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Hp(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:s,boxHeight:a}=t,l=Ol(t.bodyFont),u=Ol(t.titleFont),c=Ol(t.footerFont),p=i.length,d=o.length,h=r.length,f=Sl(t.padding);let m=f.height,g=0,y=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);y+=e.beforeBody.length+e.afterBody.length,p&&(m+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),y&&(m+=h*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(y-h)*l.lineHeight+(y-1)*t.bodySpacing),d&&(m+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);let v=0;const b=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=u.string,Gs(e.title,b),n.font=l.string,Gs(e.beforeBody.concat(e.afterBody),b),v=t.displayColors?s+2+t.boxPadding:0,Gs(r,(e=>{Gs(e.before,b),Gs(e.lines,b),Gs(e.after,b)})),v=0,n.font=c.string,Gs(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function zp(e,t,n,r){const{x:o,width:i}=n,{width:s,chartArea:{left:a,right:l}}=e;let u="center";return"center"===r?u=o<=(a+l)/2?"left":"right":o<=i/2?u="left":o>=s-i/2&&(u="right"),function(e,t,n,r){const{x:o,width:i}=r,s=n.caretSize+n.caretPadding;return"left"===e&&o+i+s>t.width||"right"===e&&o-i-s<0||void 0}(u,e,t,n)&&(u="center"),u}function Qp(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||zp(e,t,n,r),yAlign:r}}function Up(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,u=o+i,{topLeft:c,topRight:p,bottomLeft:d,bottomRight:h}=Pl(s);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,a);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,u);return"center"===l?"left"===a?f+=u:"right"===a&&(f-=u):"left"===a?f-=Math.max(c,d)+o:"right"===a&&(f+=Math.max(p,h)+o),{x:_a(f,0,r.width-t.width),y:_a(m,0,r.height-t.height)}}function Wp(e,t,n){const r=Sl(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function $p(e){return Fp([],Bp(e))}function Gp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Jp={beforeTitle:Fs,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Fs,beforeBody:Fs,beforeLabel:Fs,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return qs(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Fs,afterBody:Fs,beforeFooter:Fs,footer:Fs,afterFooter:Fs};function Yp(e,t,n,r){const o=e[t].call(n,r);return void 0===o?Jp[t].call(n,r):o}class Kp extends Oc{static positioners=jp;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new xu(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=_l(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(e,t){const{callbacks:n}=t,r=Yp(n,"beforeTitle",this,e),o=Yp(n,"title",this,e),i=Yp(n,"afterTitle",this,e);let s=[];return s=Fp(s,Bp(r)),s=Fp(s,Bp(o)),s=Fp(s,Bp(i)),s}getBeforeBody(e,t){return $p(Yp(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return Gs(e,(e=>{const t={before:[],lines:[],after:[]},o=Gp(n,e);Fp(t.before,Bp(Yp(o,"beforeLabel",this,e))),Fp(t.lines,Yp(o,"label",this,e)),Fp(t.after,Bp(Yp(o,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return $p(Yp(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=Yp(n,"beforeFooter",this,e),o=Yp(n,"footer",this,e),i=Yp(n,"afterFooter",this,e);let s=[];return s=Fp(s,Bp(r)),s=Fp(s,Bp(o)),s=Fp(s,Bp(i)),s}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let s,a,l=[];for(s=0,a=t.length;s<a;++s)l.push(qp(this.chart,t[s]));return e.filter&&(l=l.filter(((t,r,o)=>e.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),Gs(l,(t=>{const n=Gp(e.callbacks,t);r.push(Yp(n,"labelColor",this,t)),o.push(Yp(n,"labelPointStyle",this,t)),i.push(Yp(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=jp[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=Hp(this,n),s=Object.assign({},e,t),a=Qp(this.chart,n,s),l=Up(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:s}=n,{topLeft:a,topRight:l,bottomLeft:u,bottomRight:c}=Pl(s),{x:p,y:d}=e,{width:h,height:f}=t;let m,g,y,v,b,C;return"center"===o?(b=d+f/2,"left"===r?(m=p,g=m-i,v=b+i,C=b-i):(m=p+h,g=m+i,v=b-i,C=b+i),y=m):(g="left"===r?p+Math.max(a,u)+i:"right"===r?p+h-Math.max(l,c)-i:this.caretX,"top"===o?(v=d,b=v-i,m=g-i,y=g+i):(v=d+f,b=v+i,m=g+i,y=g-i),C=v),{x1:m,x2:g,x3:y,y1:v,y2:b,y3:C}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,s,a;if(o){const l=uu(n.rtl,this.x,this.width);for(e.x=Wp(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Ol(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+s,a+1===o&&(e.y+=n.titleMarginBottom-s)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:a,boxWidth:l}=o,u=Ol(o.bodyFont),c=Wp(this,"left",o),p=r.x(c),d=a<u.lineHeight?(u.lineHeight-a)/2:0,h=t.y+d;if(o.usePointStyle){const t={radius:Math.min(l,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=r.leftForLtr(p,l)+l/2,u=h+a/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,al(e,t,n,u),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,al(e,t,n,u)}else{e.lineWidth=zs(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(p,l),n=r.leftForLtr(r.xPlus(p,1),l-2),s=Pl(i.borderRadius);Object.values(s).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,yl(e,{x:t,y:h,w:l,h:a,radius:s}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),yl(e,{x:n,y:h+1,w:l-2,h:a-2,radius:s}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,h,l,a),e.strokeRect(t,h,l,a),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,a-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:u}=n,c=Ol(n.bodyFont);let p=c.lineHeight,d=0;const h=uu(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+d),e.y+p/2),e.y+=p+o},m=h.textAlign(i);let g,y,v,b,C,w,x;for(t.textAlign=i,t.textBaseline="middle",t.font=c.string,e.x=Wp(this,m,n),t.fillStyle=n.bodyColor,Gs(this.beforeBody,f),d=s&&"right"!==m?"center"===i?l/2+u:l+2+u:0,b=0,w=r.length;b<w;++b){for(g=r[b],y=this.labelTextColors[b],t.fillStyle=y,Gs(g.before,f),v=g.lines,s&&v.length&&(this._drawColorBox(t,e,b,h,n),p=Math.max(c.lineHeight,a)),C=0,x=v.length;C<x;++C)f(v[C]),p=c.lineHeight;Gs(g.after,f)}d=0,p=c.lineHeight,Gs(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,s;if(o){const a=uu(n.rtl,this.x,this.width);for(e.x=Wp(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=a.textAlign(n.footerAlign),t.textBaseline="middle",i=Ol(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],a.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:s,y:a}=e,{width:l,height:u}=n,{topLeft:c,topRight:p,bottomLeft:d,bottomRight:h}=Pl(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(s+c,a),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(s+l-p,a),t.quadraticCurveTo(s+l,a,s+l,a+p),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(s+l,a+u-h),t.quadraticCurveTo(s+l,a+u,s+l-h,a+u),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(s+d,a+u),t.quadraticCurveTo(s,a+u,s,a+u-d),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(s,a+c),t.quadraticCurveTo(s,a,s+c,a),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=jp[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Hp(this,e),s=Object.assign({},n,this._size),a=Qp(t,e,s),l=Up(e,s,a,t);r._to===l.x&&o._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Sl(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),cu(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),pu(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!Js(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),s=this._positionChanged(i,e),a=t||!Js(i,o)||s;return a&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),a}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=jp[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}var Xp={id:"tooltip",_element:Kp,positioners:jp,afterInit(e,t,n){n&&(e.tooltip=new Kp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Jp},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Zp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class ed extends Nc{static id="category";static defaults={ticks:{callback:Zp}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(qs(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:_a(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,r){const o=e.indexOf(t);return-1===o?((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r):o!==e.lastIndexOf(t)?n:o}(n,e,Ws(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return Zp.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function td(e,t,{horizontal:n,minRotation:r}){const o=wa(r),i=(n?Math.sin(o):Math.cos(o))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class nd extends Nc{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return qs(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,s=e=>o=n?o:e;if(e){const e=ya(r),t=ya(o);e<0&&t<0?s(0):e>0&&t>0&&i(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);s(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(e,t){const n=[],{bounds:r,step:o,min:i,max:s,precision:a,count:l,maxTicks:u,maxDigits:c,includeBounds:p}=e,d=o||1,h=u-1,{min:f,max:m}=t,g=!qs(i),y=!qs(s),v=!qs(l),b=(m-f)/(c+1);let C,w,x,E,P=ba((m-f)/h/d)*d;if(P<1e-14&&!g&&!y)return[{value:f},{value:m}];E=Math.ceil(m/P)-Math.floor(f/P),E>h&&(P=ba(E*P/h/d)*d),qs(a)||(C=Math.pow(10,a),P=Math.ceil(P*C)/C),"ticks"===r?(w=Math.floor(f/P)*P,x=Math.ceil(m/P)*P):(w=f,x=m),g&&y&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((s-i)/o,P/1e3)?(E=Math.round(Math.min((s-i)/P,u)),P=(s-i)/E,w=i,x=s):v?(w=g?i:w,x=y?s:x,E=l-1,P=(x-w)/E):(E=(x-w)/P,E=va(E,Math.round(E),P/1e3)?Math.round(E):Math.ceil(E));const S=Math.max(xa(P),xa(w));C=Math.pow(10,qs(a)?S:a),w=Math.round(w*C)/C,x=Math.round(x*C)/C;let O=0;for(g&&(p&&w!==i?(n.push({value:i}),w<i&&O++,va(Math.round((w+O*P)*C)/C,i,td(i,b,e))&&O++):w<i&&O++);O<E;++O){const e=Math.round((w+O*P)*C)/C;if(y&&e>s)break;n.push({value:e})}return y&&p&&x!==s?n.length&&va(n[n.length-1].value,s,td(s,b,e))?n[n.length-1].value=s:n.push({value:s}):y&&x!==s||n.push({value:x}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&function(e,t,n){let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Ja(e,this.chart.options.locale,this.options.ticks.format)}}class rd extends nd{static id="linear";static defaults={ticks:{callback:Ka.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Qs(e)?e:0,this.max=Qs(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=wa(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Ka.formatters.logarithmic,Ka.formatters.numeric;const od="label";function id(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function sd(e,t){e.labels=t}function ad(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:od;const r=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[n]===t[n]));return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}}))}function ld(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:od;const n={labels:[],datasets:[]};return sd(n,e.labels),ad(n,e.datasets,t),n}function ud(e,n){const{height:r=150,width:o=300,redraw:i=!1,datasetIdKey:s,type:a,data:l,options:u,plugins:c=[],fallbackContent:p,updateMode:d,...h}=e,f=(0,t.useRef)(null),m=(0,t.useRef)(),g=()=>{f.current&&(m.current=new pp(f.current,{type:a,data:ld(l,s),options:u&&{...u},plugins:c}),id(n,m.current))},y=()=>{id(n,null),m.current&&(m.current.destroy(),m.current=null)};return(0,t.useEffect)((()=>{!i&&m.current&&u&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,u)}),[i,u]),(0,t.useEffect)((()=>{!i&&m.current&&sd(m.current.config.data,l.labels)}),[i,l.labels]),(0,t.useEffect)((()=>{!i&&m.current&&l.datasets&&ad(m.current.config.data,l.datasets,s)}),[i,l.datasets]),(0,t.useEffect)((()=>{m.current&&(i?(y(),setTimeout(g)):m.current.update(d))}),[i,u,l.labels,l.datasets,d]),(0,t.useEffect)((()=>{m.current&&(y(),setTimeout(g))}),[a]),(0,t.useEffect)((()=>(g(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:f,role:"img",height:r,width:o},h),p)}const cd=(0,t.forwardRef)(ud);function pd(e,n){return pp.register(n),(0,t.forwardRef)(((n,r)=>t.createElement(cd,Object.assign({},n,{ref:r,type:e}))))}const dd=pd("line",Qu),hd=pd("bar",zu);var fd=o(292);function md(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){},r=new Map,o=md(e);try{for(o.s();!(t=o.n()).done;){var i,s=Rt(t.value,2),a=s[0],l=s[1],u=new Map,c=md(l);try{for(c.s();!(i=c.n()).done;){var p,d=Rt(i.value,2),h=d[0],f=d[1],m=new Map,g=md(f);try{for(g.s();!(p=g.n()).done;){var y=Rt(p.value,2),v=y[0],b=n(h,y[1]);b?m.set(v,{tooltip:b}):m.set(v,{})}}catch(e){g.e(e)}finally{g.f()}u.set(h,m)}}catch(e){c.e(e)}finally{c.f()}r.set(a,u)}}catch(e){o.e(e)}finally{o.f()}return r}function vd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);(!n||n.year<e.year)&&t.set(e.nren,e)})),Array.from(t.values())}var bd=function(e){var t={};return e.urls||e.url?(e.urls&&e.urls.forEach((function(e){t[e]=e})),e.url&&(t[e.url]=e.url),t):t};function Cd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);n||(n=new Map);var r=n.get(e.year);r||(r=[]),r.push(e),n.set(e.year,r),t.set(e.nren,n)})),t}function wd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);n||(n=new Map),n.set(e.year,e),t.set(e.nren,n)})),t}function xd(e,t){var n=new Map;return e.forEach((function(e,r){var o=new Map,i=Array.from(e.keys()).sort((function(e,t){return t-e}));i.forEach((function(n){var r=e.get(n),i=o.get(n)||{};t(i,r),Object.keys(i).length>0&&o.set(n,i)})),n.set(r,o)})),n}function Ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Map;return e.forEach((function(e){var o=function(t){var n=r.get(e.nren);n||(n=new Map);var o=n.get(t);o||(o=new Map),o.set(e.year,e),n.set(t,o),r.set(e.nren,n)},i=e[t];"boolean"==typeof i&&(i=i?"True":"False"),n&&null==i&&(i="".concat(i)),Array.isArray(i)?i.forEach(o):o(i)})),r}function Pd(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0,i=new Map,s=function(e,t,n){e.forEach((function(e){o&&o(e);var s=t?e[t]:n;"boolean"==typeof s&&(s=s?"True":"False");var a=e.nren,l=e.year,u=i.get(a)||new Map,c=u.get(l)||new Map,p=c.get(s)||{},d=e[n];if(null!=d){var h=r?d:n,f=p[h]||{};f["".concat(d)]=d,p[h]=f,c.set(s,p),u.set(l,c),i.set(a,u)}}))};if(n){var a,l=md(t);try{for(l.s();!(a=l.n()).done;)s(e,n,a.value)}catch(e){l.e(e)}finally{l.f()}}else{var u,c=md(t);try{for(c.s();!(u=c.n()).done;)s(e,void 0,u.value)}catch(e){c.e(e)}finally{c.f()}}return i}function Sd(e,t){var n=Kt(new Set(e.map((function(e){return e.year})))).sort(),r=Kt(new Set(e.map((function(e){return e.nren})))).sort(),o=wd(e);return{datasets:r.map((function(e){var r=function(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",o=0;o<3;o++){var i="00"+(t>>8*o&255).toString(16);r+=i.substring(i.length-2)}return r}(e);return{backgroundColor:r,borderColor:r,data:n.map((function(n){var r=o.get(e);if(!r)return null;var i=r.get(n);return i?i[t]:null})),label:e,hidden:!1}})),labels:n.map((function(e){return e.toString()}))}}var Od=function(e,t,n){var r=wd(e),o=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),i={datasets:Kt(new Set(e.map((function(e){return e.year})))).sort().sort().map((function(e,i){return{backgroundColor:"rgba(219, 42, 76, 1)",label:"".concat(n," (").concat(e,")"),data:o.map((function(n){var o,i=r.get(n).get(e);return i&&null!==(o=i[t])&&void 0!==o?o:0})),stack:"".concat(e),borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}})),labels:o};return i};const Td=function(e){var n=e.to,r=e.children,o=window.location.pathname===n,i=(0,t.useRef)();return o&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"center"}),t.createElement(Tn,null,t.createElement(St,{to:n,className:"link-text-underline",ref:i},o?t.createElement("b",null,r):r))},_d=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1],s=function(e){e.stopPropagation(),e.preventDefault(),i(!o)},a=function(e){e.target.closest("#sidebar")||e.target.closest(".toggle-btn")||i(!1)};return(0,t.useEffect)((function(){return document.addEventListener("click",a),function(){document.removeEventListener("click",a)}})),t.createElement("div",{className:"sidebar-wrapper"},t.createElement("nav",{className:o?"":"no-sidebar",id:"sidebar"},t.createElement("div",{className:"menu-items"},n)),t.createElement("div",{className:"toggle-btn",onClick:s},t.createElement("div",{className:"toggle-btn-wrapper"},t.createElement("span",null,"MENU")," ",o?t.createElement(br,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:s}):t.createElement(Cr,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:s}))))},Vd=function(){return t.createElement(_d,null,t.createElement("h5",null,"Organisation"),t.createElement("h6",{className:"section-title"},"Budget, Income and Billing"),t.createElement(Td,{to:"/budget"},t.createElement("span",null,"Budget of NRENs per Year")),t.createElement(Td,{to:"/funding"},t.createElement("span",null,"Income Source of NRENs")),t.createElement(Td,{to:"/charging"},t.createElement("span",null,"Charging Mechanism of NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Staff and Projects"),t.createElement(Td,{to:"/employee-count"},t.createElement("span",null,"Number of NREN Employees")),t.createElement(Td,{to:"/roles"},t.createElement("span",null,"Roles of NREN employees (Technical v. Non-Technical)")),t.createElement(Td,{to:"/employment"},t.createElement("span",null,"Types of Employment within NRENs")),t.createElement(Td,{to:"/suborganisations"},t.createElement("span",null,"NREN Sub-Organisations")),t.createElement(Td,{to:"/parentorganisation"},t.createElement("span",null,"NREN Parent Organisations")),t.createElement(Td,{to:"/ec-projects"},t.createElement("span",null,"NREN Involvement in European Commission Projects")))},Rd=t.forwardRef((({bsPrefix:e,className:t,role:n="toolbar",...r},o)=>{const i=Cn(e,"btn-toolbar");return(0,gn.jsx)("div",{...r,ref:o,className:mn()(t,i),role:n})}));Rd.displayName="ButtonToolbar";const Id=Rd,kd=function(e){var n=e.activeCategory,r=We();return t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Id,{className:"navbox-bar gap-2 m-3"},t.createElement(as,{onClick:function(){return r(n===Tr.Organisation?".":"/funding")},variant:"nav-box",active:n===Tr.Organisation},t.createElement("span",null,Tr.Organisation)),t.createElement(as,{onClick:function(){return r(n===Tr.Policy?".":"/policy")},variant:"nav-box",active:n===Tr.Policy},t.createElement("span",null,Tr.Policy)),t.createElement(as,{onClick:function(){return r(n===Tr.ConnectedUsers?".":"/institutions-urls")},variant:"nav-box",active:n===Tr.ConnectedUsers},t.createElement("span",null,Tr.ConnectedUsers)),t.createElement(as,{onClick:function(){return r(n===Tr.Network?".":"/traffic-volume")},variant:"nav-box",active:n===Tr.Network},t.createElement("span",null,Tr.Network)),t.createElement(as,{onClick:function(){return r(n===Tr.Services?".":"/network-services")},variant:"nav-box",active:n===Tr.Services},t.createElement("span",null,Tr.Services)))))},Ad=function(){return t.createElement(_d,null,t.createElement("h5",null,"Standards and Policies"),t.createElement(Td,{to:"/policy"},t.createElement("span",null,"NREN Policies")),t.createElement("h6",{className:"section-title"},"Standards"),t.createElement(Td,{to:"/audits"},t.createElement("span",null,"External and Internal Audits of Information Security Management Systems")),t.createElement(Td,{to:"/business-continuity"},t.createElement("span",null,"NREN Business Continuity Planning")),t.createElement(Td,{to:"/central-procurement"},t.createElement("span",null,"Central Procurement of Software")),t.createElement(Td,{to:"/crisis-management"},t.createElement("span",null,"Crisis Management Procedures")),t.createElement(Td,{to:"/crisis-exercise"},t.createElement("span",null,"Crisis Exercises - NREN Operation and Participation")),t.createElement(Td,{to:"/security-control"},t.createElement("span",null,"Security Controls Used by NRENs")),t.createElement(Td,{to:"/services-offered"},t.createElement("span",null,"Services Offered by NRENs by Types of Users")),t.createElement(Td,{to:"/corporate-strategy"},t.createElement("span",null,"NREN Corporate Strategies ")),t.createElement(Td,{to:"/service-level-targets"},t.createElement("span",null,"NRENs Offering Service Level Targets")),t.createElement(Td,{to:"/service-management-framework"},t.createElement("span",null,"NRENs Operating a Formal Service Management Framework")))},Dd=function(){return t.createElement(_d,null,t.createElement("h5",null,"Network"),t.createElement("h6",{className:"section-title"},"Connectivity"),t.createElement(Td,{to:"/traffic-volume"},t.createElement("span",null,"NREN Traffic - NREN Customers & External Networks")),t.createElement(Td,{to:"/iru-duration"},t.createElement("span",null,"Average Duration of IRU leases of Fibre by NRENs")),t.createElement(Td,{to:"/fibre-light"},t.createElement("span",null,"Approaches to lighting NREN fibre networks")),t.createElement(Td,{to:"/dark-fibre-lease"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (National)")),t.createElement(Td,{to:"/dark-fibre-lease-international"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (International)")),t.createElement(Td,{to:"/dark-fibre-installed"},t.createElement("span",null,"Kilometres of Installed Dark Fibre")),t.createElement(Td,{to:"/network-map"},t.createElement("span",null,"NREN Network Maps")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Performance Monitoring & Management"),t.createElement(Td,{to:"/monitoring-tools"},t.createElement("span",null,"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions")),t.createElement(Td,{to:"/pert-team"},t.createElement("span",null,"NRENs with Performance Enhancement Response Teams")),t.createElement(Td,{to:"/passive-monitoring"},t.createElement("span",null,"Methods for Passively Monitoring International Traffic")),t.createElement(Td,{to:"/traffic-stats"},t.createElement("span",null,"Traffic Statistics ")),t.createElement(Td,{to:"/weather-map"},t.createElement("span",null,"NREN Online Network Weather Maps ")),t.createElement(Td,{to:"/certificate-providers"},t.createElement("span",null,"Certification Services used by NRENs")),t.createElement(Td,{to:"/siem-vendors"},t.createElement("span",null,"Vendors of SIEM/SOC systems used by NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Alienwave"),t.createElement(Td,{to:"/alien-wave"},t.createElement("span",null,"NREN Use of 3rd Party Alienwave/Lightpath Services")),t.createElement(Td,{to:"/alien-wave-internal"},t.createElement("span",null,"Internal NREN Use of Alien Waves")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Capacity"),t.createElement(Td,{to:"/capacity-largest-link"},t.createElement("span",null,"Capacity of the Largest Link in an NREN Network")),t.createElement(Td,{to:"/external-connections"},t.createElement("span",null,"NREN External IP Connections")),t.createElement(Td,{to:"/capacity-core-ip"},t.createElement("span",null,"NREN Core IP Capacity")),t.createElement(Td,{to:"/non-rne-peers"},t.createElement("span",null,"Number of Non-R&E Networks NRENs Peer With")),t.createElement(Td,{to:"/traffic-ratio"},t.createElement("span",null,"Types of traffic in NREN networks")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"),t.createElement(Td,{to:"/ops-automation"},t.createElement("span",null,"NREN Automation of Operational Processes")),t.createElement(Td,{to:"/network-automation"},t.createElement("span",null,"Network Tasks for which NRENs Use Automation ")),t.createElement(Td,{to:"/nfv"},t.createElement("span",null,"Kinds of Network Function Virtualisation used by NRENs")))},Nd=function(){return t.createElement(_d,null,t.createElement("h6",{className:"section-title"},"Connected Users"),t.createElement(Td,{to:"/institutions-urls"},t.createElement("span",null,"Webpages Listing Institutions and Organisations Connected to NREN Networks")),t.createElement(Td,{to:"/connected-proportion"},t.createElement("span",null,"Proportion of Different Categories of Institutions Served by NRENs")),t.createElement(Td,{to:"/connectivity-level"},t.createElement("span",null,"Level of IP Connectivity by Institution Type")),t.createElement(Td,{to:"/connection-carrier"},t.createElement("span",null,"Methods of Carrying IP Traffic to Users")),t.createElement(Td,{to:"/connectivity-load"},t.createElement("span",null,"Connectivity Load")),t.createElement(Td,{to:"/connectivity-growth"},t.createElement("span",null,"Connectivity Growth")),t.createElement(Td,{to:"/remote-campuses"},t.createElement("span",null,"NREN Connectivity to Remote Campuses in Other Countries")),t.createElement("h6",{className:"section-title"},"Connected Users - Commercial"),t.createElement(Td,{to:"/commercial-charging-level"},t.createElement("span",null,"Commercial Charging Level")),t.createElement(Td,{to:"/commercial-connectivity"},t.createElement("span",null,"Commercial Connectivity")))},Md=function(){return t.createElement(_d,null,t.createElement("h5",null,"Services"),t.createElement(Td,{to:"/network-services"},t.createElement("span",null,"Network services")),t.createElement(Td,{to:"/isp-support-services"},t.createElement("span",null,"ISP support services")),t.createElement(Td,{to:"/security-services"},t.createElement("span",null,"Security services")),t.createElement(Td,{to:"/identity-services"},t.createElement("span",null,"Identity services")),t.createElement(Td,{to:"/collaboration-services"},t.createElement("span",null,"Collaboration services")),t.createElement(Td,{to:"/multimedia-services"},t.createElement("span",null,"Multimedia services")),t.createElement(Td,{to:"/storage-and-hosting-services"},t.createElement("span",null,"Storage and hosting services")),t.createElement(Td,{to:"/professional-services"},t.createElement("span",null,"Professional services")))};var Ld={version:"0.18.5"},jd=1200,Fd=1252,Bd=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qd={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Hd=function(e){-1!=Bd.indexOf(e)&&(Fd=qd[0]=e)},zd=function(e){jd=e,Hd(e)};var Qd,Ud=function(e){return String.fromCharCode(e)},Wd=function(e){return String.fromCharCode(e)},$d=null,Gd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Jd(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0,l=0,u=0;u<e.length;)i=(n=e.charCodeAt(u++))>>2,s=(3&n)<<4|(r=e.charCodeAt(u++))>>4,a=(15&r)<<2|(o=e.charCodeAt(u++))>>6,l=63&o,isNaN(r)?a=l=64:isNaN(o)&&(l=64),t+=Gd.charAt(i)+Gd.charAt(s)+Gd.charAt(a)+Gd.charAt(l);return t}function Yd(e){var t="",n=0,r=0,o=0,i=0,s=0,a=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=Gd.indexOf(e.charAt(l++))<<2|(i=Gd.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&i)<<4|(s=Gd.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(r)),o=(3&s)<<6|(a=Gd.indexOf(e.charAt(l++))),64!==a&&(t+=String.fromCharCode(o));return t}var Kd=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),Xd=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function Zd(e){return Kd?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function eh(e){return Kd?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var th=function(e){return Kd?Xd(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function nh(e){if("undefined"==typeof ArrayBuffer)return th(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function rh(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var oh=Kd?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:Xd(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},ih=/\u0000/g,sh=/[\u0001-\u0006]/g;function ah(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function lh(e,t){var n=""+e;return n.length>=t?n:bf("0",t-n.length)+n}function uh(e,t){var n=""+e;return n.length>=t?n:bf(" ",t-n.length)+n}function ch(e,t){var n=""+e;return n.length>=t?n:n+bf(" ",t-n.length)}var ph=Math.pow(2,32);function dh(e,t){return e>ph||e<-ph?function(e,t){var n=""+Math.round(e);return n.length>=t?n:bf("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:bf("0",t-n.length)+n}(Math.round(e),t)}function hh(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var fh=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],mh=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],gh={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},yh={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},vh={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function bh(e,t,n){for(var r=e<0?-1:1,o=e*r,i=0,s=1,a=0,l=1,u=0,c=0,p=Math.floor(o);u<t&&(a=(p=Math.floor(o))*s+i,c=p*u+l,!(o-p<5e-8));)o=1/(o-p),i=s,s=a,l=u,u=c;if(c>t&&(u>t?(c=l,a=i):(c=u,a=s)),!n)return[0,r*a,c];var d=Math.floor(r*a/c);return[d,r*a-d*c,c]}function Ch(e,t,n){if(e>2958465||e<0)return null;var r=0|e,o=Math.floor(86400*(e-r)),i=0,s=[],a={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),t&&t.date1904&&(r+=1462),a.u>.9999&&(a.u=0,86400==++o&&(a.T=o=0,++r,++a.D)),60===r)s=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),r<60&&(i=(i+6)%7),n&&(i=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=o%60,o=Math.floor(o/60),a.M=o%60,o=Math.floor(o/60),a.H=o,a.q=i,a}var wh=new Date(1899,11,31,0,0,0),xh=wh.getTime(),Eh=new Date(1900,2,1,0,0,0);function Ph(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Eh&&(n+=864e5),(n-(xh+6e4*(e.getTimezoneOffset()-wh.getTimezoneOffset())))/864e5}function Sh(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Oh(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):function(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=Sh(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=Sh(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),Sh(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Wh(14,Ph(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Th(e,t,n,r){var o,i="",s=0,a=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,u=2;break;default:o=l%1e4,u=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,u=t.length;break;case 3:return mh[n.m-1][1];case 5:return mh[n.m-1][0];default:return mh[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,u=t.length;break;case 3:return fh[n.q][0];default:return fh[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(a=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(a*(n.S+n.u)))>=60*a&&(s=0),"s"===t?0===s?"0":""+s/a:(i=lh(s,2+r),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):lh(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:o=l,u=1}return u>0?lh(o,u):""}function _h(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var Vh=/%/g;function Rh(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Rh(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Ih=/# (\?+)( ?)\/( ?)(\d+)/,kh=/^#*0*\.([0#]+)/,Ah=/\).*[0#]/,Dh=/\(###\) ###\\?-####/;function Nh(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Mh(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Lh(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function jh(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Ah)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?jh("n",r,n):"("+jh("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return qh(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Vh,""),o=t.length-r.length;return qh(e,r,n*Math.pow(10,2*o))+bf("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return Rh(t,n);if(36===t.charCodeAt(0))return"$"+jh(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+dh(l,t.length);if(t.match(/^[#?]+$/))return"0"===(o=dh(n,0))&&(o=""),o.length>t.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(Ih))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),i=Math.floor(o/r),s=o-i*r,a=r;return n+(0===i?"":""+i)+" "+(0===s?bf(" ",e[1].length+1+e[4].length):uh(s,e[1].length)+e[2]+"/"+e[3]+lh(a,e[4].length))}(i,l,u);if(t.match(/^#+0+$/))return u+dh(l,t.length-t.indexOf("0"));if(i=t.match(kh))return o=Mh(n,i[1].length).replace(/^([^\.]+)$/,"$1."+Nh(i[1])).replace(/\.$/,"."+Nh(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+bf("0",Nh(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+Mh(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+_h(dh(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+jh(e,t,-n):_h(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,i[1].length)))+"."+lh(Lh(n,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return jh(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=ah(jh(e,t.replace(/[\\-]/g,""),n)),s=0,ah(ah(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(Dh))return"("+(o=jh(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=bh(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=qh("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=ch(a[2],s)).length<i[4].length&&(c=Nh(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=bh(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?uh(a[1],s)+i[2]+"/"+i[3]+ch(a[2],s):bf(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=dh(n,0),t.length<=o.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return Nh(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=Lh(n,i[1].length),n<0?"-"+jh(e,t,-n):_h(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?lh(0,3-e.length):"")+e}))+"."+lh(s,i[1].length);switch(t){case"###,##0.00":return jh(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=_h(dh(l,0));return"0"!==h?u+h:"";case"###,###.00":return jh(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return jh(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Fh(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Fh(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function Bh(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Ah)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Bh("n",r,n):"("+Bh("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return qh(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Vh,""),o=t.length-r.length;return qh(e,r,n*Math.pow(10,2*o))+bf("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return Fh(t,n);if(36===t.charCodeAt(0))return"$"+Bh(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+lh(l,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(Ih))return function(e,t,n){return n+(0===t?"":""+t)+bf(" ",e[1].length+2+e[4].length)}(i,l,u);if(t.match(/^#+0+$/))return u+lh(l,t.length-t.indexOf("0"));if(i=t.match(kh))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+Nh(i[1])).replace(/\.$/,"."+Nh(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+bf("0",Nh(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+_h(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Bh(e,t,-n):_h(""+n)+"."+bf("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Bh(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=ah(Bh(e,t.replace(/[\\-]/g,""),n)),s=0,ah(ah(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(Dh))return"("+(o=Bh(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=bh(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=qh("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=ch(a[2],s)).length<i[4].length&&(c=Nh(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=bh(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?uh(a[1],s)+i[2]+"/"+i[3]+ch(a[2],s):bf(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return Nh(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+Bh(e,t,-n):_h(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?lh(0,3-e.length):"")+e}))+"."+lh(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=_h(""+l);return"0"!==h?u+h:"";default:if(t.match(/\.[0#?]*$/))return Bh(e,t.slice(0,t.lastIndexOf(".")),n)+Nh(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function qh(e,t,n){return(0|n)===n?Bh(e,t,n):jh(e,t,n)}var Hh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function zh(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":hh(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(Hh))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var Qh=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Uh(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function Wh(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:gh)[e])&&(r=n.table&&n.table[yh[e]]||gh[yh[e]]),null==r&&(r=vh[e]||"General")}if(hh(r,0))return Oh(t,n);t instanceof Date&&(t=Ph(t,n.date1904));var o=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(Qh),a=n[1].match(Qh);return Uh(t,s)?[r,n[0]]:Uh(t,a)?[r,n[1]]:[r,n[null!=s&&null!=a?2:1]]}return[r,i]}(r,t);if(hh(o[1]))return Oh(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var o,i,s,a=[],l="",u=0,c="",p="t",d="H";u<e.length;)switch(c=e.charAt(u)){case"G":if(!hh(e,u))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(s);a[a.length]={t:"t",v:l},++u;break;case"\\":var h=e.charAt(++u),f="("===h||")"===h?h:"t";a[a.length]={t:f,v:h},++u;break;case"_":a[a.length]={t:"t",v:" "},u+=2;break;case"@":a[a.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==o&&null==(o=Ch(t,n,"2"===e.charAt(u+1))))return"";a[a.length]={t:"X",v:e.substr(u,2)},p=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=Ch(t,n)))return"";for(l=c;++u<e.length&&e.charAt(u).toLowerCase()===c;)l+=c;"m"===c&&"h"===p.toLowerCase()&&(c="M"),"h"===c&&(c=d),a[a.length]={t:c,v:l},p=c;break;case"A":case"a":case"上":var m={t:c,v:c};if(null==o&&(o=Ch(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=o&&(m.v=o.H>=12?"P":"A"),m.t="T",d="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"PM":"AM"),m.t="T",u+=5,d="h"):"上午/下午"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"下午":"上午"),m.t="T",u+=5,d="h"):(m.t="t",++u),null==o&&"T"===m.t)return"";a[a.length]=m,p=c;break;case"[":for(l=c;"]"!==e.charAt(u++)&&u<e.length;)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Hh)){if(null==o&&null==(o=Ch(t,n)))return"";a[a.length]={t:"Z",v:l.toLowerCase()},p=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",zh(e)||(a[a.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=c;++u<e.length&&"0"===(c=e.charAt(u));)l+=c;a[a.length]={t:"s",v:l};break}case"0":case"#":for(l=c;++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1;)l+=c;a[a.length]={t:"n",v:l};break;case"?":for(l=c;e.charAt(++u)===c;)l+=c;a[a.length]={t:c,v:l},p=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":a[a.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1;)l+=e.charAt(u);a[a.length]={t:"D",v:l};break;case" ":a[a.length]={t:c,v:c},++u;break;case"$":a[a.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++u}var g,y=0,v=0;for(u=a.length-1,p="t";u>=0;--u)switch(a[u].t){case"h":case"H":a[u].t=d,p="h",y<1&&(y=1);break;case"s":(g=a[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":p=a[u].t;break;case"m":"s"===p&&(a[u].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&a[u].v.match(/[Hh]/)&&(y=1),y<2&&a[u].v.match(/[Mm]/)&&(y=2),y<3&&a[u].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var b,C="";for(u=0;u<a.length;++u)switch(a[u].t){case"t":case"T":case" ":case"D":break;case"X":a[u].v="",a[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[u].v=Th(a[u].t.charCodeAt(0),a[u].v,o,v),a[u].t="t";break;case"n":case"?":for(b=u+1;null!=a[b]&&("?"===(c=a[b].t)||"D"===c||(" "===c||"t"===c)&&null!=a[b+1]&&("?"===a[b+1].t||"t"===a[b+1].t&&"/"===a[b+1].v)||"("===a[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===a[b].v||" "===a[b].v&&null!=a[b+1]&&"?"==a[b+1].t));)a[u].v+=a[b].v,a[b]={v:"",t:";"},++b;C+=a[u].v,u=b-1;break;case"G":a[u].t="t",a[u].v=Oh(t,n)}var w,x,E="";if(C.length>0){40==C.charCodeAt(0)?(w=t<0&&45===C.charCodeAt(0)?-t:t,x=qh("n",C,w)):(x=qh("n",C,w=t<0&&r>1?-t:t),w<0&&a[0]&&"t"==a[0].t&&(x=x.substr(1),a[0].v="-"+a[0].v)),b=x.length-1;var P=a.length;for(u=0;u<a.length;++u)if(null!=a[u]&&"t"!=a[u].t&&a[u].v.indexOf(".")>-1){P=u;break}var S=a.length;if(P===a.length&&-1===x.indexOf("E")){for(u=a.length-1;u>=0;--u)null!=a[u]&&-1!=="n?".indexOf(a[u].t)&&(b>=a[u].v.length-1?(b-=a[u].v.length,a[u].v=x.substr(b+1,a[u].v.length)):b<0?a[u].v="":(a[u].v=x.substr(0,b+1),b=-1),a[u].t="t",S=u);b>=0&&S<a.length&&(a[S].v=x.substr(0,b+1)+a[S].v)}else if(P!==a.length&&-1===x.indexOf("E")){for(b=x.indexOf(".")-1,u=P;u>=0;--u)if(null!=a[u]&&-1!=="n?".indexOf(a[u].t)){for(i=a[u].v.indexOf(".")>-1&&u===P?a[u].v.indexOf(".")-1:a[u].v.length-1,E=a[u].v.substr(i+1);i>=0;--i)b>=0&&("0"===a[u].v.charAt(i)||"#"===a[u].v.charAt(i))&&(E=x.charAt(b--)+E);a[u].v=E,a[u].t="t",S=u}for(b>=0&&S<a.length&&(a[S].v=x.substr(0,b+1)+a[S].v),b=x.indexOf(".")+1,u=P;u<a.length;++u)if(null!=a[u]&&(-1!=="n?(".indexOf(a[u].t)||u===P)){for(i=a[u].v.indexOf(".")>-1&&u===P?a[u].v.indexOf(".")+1:0,E=a[u].v.substr(0,i);i<a[u].v.length;++i)b<x.length&&(E+=x.charAt(b++));a[u].v=E,a[u].t="t",S=u}}}for(u=0;u<a.length;++u)null!=a[u]&&"n?".indexOf(a[u].t)>-1&&(w=r>1&&t<0&&u>0&&"-"===a[u-1].v?-t:t,a[u].v=qh(a[u].t,a[u].v,w),a[u].t="t");var O="";for(u=0;u!==a.length;++u)null!=a[u]&&(O+=a[u].v);return O}(o[1],t,n,o[0])}function $h(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=gh[n]){if(gh[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return gh[t]=e,t}function Gh(e){for(var t=0;392!=t;++t)void 0!==e[t]&&$h(e[t],t)}function Jh(){gh=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}()}var Yh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Kh=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)o[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?o.subarray(256*r,256*r+256):o.slice(256*r,256*r+256);return i}(t),r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=n[7],p=n[8],d=n[9],h=n[10],f=n[11],m=n[12],g=n[13],y=n[14];return e.table=t,e.bstr=function(e,n){for(var r=~n,o=0,i=e.length;o<i;)r=r>>>8^t[255&(r^e.charCodeAt(o++))];return~r},e.buf=function(e,n){for(var v=~n,b=e.length-15,C=0;C<b;)v=y[e[C++]^255&v]^g[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^f[e[C++]^v>>>24]^h[e[C++]]^d[e[C++]]^p[e[C++]]^c[e[C++]]^u[e[C++]]^l[e[C++]]^a[e[C++]]^s[e[C++]]^i[e[C++]]^o[e[C++]]^r[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,n){for(var r=~n,o=0,i=e.length,s=0,a=0;o<i;)(s=e.charCodeAt(o++))<128?r=r>>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&e.charCodeAt(o++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|a>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&a))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),Xh=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function i(e){Om(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),i=e.l+o,s={};21589===r&&(1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),o>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime))),e.l=i,t[r]=s}return t}function s(){return e||(e={})}function a(e,t){if(80==e[0]&&75==e[1])return ne(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=x(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(Kd&&Buffer.isBuffer(e)?e.toString("binary"):x(e)).split("\r\n"),o=0,i="";for(o=0;o<r.length;++o)if(i=r[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var a="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};d(l);var u,c=0;for(o=0;o<r.length;++o){var p=r[o];p!==a&&p!==a+"--"||(c++&&le(l,r.slice(u,o),n),u=o)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,i,s,a,h=512,f=[],m=e.slice(0,512);Om(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(v,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=g[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==g[1])return ne(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&Om(m=e.slice(0,h),28);var b=e.slice(0,h);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var C=m.read_shift(4,"i");if(3===n&&0!==C)throw new Error("# Directory Sectors: Expected 0 saw "+C);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),r=m.read_shift(4,"i"),a=m.read_shift(4,"i"),o=m.read_shift(4,"i");for(var w=-1,E=0;E<109&&!((w=m.read_shift(4,"i"))<0);++E)f[E]=w;var P=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],o=1;o<n;++o)r[o-1]=e.slice(o*t,(o+1)*t);return r[n-1]=e.slice(n*t),r}(e,h);u(a,o,P,h,f);var S=function(e,t,n,r){var o=e.length,i=[],s=[],a=[],l=[],u=r-1,c=0,p=0,d=0,h=0;for(c=0;c<o;++c)if(a=[],(d=c+t)>=o&&(d-=o),!s[d]){l=[];var f=[];for(p=d;p>=0;){f[p]=!0,s[p]=!0,a[a.length]=p,l.push(e[p]);var m=n[Math.floor(4*p/r)];if(r<4+(h=4*p&u))throw new Error("FAT boundary crossed: "+p+" 4 "+r);if(!e[m])break;if(f[p=vm(e[m],h)])break}i[d]={nodes:a,data:Gf([l])}}return i}(P,i,f,h);S[i].name="!Directory",r>0&&s!==y&&(S[s].name="!MiniFAT"),S[f[0]].name="!FAT",S.fat_addrs=f,S.ssz=h;var O=[],T=[],_=[];!function(e,t,n,r,o,i,s,a){for(var u,d=0,h=r.length?2:0,f=t[e].data,m=0,g=0;m<f.length;m+=128){var v=f.slice(m,m+128);Om(v,64),g=v.read_shift(2),u=Yf(v,0,g-h),r.push(u);var b={name:u,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.ct=p(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.mt=p(v,v.l-8)),b.start=v.read_shift(4,"i"),b.size=v.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=y,b.name=""),5===b.type?(d=b.start,o>0&&d!==y&&(t[d].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=c(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:d!==y&&b.start!==y&&t[d]&&(b.content=l(b,t[d].data,(t[a]||{}).data))),b.content&&Om(b.content,0),i[u]=b,s.push(b)}}(i,S,P,O,r,{},T,s),function(e,t,n){for(var r=0,o=0,i=0,s=0,a=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;a<c.length;++a)o=e[r=c[a]].L,i=e[r].R,s=e[r].C,u[r]===r&&(-1!==o&&u[o]!==o&&(u[r]=u[o]),-1!==i&&u[i]!==i&&(u[r]=u[i])),-1!==s&&(u[s]=r),-1!==o&&r!=u[r]&&(u[o]=u[r],c.lastIndexOf(o)<a&&c.push(o)),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<a&&c.push(i));for(r=1;r<l;++r)u[r]===r&&(-1!==i&&u[i]!==i?u[r]=u[i]:-1!==o&&u[o]!==o&&(u[r]=u[o]));for(r=1;r<l;++r)if(0!==e[r].type){if((a=r)!=u[a])do{a=u[a],t[r]=t[a]+"/"+t[r]}while(0!==a&&-1!==u[a]&&a!=u[a]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(T,_,O),O.shift();var V={FileIndex:T,FullPaths:_};return t&&t.raw&&(V.raw={header:b,sectors:P}),V}function l(e,t,n){for(var r=e.start,o=e.size,i=[],s=r;n&&o>0&&s>=0;)i.push(t.slice(s*g,s*g+g)),o-=g,s=vm(n,4*s);return 0===i.length?_m(0):oh(i).slice(0,e.size)}function u(e,t,n,r,o){var i=y;if(e===y){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],a=(r>>>2)-1;if(!s)return;for(var l=0;l<a&&(i=vm(s,4*l))!==y;++l)o.push(i);u(vm(s,r-4),t-1,n,r,o)}}function c(e,t,n,r,o){var i=[],s=[];o||(o=[]);var a=r-1,l=0,u=0;for(l=t;l>=0;){o[l]=!0,i[i.length]=l,s.push(e[l]);var c=n[Math.floor(4*l/r)];if(r<4+(u=4*l&a))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=vm(e[c],u)}return{nodes:i,data:Gf([s])}}function p(e,t){return new Date(1e3*(ym(e,t+4)/1e7*Math.pow(2,32)+ym(e,t)/1e7-11644473600))}function d(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!Xh.find(e,"/"+t)){var n=_m(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),h(e)}}(e)}function h(e,t){d(e);for(var o=!1,i=!1,s=e.FullPaths.length-1;s>=0;--s){var a=e.FileIndex[s];switch(a.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(a.R*a.L*a.C)&&(o=!0),a.R>-1&&a.L>-1&&a.R==a.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),u=0,c=Object.create?Object.create(null):{},p=[];for(s=0;s<e.FullPaths.length;++s)c[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&p.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<p.length;++s){var h=n(p[s][0]);(i=c[h])||(p.push([h,{name:r(h).replace("/",""),type:1,clsid:C,ct:l,mt:l,content:null}]),c[h]=!0)}for(p.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),o=0,i=0,s=Math.min(n.length,r.length);o<s;++o){if(i=n[o].length-r[o].length)return i;if(n[o]!=r[o])return n[o]<r[o]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<p.length;++s)e.FullPaths[s]=p[s][0],e.FileIndex[s]=p[s][1];for(s=0;s<p.length;++s){var f=e.FileIndex[s],m=e.FullPaths[s];if(f.name=r(m).replace("/",""),f.L=f.R=f.C=-(f.color=1),f.size=f.content?f.content.length:0,f.start=0,f.clsid=f.clsid||C,0===s)f.C=p.length>1?1:-1,f.size=0,f.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<p.length&&n(e.FullPaths[u])!=m;++u);for(f.C=u>=p.length?-1:u,u=s+1;u<p.length&&n(e.FullPaths[u])!=n(m);++u);f.R=u>=p.length?-1:u,f.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(f.R=s+1),f.type=2}}}function f(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],i=e.FullPaths[0],s=i,a=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(i.length),(a=e.FileIndex[l]).size&&a.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var u=a.content,c=Kd&&Buffer.isBuffer(u)?u.toString("binary"):x(u),p=0,d=Math.min(1024,c.length),h=0,f=0;f<=d;++f)(h=c.charCodeAt(f))>=32&&h<128&&++p;var m=p>=4*d/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),o.push("Content-Type: "+ie(a,s)),o.push(""),o.push(m?ae(c):se(c))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(h(e),"zip"===n.fileType)return function(e,t){var n,r=t||{},i=[],s=[],a=_m(1),l=r.compression?8:0,u=0,c=0,p=0,d=0,h=e.FullPaths[0],f=h,g=e.FileIndex[0],y=[],v=0;for(u=1;u<e.FullPaths.length;++u)if(f=e.FullPaths[u].slice(h.length),(g=e.FileIndex[u]).size&&g.content&&"Sh33tJ5"!=f){var b=p,C=_m(f.length);for(c=0;c<f.length;++c)C.write_shift(1,127&f.charCodeAt(c));C=C.slice(0,C.l),y[d]=Kh.buf(g.content,0);var w=g.content;8==l&&(n=w,w=m?m.deflateRawSync(n):$(n)),(a=_m(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),g.mt?o(a,g.mt):a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),p+=a.length,i.push(a),p+=C.length,i.push(C),p+=w.length,i.push(w),(a=_m(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,b),v+=a.l,s.push(a),v+=C.length,s.push(C),++d}return(a=_m(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,d),a.write_shift(2,d),a.write_shift(4,v),a.write_shift(4,p),a.write_shift(2,0),oh([oh(i),oh(s),a])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var o=e.FileIndex[r];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:n+=i+511>>9)}}for(var s=e.FullPaths.length+3>>2,a=t+127>>7,l=(t+7>>3)+n+s+a,u=l+127>>7,c=u<=109?0:Math.ceil((u-109)/127);l+u+c+127>>7>u;)c=++u<=109?0:Math.ceil((u-109)/127);var p=[1,c,u,a,s,n,t,0];return e.FileIndex[0].size=t<<6,p[7]=(e.FileIndex[0].start=p[0]+p[1]+p[2]+p[3]+p[4]+p[5])+(p[6]+7>>3),p}(e),i=_m(r[7]<<9),s=0,a=0;for(s=0;s<8;++s)i.write_shift(1,b[s]);for(s=0;s<8;++s)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),s=0;s<3;++s)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:y),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:y),i.write_shift(4,r[1]),s=0;s<109;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);if(r[1])for(a=0;a<r[1];++a){for(;s<236+127*a;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);i.write_shift(-4,a===r[1]-1?y:a+1)}var l=function(e){for(a+=e;s<a-1;++s)i.write_shift(-4,s+1);e&&(++s,i.write_shift(-4,y))};for(a=s=0,a+=r[1];s<a;++s)i.write_shift(-4,w.DIFSECT);for(a+=r[2];s<a;++s)i.write_shift(-4,w.FATSECT);l(r[3]),l(r[4]);for(var u=0,c=0,p=e.FileIndex[0];u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&((c=p.content.length)<4096||(p.start=a,l(c+511>>9)));for(l(r[6]+7>>3);511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(a=s=0,u=0;u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&(!(c=p.content.length)||c>=4096||(p.start=a,l(c+63>>6)));for(;511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(s=0;s<r[4]<<2;++s){var d=e.FullPaths[s];if(d&&0!==d.length){p=e.FileIndex[s],0===s&&(p.start=p.size?p.start-1:y);var f=0===s&&n.root||p.name;if(c=2*(f.length+1),i.write_shift(64,f,"utf16le"),i.write_shift(2,c),i.write_shift(1,p.type),i.write_shift(1,p.color),i.write_shift(-4,p.L),i.write_shift(-4,p.R),i.write_shift(-4,p.C),p.clsid)i.write_shift(16,p.clsid,"hex");else for(u=0;u<4;++u)i.write_shift(4,0);i.write_shift(4,p.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,p.start),i.write_shift(4,p.size),i.write_shift(4,0)}else{for(u=0;u<17;++u)i.write_shift(4,0);for(u=0;u<3;++u)i.write_shift(4,-1);for(u=0;u<12;++u)i.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>=4096)if(i.l=p.start+1<<9,Kd&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+511&-512;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;511&u;++u)i.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>0&&p.size<4096)if(Kd&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+63&-64;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;63&u;++u)i.write_shift(1,0)}if(Kd)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var m,g=64,y=-2,v="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],C="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:y,FREESECT:-1,HEADER_SIGNATURE:v,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:C,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function O(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var T="undefined"!=typeof Uint8Array,_=T?new Uint8Array(256):[],V=0;V<256;++V)_[V]=O(V);function R(e,t){var n=_[255&e];return t<=8?n>>>8-t:(n=n<<8|_[e>>8&255],t<=16?n>>>16-t:(n=n<<8|_[e>>16&255])>>>24-t)}function I(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function k(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function A(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function D(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function N(e,t,n){var r=7&t,o=t>>>3,i=(1<<n)-1,s=e[o]>>>r;return n<8-r?s&i:(s|=e[o+1]<<8-r,n<16-r?s&i:(s|=e[o+2]<<16-r,n<24-r?s&i:(s|=e[o+3]<<24-r)&i))}function M(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function L(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function j(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function F(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function B(e,t){var n=e.length,r=2*n>t?2*n:t+5,o=0;if(n>=t)return e;if(Kd){var i=eh(r);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(T){var s=new Uint8Array(r);if(s.set)s.set(e);else for(;o<n;++o)s[o]=e[o];return s}return e.length=r,e}function q(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function H(e,t,n){var r=1,o=0,i=0,s=0,a=0,l=e.length,u=T?new Uint16Array(32):q(32);for(i=0;i<32;++i)u[i]=0;for(i=l;i<n;++i)e[i]=0;l=e.length;var c=T?new Uint16Array(l):q(l);for(i=0;i<l;++i)u[o=e[i]]++,r<o&&(r=o),c[i]=0;for(u[0]=0,i=1;i<=r;++i)u[i+16]=a=a+u[i-1]<<1;for(i=0;i<l;++i)0!=(a=e[i])&&(c[i]=u[a+16]++);var p=0;for(i=0;i<l;++i)if(0!=(p=e[i]))for(a=R(c[i],r)>>r-p,s=(1<<r+4-p)-1;s>=0;--s)t[a|s<<p]=15&p|i<<4;return r}var z=T?new Uint16Array(512):q(512),Q=T?new Uint16Array(32):q(32);if(!T){for(var U=0;U<512;++U)z[U]=0;for(U=0;U<32;++U)Q[U]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);H(e,Q,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);H(n,z,288)}();var W=function(){for(var e=T?new Uint8Array(32768):[],t=0,n=0;t<S.length-1;++t)for(;n<S[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=T?new Uint8Array(259):[];for(t=0,n=0;t<P.length-1;++t)for(;n<P[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),o=n+r==e.length;for(t.write_shift(1,+o),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var o=0,i=0,s=T?new Uint16Array(32768):[];i<t.length;){var a=Math.min(65535,t.length-i);if(a<10){for(7&(o=M(n,o,+!(i+a!=t.length)))&&(o+=8-(7&o)),n.l=o/8|0,n.write_shift(2,a),n.write_shift(2,65535&~a);a-- >0;)n[n.l++]=t[i++];o=8*n.l}else{o=M(n,o,+!(i+a!=t.length)+2);for(var l=0;a-- >0;){var u=t[i],c=-1,p=0;if((c=s[l=32767&(l<<5^u)])&&((c|=-32768&i)>i&&(c-=32768),c<i))for(;t[c+p]==t[i+p]&&p<250;)++p;if(p>2){(u=r[p])<=22?o=j(n,o,_[u+1]>>1)-1:(j(n,o,3),j(n,o+=5,_[u-23]>>5),o+=3);var d=u<8?0:u-4>>2;d>0&&(F(n,o,p-P[u]),o+=d),u=e[i-c],o=j(n,o,_[u]>>3),o-=3;var h=u<4?0:u-2>>1;h>0&&(F(n,o,i-c-S[u]),o+=h);for(var f=0;f<p;++f)s[l]=32767&i,l=32767&(l<<5^t[i]),++i;a-=p-1}else u<=143?u+=48:o=L(n,o,1),o=j(n,o,_[u]),s[l]=32767&i,++i}o=j(n,o,0)-1}}return n.l=(o+7)/8|0,n.l}(t,n)}}();function $(e){var t=_m(50+Math.floor(1.1*e.length)),n=W(e,t);return t.slice(0,n)}var G=T?new Uint16Array(32768):q(32768),J=T?new Uint16Array(32768):q(32768),Y=T?new Uint16Array(128):q(128),K=1,X=1;function Z(e,t){var n=A(e,t)+257,r=A(e,t+=5)+1,o=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var i=0,s=T?new Uint8Array(19):q(19),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=T?new Uint8Array(8):q(8),c=T?new Uint8Array(8):q(8),p=s.length,d=0;d<o;++d)s[E[d]]=i=k(e,t),l<i&&(l=i),u[i]++,t+=3;var h=0;for(u[0]=0,d=1;d<=l;++d)c[d]=h=h+u[d-1]<<1;for(d=0;d<p;++d)0!=(h=s[d])&&(a[d]=c[h]++);var f=0;for(d=0;d<p;++d)if(0!=(f=s[d])){h=_[a[d]]>>8-f;for(var m=(1<<7-f)-1;m>=0;--m)Y[h|m<<f]=7&f|d<<3}var g=[];for(l=1;g.length<n+r;)switch(t+=7&(h=Y[D(e,t)]),h>>>=3){case 16:for(i=3+I(e,t),t+=2,h=g[g.length-1];i-- >0;)g.push(h);break;case 17:for(i=3+k(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+D(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(h),l<h&&(l=h)}var y=g.slice(0,n),v=g.slice(n);for(d=n;d<286;++d)y[d]=0;for(d=r;d<30;++d)v[d]=0;return K=H(y,G,286),X=H(v,J,30),t}function ee(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[Zd(t),2];for(var n=0,r=0,o=eh(t||1<<18),i=0,s=o.length>>>0,a=0,l=0;!(1&r);)if(r=k(e,n),n+=3,r>>>1!=0)for(r>>1==1?(a=9,l=5):(n=Z(e,n),a=K,l=X);;){!t&&s<i+32767&&(s=(o=B(o,i+32767)).length);var u=N(e,n,a),c=r>>>1==1?z[u]:G[u];if(n+=15&c,(c>>>=4)>>>8&255){if(256==c)break;var p=(c-=257)<8?0:c-4>>2;p>5&&(p=0);var d=i+P[c];p>0&&(d+=N(e,n,p),n+=p),u=N(e,n,l),n+=15&(c=r>>>1==1?Q[u]:J[u]);var h=(c>>>=4)<4?0:c-2>>1,f=S[c];for(h>0&&(f+=N(e,n,h),n+=h),!t&&s<d&&(s=(o=B(o,d+100)).length);i<d;)o[i]=o[i-f],++i}else o[i++]=c}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0)for(!t&&s<i+m&&(s=(o=B(o,i+m)).length);m-- >0;)o[i++]=e[n>>>3],n+=8}return t?[o,n+7>>>3]:[o.slice(0,i),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function te(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function ne(e,t){var n=e;Om(n,0);var r={FileIndex:[],FullPaths:[]};d(r,{root:t.root});for(var o=n.length-4;(80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0;)--o;n.l=o+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var a=n.read_shift(4);for(n.l=a,o=0;o<s;++o){n.l+=20;var l=n.read_shift(4),u=n.read_shift(4),c=n.read_shift(2),p=n.read_shift(2),h=n.read_shift(2);n.l+=8;var f=n.read_shift(4),m=i(n.slice(n.l+c,n.l+c+p));n.l+=c+p+h;var g=n.l;n.l=f+4,re(n,l,u,r,m),n.l=g}return r}function re(e,t,n,r,o){e.l+=2;var s=e.read_shift(2),a=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,i=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(i-1),r.setDate(o);var s=31&t,a=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(a),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var u=e.read_shift(4),c=e.read_shift(4),p=e.read_shift(2),d=e.read_shift(2),h="",f=0;f<p;++f)h+=String.fromCharCode(e[e.l++]);if(d){var g=i(e.slice(e.l,e.l+d));(g[21589]||{}).mt&&(l=g[21589].mt),((o||{})[21589]||{}).mt&&(l=o[21589].mt)}e.l+=d;var y=e.slice(e.l,e.l+u);switch(a){case 8:y=function(e,t){if(!m)return ee(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+a)}var v=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),v=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&te(v,"Bad compressed size: "+t+" != "+u),c!=n&&te(v,"Bad uncompressed size: "+n+" != "+c),ue(r,h,y,{unsafe:!0,mt:l})}var oe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ie(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&oe[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&oe[r[1]]?oe[r[1]]:"application/octet-stream"}function se(e){for(var t=Jd(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ae(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<r.length;++o){var i=r[o];if(0!=i.length)for(var s=0;s<i.length;){var a=76,l=i.slice(s,s+a);"="==l.charAt(a-1)?a--:"="==l.charAt(a-2)?a-=2:"="==l.charAt(a-3)&&(a-=3),l=i.slice(s,s+a),(s+=a)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function le(e,t,n){for(var r,o="",i="",s="",a=0;a<10;++a){var l=t[a];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":o=u[2].trim();break;case"content-type":s=u[2].trim();break;case"content-transfer-encoding":i=u[2].trim()}}switch(++a,i.toLowerCase()){case"base64":r=th(Yd(t.slice(a).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return th(t.join("\r\n"))}(t.slice(a));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var c=ue(e,o.slice(n.length),r,{unsafe:!0});s&&(c.ctype=s)}function ue(e,t,n,o){var i=o&&o.unsafe;i||d(e);var s=!i&&Xh.find(e,t);if(!s){var a=e.FullPaths[0];t.slice(0,a.length)==a?a=t:("/"!=a.slice(-1)&&(a+="/"),a=(a+t).replace("//","/")),s={name:r(t),type:2},e.FileIndex.push(s),e.FullPaths.push(a),i||Xh.utils.cfb_gc(e)}return s.content=n,s.size=n?n.length:0,o&&(o.CLSID&&(s.clsid=o.CLSID),o.mt&&(s.mt=o.mt),o.ct&&(s.ct=o.ct)),s}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),o=!1;47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),s=!0===o?n.indexOf(i):r.indexOf(i);if(-1!==s)return e.FileIndex[s];var a=!i.match(sh);for(i=i.replace(ih,""),a&&(i=i.replace(sh,"!")),s=0;s<n.length;++s){if((a?n[s].replace(sh,"!"):n[s]).replace(ih,"")==i)return e.FileIndex[s];if((a?r[s].replace(sh,"!"):r[s]).replace(ih,"")==i)return e.FileIndex[s]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||Kd&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return s(),a(e.readFileSync(t),n)}(t,n);case"base64":return a(th(Yd(t)),n);case"binary":return a(th(t),n)}return a(t,n)},t.parse=a,t.write=function(t,n){var r=f(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:x(r);case"base64":return Jd("string"==typeof r?r:x(r));case"buffer":if(Kd)return Buffer.isBuffer(r)?r:Xd(r);case"array":return"string"==typeof r?th(r):r}return r},t.writeFile=function(t,n,r){s();var o=f(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:ue,cfb_del:function(e,t){d(e);var n=Xh.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){d(e);var o=Xh.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=r(n),e.FullPaths[i]=n,!0;return!1},cfb_gc:function(e){h(e,!0)},ReadShift:Cm,CheckField:Sm,prep_blob:Om,bconcat:oh,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:$,_inflateRaw:ee,consts:w},t}();let Zh;function ef(e){return"string"==typeof e?nh(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function tf(e,t,n){if(void 0!==Zh&&Zh.writeFileSync)return n?Zh.writeFileSync(e,t,n):Zh.writeFileSync(e,t);if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=nh(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?Lf(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var o=new Blob([ef(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if("undefined"!=typeof saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var a=File(e);return a.open("w"),a.encoding="binary",Array.isArray(t)&&(t=rh(t)),a.write(t),a.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function nf(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function rf(e,t){for(var n=[],r=nf(e),o=0;o!==r.length;++o)null==n[e[r[o]][t]]&&(n[e[r[o]][t]]=r[o]);return n}function of(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function sf(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var af=new Date(1899,11,30,0,0,0);function lf(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(af.getTime()+6e4*(e.getTimezoneOffset()-af.getTimezoneOffset())))/864e5}var uf=new Date,cf=af.getTime()+6e4*(uf.getTimezoneOffset()-af.getTimezoneOffset()),pf=uf.getTimezoneOffset();function df(e){var t=new Date;return t.setTime(24*e*60*60*1e3+cf),t.getTimezoneOffset()!==pf&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-pf)),t}var hf=new Date("2017-02-19T19:06:09.000Z"),ff=isNaN(hf.getFullYear())?new Date("2/19/17"):hf,mf=2017==ff.getFullYear();function gf(e,t){var n=new Date(e);if(mf)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==ff.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function yf(e,t){if(Kd&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Lf(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Lf(function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Lf(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Lf(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"","‚":"",ƒ:"","„":"","…":" ","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],o=0;o!=e.length;++o)r.push(String.fromCharCode(e[o]));return r.join("")}function vf(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=vf(e[n]));return t}function bf(e,t){for(var n="";n.length<t;)n+=e;return n}function Cf(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var wf=["january","february","march","april","may","june","july","august","september","october","november","december"];function xf(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),o=t.getMonth(),i=t.getDate();if(isNaN(i))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==wf.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(o>0||i>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}function Ef(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=Kd?Xd(n):function(e){for(var t=[],n=0,r=e.length+250,o=Zd(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)o[n++]=s;else if(s<2048)o[n++]=192|s>>6&31,o[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&e.charCodeAt(++i);o[n++]=240|s>>8&7,o[n++]=128|s>>2&63,o[n++]=128|a>>6&15|(3&s)<<4,o[n++]=128|63&a}else o[n++]=224|s>>12&15,o[n++]=128|s>>6&63,o[n++]=128|63&s;n>r&&(t.push(o.slice(0,n)),n=0,o=Zd(65535),r=65530)}return t.push(o.slice(0,n)),oh(t)}(n),Xh.utils.cfb_add(e,t,r);Xh.utils.cfb_add(e,t,n)}else e.file(t,n)}function Pf(){return Xh.utils.cfb_new()}var Sf='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Of=of({""":'"',"'":"'",">":">","<":"<","&":"&"}),Tf=/[&<>'"]/g,_f=/[\u0000-\u0008\u000b-\u001f]/g;function Vf(e){return(e+"").replace(Tf,(function(e){return Of[e]})).replace(_f,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Rf(e){return Vf(e).replace(/ /g,"_x0020_")}var If=/[\u0000-\u001f]/g;function kf(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(o=e.charCodeAt(n++),r>191&&r<224?(s=(31&r)<<6,s|=63&o,t+=String.fromCharCode(s)):(i=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i):(a=((7&r)<<18|(63&o)<<12|(63&i)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(a>>>10&1023)),t+=String.fromCharCode(56320+(1023&a)))));return t}function Af(e){var t,n,r,o=Zd(2*e.length),i=1,s=0,a=0;for(n=0;n<e.length;n+=i)i=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),i=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),i=3):(i=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),a=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==a&&(o[s++]=255&a,o[s++]=a>>>8,a=0),o[s++]=t%256,o[s++]=t>>>8;return o.slice(0,s).toString("ucs2")}function Df(e){return Xd(e,"binary").toString("utf8")}var Nf="foo bar bazâð£",Mf=Kd&&(Df(Nf)==kf(Nf)&&Df||Af(Nf)==kf(Nf)&&Af)||kf,Lf=Kd?function(e){return Xd(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},jf=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),Ff=/(^\s|\s$|\n)/;function Bf(e,t){return"<"+e+(t.match(Ff)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function qf(e){return nf(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Hf(e,t,n){return"<"+e+(null!=n?qf(n):"")+(null!=t?(t.match(Ff)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function zf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}var Qf={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Uf=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Wf={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},$f=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,o=e[0][n].length;r<o;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},Gf=Kd?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:Xd(e)}))):$f(e)}:$f,Jf=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(mm(e,o)));return r.join("").replace(ih,"")},Yf=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(ih,""):Jf(e,t,n)}:Jf,Kf=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},Xf=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):Kf(e,t,n)}:Kf,Zf=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(fm(e,o)));return r.join("")},em=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):Zf(e,t,n)}:Zf,tm=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},nm=tm,rm=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},om=rm,im=function(e,t){var n=2*ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},sm=im,am=function(e,t){var n=ym(e,t);return n>0?Yf(e,t+4,t+4+n):""},lm=am,um=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n):""},cm=um,pm=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==r?0==o?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}(e,t)},dm=pm,hm=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};Kd&&(nm=function(e,t){if(!Buffer.isBuffer(e))return tm(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},om=function(e,t){if(!Buffer.isBuffer(e))return rm(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},sm=function(e,t){if(!Buffer.isBuffer(e))return im(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},lm=function(e,t){if(!Buffer.isBuffer(e))return am(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},cm=function(e,t){if(!Buffer.isBuffer(e))return um(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},dm=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):pm(e,t)},hm=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==Qd&&(Yf=function(e,t,n){return Qd.utils.decode(1200,e.slice(t,n)).replace(ih,"")},em=function(e,t,n){return Qd.utils.decode(65001,e.slice(t,n))},nm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(Fd,e.slice(t+4,t+4+n-1)):""},om=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(jd,e.slice(t+4,t+4+n-1)):""},sm=function(e,t){var n=2*ym(e,t);return n>0?Qd.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},lm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(1200,e.slice(t+4,t+4+n)):""},cm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(65001,e.slice(t+4,t+4+n)):""});var fm=function(e,t){return e[t]},mm=function(e,t){return 256*e[t+1]+e[t]},gm=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},ym=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},vm=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},bm=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Cm(e,t){var n,r,o,i,s,a,l="",u=[];switch(t){case"dbcs":if(a=this.l,Kd&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(mm(this,a)),a+=2;e*=2;break;case"utf8":l=em(this,this.l,this.l+e);break;case"utf16le":e*=2,l=Yf(this,this.l,this.l+e);break;case"wstr":if(void 0===Qd)return Cm.call(this,e,"dbcs");l=Qd.utils.decode(jd,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":l=nm(this,this.l),e=4+ym(this,this.l);break;case"lpstr-cp":l=om(this,this.l),e=4+ym(this,this.l);break;case"lpwstr":l=sm(this,this.l),e=4+2*ym(this,this.l);break;case"lpp4":e=4+ym(this,this.l),l=lm(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+ym(this,this.l),l=cm(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=fm(this,this.l+e++));)u.push(Ud(o));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(o=mm(this,this.l+e));)u.push(Ud(o)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",a=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=fm(this,a),this.l=a+1,i=Cm.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Ud(mm(this,a))),a+=2}l=u.join(""),e*=2;break;case"cpstr":if(void 0!==Qd){l=Qd.utils.decode(jd,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(l="",a=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=fm(this,a),this.l=a+1,i=Cm.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Ud(fm(this,a))),a+=1}l=u.join("");break;default:switch(e){case 1:return n=fm(this,this.l),this.l++,n;case 2:return n=("i"===t?gm:mm)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(r=ym(this,this.l),this.l+=4,r):(n=(e>0?vm:bm)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return r=8==e?dm(this,this.l):dm([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=Xf(this,this.l,e)}}return this.l+=e,l}var wm=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},xm=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Em=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Pm(e,t,n){var r=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)Em(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if("sbcs"===n){if(void 0!==Qd&&874==Fd)for(o=0;o!=t.length;++o){var i=Qd.utils.encode(Fd,t.charAt(o));this[this.l+o]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);r=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var s=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var a=t.charCodeAt(o);this[this.l++]=255&a,this[this.l++]=a>>8}for(;this.l<s;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,wm(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,s=r?-t:t;isFinite(s)?0==s?o=i=0:(o=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var a=0;a<=5;++a,i/=256)e[n+a]=255&i;e[n+6]=(15&o)<<4|15&i,e[n+7]=o>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,xm(this,t,this.l)}}return this.l+=r,this}function Sm(e,t){var n=Xf(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Om(e,t){e.l=t,e.read_shift=Cm,e.chk=Sm,e.write_shift=Pm}function Tm(e,t){e.l+=t}function _m(e){var t=Zd(e);return Om(t,0),t}function Vm(){var e=[],t=Kd?256:2048,n=function(e){var t=_m(e);return Om(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},i=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:i,push:function(e){o(),null==(r=e).l&&(r.l=r.length),i(t)},end:function(){return o(),oh(e)},_bufs:e}}function Rm(e,t,n,r){var o,i=+t;if(!isNaN(i)){r||(r=mb[i].p||(n||[]).length||0),o=1+(i>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var s=e.next(o);i<=127?s.write_shift(1,i):(s.write_shift(1,128+(127&i)),s.write_shift(1,i>>7));for(var a=0;4!=a;++a){if(!(r>=128)){s.write_shift(1,r);break}s.write_shift(1,128+(127&r)),r>>=7}r>0&&hm(n)&&e.push(n)}}function Im(e,t,n){var r=vf(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function km(e,t,n){var r=vf(e);return r.s=Im(r.s,t.s,n),r.e=Im(r.e,t.s,n),r}function Am(e,t){if(e.cRel&&e.c<0)for(e=vf(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=vf(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=Bm(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),n}function Dm(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Am(e.s,t.biff)+":"+Am(e.e,t.biff):(e.s.rRel?"":"$")+Mm(e.s.r)+":"+(e.e.rRel?"":"$")+Mm(e.e.r):(e.s.cRel?"":"$")+jm(e.s.c)+":"+(e.e.cRel?"":"$")+jm(e.e.c)}function Nm(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Mm(e){return""+(e+1)}function Lm(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function jm(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Fm(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function Bm(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function qm(e){var t=e.indexOf(":");return-1==t?{s:Fm(e),e:Fm(e)}:{s:Fm(e.slice(0,t)),e:Fm(e.slice(t+1))}}function Hm(e,t){return void 0===t||"number"==typeof t?Hm(e.s,e.e):("string"!=typeof e&&(e=Bm(e)),"string"!=typeof t&&(t=Bm(t)),e==t?e:e+":"+t)}function zm(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,i=e.length;for(n=0;r<i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function Qm(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Pg[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Wh(e.z,n?lf(t):t)}catch(e){}try{return e.w=Wh((e.XF||{}).numFmtId||(n?14:0),n?lf(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function Um(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function Wm(e,t,n){var r=n||{},o=e?Array.isArray(e):r.dense;null!=$d&&null==o&&(o=$d);var i=e||(o?[]:{}),s=0,a=0;if(i&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?Fm(r.origin):r.origin;s=l.r,a=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=zm(i["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==s&&(u.e.r=s=c.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[p].length;++d)if(void 0!==t[p][d]){var h={v:t[p][d]},f=s+p,m=a+d;if(u.s.r>f&&(u.s.r=f),u.s.c>m&&(u.s.c=m),u.e.r<f&&(u.e.r=f),u.e.c<m&&(u.e.c=m),!t[p][d]||"object"!=typeof t[p][d]||Array.isArray(t[p][d])||t[p][d]instanceof Date)if(Array.isArray(h.v)&&(h.f=t[p][d][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(r.nullError)h.t="e",h.v=0;else{if(!r.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=r.dateNF||gh[14],r.cellDates?(h.t="d",h.w=Wh(h.z,lf(h.v))):(h.t="n",h.v=lf(h.v),h.w=Wh(h.z,h.v))):h.t="s";else h=t[p][d];if(o)i[f]||(i[f]=[]),i[f][m]&&i[f][m].z&&(h.z=i[f][m].z),i[f][m]=h;else{var g=Bm({c:m,r:f});i[g]&&i[g].z&&(h.z=i[g].z),i[g]=h}}}return u.s.c<1e7&&(i["!ref"]=Hm(u)),i}function $m(e,t){return Wm(null,e,t)}function Gm(e,t){return t||(t=_m(4)),t.write_shift(4,e),t}function Jm(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Ym(e,t){var n=!1;return null==t&&(n=!0,t=_m(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function Km(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Xm(e,t){var n=e.l,r=e.read_shift(1),o=Jm(e),i=[],s={t:o,h:o};if(1&r){for(var a=e.read_shift(4),l=0;l!=a;++l)i.push(Km(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var Zm=Xm;function eg(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function tg(e,t){return null==t&&(t=_m(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function ng(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rg(e,t){return null==t&&(t=_m(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var og=Jm,ig=Ym;function sg(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function ag(e,t){var n=!1;return null==t&&(n=!0,t=_m(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var lg=Jm,ug=sg,cg=ag;function pg(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var o=0===r?dm([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):vm(t,0)>>2;return n?o/100:o}function dg(e,t){null==t&&(t=_m(4));var n=0,r=0,o=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?o:e)<<2)+(n+2))}function hg(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var fg=hg,mg=function(e,t){return t||(t=_m(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function gg(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function yg(e,t){return(t||_m(8)).write_shift(8,e,"f")}function vg(e,t){if(t||(t=_m(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var bg=80,Cg={1:{n:"CodePage",t:2},2:{n:"Category",t:bg},3:{n:"PresentationFormat",t:bg},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:bg},15:{n:"Company",t:bg},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:bg},27:{n:"ContentStatus",t:bg},28:{n:"Language",t:bg},29:{n:"Version",t:bg},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},wg={1:{n:"CodePage",t:2},2:{n:"Title",t:bg},3:{n:"Subject",t:bg},4:{n:"Author",t:bg},5:{n:"Keywords",t:bg},6:{n:"Comments",t:bg},7:{n:"Template",t:bg},8:{n:"LastAuthor",t:bg},9:{n:"RevNumber",t:bg},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:bg},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function xg(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Eg=vf(xg([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Pg={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Sg={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Og={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Tg(e,t){var n,r=function(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(Sg),o=[];o[o.length]=Sf,o[o.length]=Hf("Types",null,{xmlns:Qf.CT,"xmlns:xsd":Qf.xsd,"xmlns:xsi":Qf.xsi}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Hf("Default",null,{Extension:e[0],ContentType:e[1]})})));var i=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=Hf("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Og[r][t.bookType]||Og[r].xlsx}))},s=function(n){(e[n]||[]).forEach((function(e){o[o.length]=Hf("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Og[n][t.bookType]||Og[n].xlsx})}))},a=function(t){(e[t]||[]).forEach((function(e){o[o.length]=Hf("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return i("workbooks"),s("sheets"),s("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),s("metadata"),a("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var _g={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Vg(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Rg(e){var t=[Sf,Hf("Relationships",null,{xmlns:Qf.RELS})];return nf(e["!id"]).forEach((function(n){t[t.length]=Hf("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Ig(e,t,n,r,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,i?o.TargetMode=i:[_g.HLINK,_g.XPATH,_g.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function kg(e,t,n){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function Ag(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ld.version+"</meta:generator></office:meta></office:document-meta>"}var Dg=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ng(e,t,n,r,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=Vf(t),r[r.length]=n?Hf(e,t,n):Bf(e,t))}function Mg(e,t){var n=t||{},r=[Sf,Hf("cp:coreProperties",null,{"xmlns:cp":Qf.CORE_PROPS,"xmlns:dc":Qf.dc,"xmlns:dcterms":Qf.dcterms,"xmlns:dcmitype":Qf.dcmitype,"xmlns:xsi":Qf.xsi})],o={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&Ng("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:zf(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),null!=e.ModifiedDate&&Ng("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:zf(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var i=0;i!=Dg.length;++i){var s=Dg[i],a=n.Props&&null!=n.Props[s[1]]?n.Props[s[1]]:e?e[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&Ng(s[0],a,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Lg=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],jg=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Fg(e){var t=[],n=Hf;return e||(e={}),e.Application="SheetJS",t[t.length]=Sf,t[t.length]=Hf("Properties",null,{xmlns:Qf.EXT_PROPS,"xmlns:vt":Qf.vt}),Lg.forEach((function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=Vf(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+Vf(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Bg(e){var t=[Sf,Hf("Properties",null,{xmlns:Qf.CUST_PROPS,"xmlns:vt":Qf.vt})];if(!e)return t.join("");var n=1;return nf(e).forEach((function(r){++n,t[t.length]=Hf("property",function(e,t){switch(typeof e){case"string":var n=Hf("vt:lpwstr",Vf(e));return n=n.replace(/"/g,"_x0022_");case"number":return Hf((0|e)==e?"vt:i4":"vt:r8",Vf(String(e)));case"boolean":return Hf("vt:bool",e?"true":"false")}if(e instanceof Date)return Hf("vt:filetime",zf(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Vf(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var qg={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Hg(e,t){var n=_m(4),r=_m(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=_m(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var i=_m(8);return i.write_shift(4,n),i.write_shift(4,r),i}(t);break;case 31:case 80:for((r=_m(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return oh([n,r])}var zg=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Qg(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Ug(e,t,n){var r=_m(8),o=[],i=[],s=8,a=0,l=_m(8),u=_m(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),o.push(u),s+=8+l.length,!t){(u=_m(8)).write_shift(4,0),o.unshift(u);var c=[_m(4)];for(c[0].write_shift(4,e.length),a=0;a<e.length;++a){var p=e[a][0];for((l=_m(8+2*(p.length+1)+(p.length%2?0:2))).write_shift(4,a+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=oh(c),i.unshift(l),s+=8+l.length}for(a=0;a<e.length;++a)if((!t||t[e[a][0]])&&!(zg.indexOf(e[a][0])>-1||jg.indexOf(e[a][0])>-1)&&null!=e[a][1]){var d=e[a][1],h=0;if(t){var f=n[h=+t[e[a][0]]];if("version"==f.p&&"string"==typeof d){var m=d.split(".");d=(+m[0]<<16)+(+m[1]||0)}l=Hg(f.t,d)}else{var g=Qg(d);-1==g&&(g=31,d=String(d)),l=Hg(g,d)}i.push(l),(u=_m(8)).write_shift(4,t?h:2+a),o.push(u),s+=8+l.length}var y=8*(i.length+1);for(a=0;a<i.length;++a)o[a].write_shift(4,y),y+=i[a].length;return r.write_shift(4,s),r.write_shift(4,i.length),oh([r].concat(o).concat(i))}function Wg(e,t,n,r,o,i){var s=_m(o?68:48),a=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Xh.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,o?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,o?68:48);var l=Ug(e,n,r);if(a.push(l),o){var u=Ug(o,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+l.length),a.push(u)}return oh(a)}function $g(e,t){return t||(t=_m(2)),t.write_shift(2,+!!e),t}function Gg(e){return e.read_shift(2,"u")}function Jg(e,t){return t||(t=_m(2)),t.write_shift(2,e),t}function Yg(e,t,n){return n||(n=_m(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Kg(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont",i=jd;n&&n.biff>=8&&(jd=1200),n&&8!=n.biff?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont"),n.biff>=2&&n.biff<=5&&(o="cpstr");var s=r?e.read_shift(r,o):"";return jd=i,s}function Xg(e){var t=e.t||"",n=_m(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=_m(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),oh([n,r])}function Zg(e,t,n){return n||(n=_m(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function ey(e,t){t||(t=_m(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function ty(e){var t=_m(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var o=r.indexOf("#"),i=o>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(n=0;n<s.length;++n)t.write_shift(4,s[n]);if(28==i)ey(r=r.slice(1),t);else if(2&i){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));var a=o>-1?r.slice(0,o):r;for(t.write_shift(4,2*(a.length+1)),n=0;n<a.length;++n)t.write_shift(2,a.charCodeAt(n));t.write_shift(2,0),8&i&&ey(o>-1?r.slice(o+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));for(var l=0;"../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function ny(e,t,n,r){return r||(r=_m(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function ry(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function oy(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function iy(e,t){return t||(t=_m(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function sy(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;default:throw new Error("unsupported BIFF version")}var i=_m(o);return i.write_shift(2,r),i.write_shift(2,t),o>4&&i.write_shift(2,29282),o>6&&i.write_shift(2,1997),o>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function ay(e,t){var n=!t||t.biff>=8?2:1,r=_m(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=r.slice(0,r.l);return o.l=r.l,o}function ly(e,t,n,r){var o=n&&5==n.biff;r||(r=_m(o?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(o?1:2,t.length),o||r.write_shift(1,1),r.write_shift((o?1:2)*t.length,t,o?"sbcs":"utf16le");var i=r.length>r.l?r.slice(0,r.l):r;return null==i.l&&(i.l=i.length),i}function uy(e,t,n,r){var o=n&&5==n.biff;r||(r=_m(o?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&o&&(i|=1024),r.write_shift(4,i),r.write_shift(4,0),o||r.write_shift(4,0),r.write_shift(2,0),r}function cy(e){var t=_m(24),n=Fm(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t.write_shift(1,parseInt(r[o],16));return oh([t,ty(e[1])])}function py(e){var t=e[1].Tooltip,n=_m(10+2*(t.length+1));n.write_shift(2,2048);var r=Fm(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var o=0;o<t.length;++o)n.write_shift(2,t.charCodeAt(o));return n.write_shift(2,0),n}var dy=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=of({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=$m(function(t,n){var r=[],o=Zd(1);switch(n.type){case"base64":o=th(Yd(t));break;case"binary":o=th(t);break;case"buffer":case"array":o=t}Om(o,0);var i=o.read_shift(1),s=!!(136&i),a=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:a=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var u=0,c=521;2==i&&(u=o.read_shift(2)),o.l+=3,2!=i&&(u=o.read_shift(4)),u>1048576&&(u=1e6),2!=i&&(c=o.read_shift(2));var p=o.read_shift(2),d=n.codepage||1252;2!=i&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(d=e[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36);for(var h=[],f={},m=Math.min(o.length,2==i?521:c-10-(a?264:0)),g=l?32:11;o.l<m&&13!=o[o.l];)switch((f={}).name=Qd.utils.decode(d,o.slice(o.l,o.l+g)).replace(/[\u0000\r\n].*$/g,""),o.l+=g,f.type=String.fromCharCode(o.read_shift(1)),2==i||l||(f.offset=o.read_shift(4)),f.len=o.read_shift(1),2==i&&(f.offset=o.read_shift(2)),f.dec=o.read_shift(1),f.name.length&&h.push(f),2!=i&&(o.l+=l?13:14),f.type){case"B":a&&8==f.len||!n.WTF||console.log("Skipping "+f.name+":"+f.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+f.name+":"+f.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+f.type)}if(13!==o[o.l]&&(o.l=c-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=c;var y=0,v=0;for(r[0]=[],v=0;v!=h.length;++v)r[0][v]=h[v].name;for(;u-- >0;)if(42!==o[o.l])for(++o.l,r[++y]=[],v=0,v=0;v!=h.length;++v){var b=o.slice(o.l,o.l+h[v].len);o.l+=h[v].len,Om(b,0);var C=Qd.utils.decode(d,b);switch(h[v].type){case"C":C.trim().length&&(r[y][v]=C.replace(/\s+$/,""));break;case"D":8===C.length?r[y][v]=new Date(+C.slice(0,4),+C.slice(4,6)-1,+C.slice(6,8)):r[y][v]=C;break;case"F":r[y][v]=parseFloat(C.trim());break;case"+":case"I":r[y][v]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(C.trim().toUpperCase()){case"Y":case"T":r[y][v]=!0;break;case"N":case"F":r[y][v]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+C+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));r[y][v]="##MEMO##"+(l?parseInt(C.trim(),10):b.read_shift(4));break;case"N":(C=C.replace(/\u0000/g,"").trim())&&"."!=C&&(r[y][v]=+C||0);break;case"@":r[y][v]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":r[y][v]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":r[y][v]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[y][v]=-b.read_shift(-8,"f");break;case"B":if(a&&8==h[v].len){r[y][v]=b.read_shift(8,"f");break}case"G":case"P":b.l+=h[v].len;break;case"0":if("_NullFlags"===h[v].name)break;default:throw new Error("DBF Unsupported data type "+h[v].type)}}else o.l+=p;if(2!=i&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=h,r}(t,r),r);return o["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Um(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&zd(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var i=Vm(),s=rC(e,{header:1,raw:!0,cellDates:!0}),a=s[0],l=s.slice(1),u=e["!cols"]||[],c=0,p=0,d=0,h=1;for(c=0;c<a.length;++c)if(((u[c]||{}).DBF||{}).name)a[c]=u[c].DBF.name,++d;else if(null!=a[c]){if(++d,"number"==typeof a[c]&&(a[c]=a[c].toString(10)),"string"!=typeof a[c])throw new Error("DBF Invalid column name "+a[c]+" |"+typeof a[c]+"|");if(a.indexOf(a[c])!==c)for(p=0;p<1024;++p)if(-1==a.indexOf(a[c]+"_"+p)){a[c]+="_"+p;break}}var f=zm(e["!ref"]),m=[],g=[],y=[];for(c=0;c<=f.e.c-f.s.c;++c){var v="",b="",C=0,w=[];for(p=0;p<l.length;++p)null!=l[p][c]&&w.push(l[p][c]);if(0!=w.length&&null!=a[c]){for(p=0;p<w.length;++p){switch(typeof w[p]){case"number":b="B";break;case"string":default:b="C";break;case"boolean":b="L";break;case"object":b=w[p]instanceof Date?"D":"C"}C=Math.max(C,String(w[p]).length),v=v&&v!=b?"C":b}C>250&&(C=250),"C"==(b=((u[c]||{}).DBF||{}).type)&&u[c].DBF.len>C&&(C=u[c].DBF.len),"B"==v&&"N"==b&&(v="N",y[c]=u[c].DBF.dec,C=u[c].DBF.len),g[c]="C"==v||"N"==b?C:r[v]||0,h+=g[c],m[c]=v}else m[c]="?"}var x=i.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*d),x.write_shift(2,h),c=0;c<4;++c)x.write_shift(4,0);for(x.write_shift(4,(+t[Fd]||3)<<8),c=0,p=0;c<a.length;++c)if(null!=a[c]){var E=i.next(32),P=(a[c].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,P,"sbcs"),E.write_shift(1,"?"==m[c]?"C":m[c],"sbcs"),E.write_shift(4,p),E.write_shift(1,g[c]||r[m[c]]||0),E.write_shift(1,y[c]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),p+=g[c]||r[m[c]]||0}var S=i.next(264);for(S.write_shift(4,13),c=0;c<65;++c)S.write_shift(4,0);for(c=0;c<l.length;++c){var O=i.next(h);for(O.write_shift(1,0),p=0;p<a.length;++p)if(null!=a[p])switch(m[p]){case"L":O.write_shift(1,null==l[c][p]?63:l[c][p]?84:70);break;case"B":O.write_shift(8,l[c][p]||0,"f");break;case"N":var T="0";for("number"==typeof l[c][p]&&(T=l[c][p].toFixed(y[p]||0)),d=0;d<g[p]-T.length;++d)O.write_shift(1,32);O.write_shift(1,T,"sbcs");break;case"D":l[c][p]?(O.write_shift(4,("0000"+l[c][p].getFullYear()).slice(-4),"sbcs"),O.write_shift(2,("00"+(l[c][p].getMonth()+1)).slice(-2),"sbcs"),O.write_shift(2,("00"+l[c][p].getDate()).slice(-2),"sbcs")):O.write_shift(8,"00000000","sbcs");break;case"C":var _=String(null!=l[c][p]?l[c][p]:"").slice(0,g[p]);for(O.write_shift(1,_,"sbcs"),d=0;d<g[p]-_.length;++d)O.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),hy=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+nf(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?Wd(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:Wd(r)};function o(e,o){var i,s=e.split(/[\n\r]+/),a=-1,l=-1,u=0,c=0,p=[],d=[],h=null,f={},m=[],g=[],y=[],v=0;for(+o.codepage>=0&&zd(+o.codepage);u!==s.length;++u){v=0;var b,C=s[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),w=C.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=w[0];if(C.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&d.push(C.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,P=!1,S=!1,O=!1,T=-1,_=-1;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"A":case"G":break;case"X":l=parseInt(w[c].slice(1))-1,P=!0;break;case"Y":for(a=parseInt(w[c].slice(1))-1,P||(l=0),i=p.length;i<=a;++i)p[i]=[];break;case"K":'"'===(b=w[c].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(Cf(b))?isNaN(xf(b).getDate())||(b=gf(b)):(b=Cf(b),null!==h&&zh(h)&&(b=df(b))),void 0!==Qd&&"string"==typeof b&&"string"!=(o||{}).type&&(o||{}).codepage&&(b=Qd.utils.decode(o.codepage,b)),E=!0;break;case"E":O=!0;var V=Zy(w[c].slice(1),{r:a,c:l});p[a][l]=[p[a][l],V];break;case"S":S=!0,p[a][l]=[p[a][l],"S5S"];break;case"R":T=parseInt(w[c].slice(1))-1;break;case"C":_=parseInt(w[c].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}if(E&&(p[a][l]&&2==p[a][l].length?p[a][l][0]=b:p[a][l]=b,h=null),S){if(O)throw new Error("SYLK shared formula cannot have own formula");var R=T>-1&&p[T][_];if(!R||!R[1])throw new Error("SYLK shared formula cannot find base");p[a][l][1]=nv(R[1],{r:a-T,c:l-_})}break;case"F":var I=0;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"X":l=parseInt(w[c].slice(1))-1,++I;break;case"Y":for(a=parseInt(w[c].slice(1))-1,i=p.length;i<=a;++i)p[i]=[];break;case"M":v=parseInt(w[c].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=d[parseInt(w[c].slice(1))];break;case"W":for(y=w[c].slice(1).split(" "),i=parseInt(y[0],10);i<=parseInt(y[1],10);++i)v=parseInt(y[2],10),g[i-1]=0===v?{hidden:!0}:{wch:v},Vy(g[i-1]);break;case"C":g[l=parseInt(w[c].slice(1))-1]||(g[l]={});break;case"R":m[a=parseInt(w[c].slice(1))-1]||(m[a]={}),v>0?(m[a].hpt=v,m[a].hpx=ky(v)):0===v&&(m[a].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}I<1&&(h=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}}return m.length>0&&(f["!rows"]=m),g.length>0&&(f["!cols"]=g),o&&o.sheetRows&&(p=p.slice(0,o.sheetRows)),[p,f]}function i(e,t){var n=function(e,t){switch(t.type){case"base64":return o(Yd(e),t);case"binary":return o(e,t);case"buffer":return o(Kd&&Buffer.isBuffer(e)?e.toString("binary"):rh(e),t);case"array":return o(yf(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],i=n[1],s=$m(r,t);return nf(i).forEach((function(e){s[e]=i[e]})),s}function s(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+tv(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return Um(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],i=[],a=zm(e["!ref"]),l=Array.isArray(e),u="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=Oy(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Ty(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Iy(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(o,e["!rows"]),o.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" "));for(var c=a.s.r;c<=a.e.r;++c)for(var p=a.s.c;p<=a.e.c;++p){var d=Bm({r:c,c:p});(n=l?(e[c]||[])[p]:e[d])&&(null!=n.v||n.f&&!n.F)&&i.push(s(n,0,c,p))}return o.join(u)+u+i.join(u)+u+"E"+u}}}(),fy=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,i=0,s=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(r<0)){for(var a=n[i].trim().split(","),l=a[0],u=a[1],c=n[++i]||"";1&(c.match(/["]/g)||[]).length&&i<n.length-1;)c+="\n"+n[++i];switch(c=c.trim(),+l){case-1:if("BOT"===c){s[++r]=[],o=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?s[r][o]=!0:"FALSE"===c?s[r][o]=!1:isNaN(Cf(u))?isNaN(xf(u).getDate())?s[r][o]=u:s[r][o]=gf(u):s[r][o]=Cf(u),++o;break;case 1:(c=(c=c.slice(1,c.length-1)).replace(/""/g,'"'))&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),s[r][o++]=""!==c?c:null}if("EOD"===c)break}}else s[++r]=[],o=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,n){return $m(function(t,n){switch(n.type){case"base64":return e(Yd(t),n);case"binary":return e(t,n);case"buffer":return e(Kd&&Buffer.isBuffer(t)?t.toString("binary"):rh(t),n);case"array":return e(yf(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}var n=function(){var e=function(e,t,n,r,o){e.push(t),e.push(n+","+r),e.push('"'+o.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,o=[],i=zm(n["!ref"]),s=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,i.e.r-i.s.r+1,""),e(o,"TUPLES",0,i.e.c-i.s.c+1,""),e(o,"DATA",0,0,"");for(var a=i.s.r;a<=i.e.r;++a){t(o,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var u=Bm({r:a,c:l});if(r=s?(n[a]||[])[l]:n[u])switch(r.t){case"n":var c=r.w;c||null==r.v||(c=r.v),null==c?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,c,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=Wh(r.z||gh[14],lf(gf(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}return t(o,-1,0,"EOD"),o.join("\r\n")}}();return{to_workbook:function(e,n){return Um(t(e,n),n)},to_sheet:t,from_sheet:n}}(),my=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){return $m(function(t,n){for(var r=t.split("\n"),o=-1,i=-1,s=0,a=[];s!==r.length;++s){var l=r[s].trim().split(":");if("cell"===l[0]){var u=Fm(l[1]);if(a.length<=u.r)for(o=a.length;o<=u.r;++o)a[o]||(a[o]=[]);switch(o=u.r,i=u.c,l[2]){case"t":a[o][i]=e(l[3]);break;case"v":a[o][i]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":"nl"===l[3]?a[o][i]=!!+l[4]:a[o][i]=+l[4],"vtf"==l[2]&&(a[o][i]=[a[o][i],c])}}}return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),a}(t,n),n)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function a(e){if(!e||!e["!ref"])return"";for(var n,r=[],o=[],i="",s=qm(e["!ref"]),a=Array.isArray(e),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u)if(i=Bm({r:l,c:u}),(n=a?(e[l]||[])[u]:e[i])&&null!=n.v&&"z"!==n.t){switch(o=["cell",i,"t"],n.t){case"s":case"str":o.push(t(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=t(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=lf(gf(n.v));o[2]="vtc",o[3]="nd",o[4]=""+c,o[5]=n.w||Wh(n.z||gh[14],c);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,t){return Um(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[r,o,i,o,a(e),s].join("\n")}}}(),gy=function(){function e(e,t,n,r,o){o.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(Cf(e))?isNaN(xf(e).getDate())?t[n][r]=e:t[n][r]=gf(e):t[n][r]=Cf(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,i=0,s=0;i<e.length;++i)34==(s=e.charCodeAt(i))?o=!o:!o&&s in t&&(r[s]=(r[s]||0)+1);for(i in s=[],r)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);if(!s.length)for(i in r=n)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);return s.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[s.pop()[1]]||44}function o(e,t){var n=t||{},o="";null!=$d&&null==n.dense&&(n.dense=$d);var i=n.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var a=0,l=0,u=0,c=0,p=0,d=o.charCodeAt(0),h=!1,f=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,y,v=null!=n.dateNF?(y=(y="number"==typeof(g=n.dateNF)?gh[g]:g).replace(Yh,"(\\d+)"),new RegExp("^"+y+"$")):null;function b(){var t=e.slice(c,p),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):function(e){return 1!=e.length}(t)?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=Cf(t)))if(!isNaN(xf(t).getDate())||v&&t.match(v)){r.z=n.dateNF||gh[14];var o=0;v&&t.match(v)&&(t=function(e,t,n){var r=-1,o=-1,i=-1,s=-1,a=-1,l=-1;(t.match(Yh)||[]).forEach((function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":i=u;break;case"h":s=u;break;case"s":l=u;break;case"m":s>=0?a=u:o=u}})),l>=0&&-1==a&&o>=0&&(a=o,o=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==a&&-1==l?u:-1==r&&-1==o&&-1==i?c:u+"T"+c}(0,n.dateNF,t.match(v)||[]),o=1),n.cellDates?(r.t="d",r.v=gf(t,o)):(r.t="n",r.v=lf(gf(t,o))),!1!==n.cellText&&(r.w=Wh(r.z,r.v instanceof Date?lf(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(i[a]||(i[a]=[]),i[a][l]=r):i[Bm({c:l,r:a})]=r),c=p+1,m=e.charCodeAt(c),s.e.c<l&&(s.e.c=l),s.e.r<a&&(s.e.r=a),f==d)++l;else if(l=0,++a,n.sheetRows&&n.sheetRows<=a)return!0}e:for(;p<e.length;++p)switch(f=e.charCodeAt(p)){case 34:34===m&&(h=!h);break;case d:case 10:case 13:if(!h&&b())break e}return p-c>0&&b(),i["!ref"]=Hm(s),i}function i(t,n){var r="",i="string"==n.type?[0,0,0,0]:function(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=Yd(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}(t,n);switch(n.type){case"base64":r=Yd(t);break;case"binary":case"string":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&void 0!==Qd?Qd.utils.decode(n.codepage,t):Kd&&Buffer.isBuffer(t)?t.toString("binary"):rh(t);break;case"array":r=yf(t);break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Mf(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Mf(r):"binary"==n.type&&void 0!==Qd&&n.codepage&&(r=Qd.utils.decode(n.codepage,Qd.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?my.to_sheet("string"==n.type?r:Mf(r),n):function(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):$m(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var i=t.split(/[\r\n]/),s=i.length-1;s>=0&&0===i[s].length;)--s;for(var a=10,l=0,u=0;u<=s;++u)-1==(l=i[u].indexOf(" "))?l=i[u].length:l++,a=Math.max(a,l);for(u=0;u<=s;++u){o[u]=[];var c=0;for(e(i[u].slice(0,a).trim(),o,u,c,r),c=1;c<=(i[u].length-a)/10+1;++c)e(i[u].slice(a+10*(c-1),a+10*c).trim(),o,u,c,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}(r,n)}return{to_workbook:function(e,t){return Um(i(e,t),t)},to_sheet:i,from_sheet:function(e){for(var t,n=[],r=zm(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){for(var s=[],a=r.s.c;a<=r.e.c;++a){var l=Bm({r:i,c:a});if((t=o?(e[i]||[])[a]:e[l])&&null!=t.v){for(var u=(t.w||(Qm(t),t.w)||"").slice(0,10);u.length<10;)u+=" ";s.push(u+(0===a?" ":""))}else s.push(" ")}n.push(s.join(""))}return n.join("\n")}}}(),yy=function(){function e(e,t,n){if(e){Om(e,e.l||0);for(var r=n.Enum||y;e.l<e.length;){var o=e.read_shift(2),i=r[o]||r[65535],s=e.read_shift(2),a=e.l+s,l=i.f&&i.f(e,s,n);if(e.l=a,t(l,i,o))return}}}function t(t,n){if(!t)return t;var r=n||{};null!=$d&&null==r.dense&&(r.dense=$d);var o=r.dense?[]:{},i="Sheet1",s="",a=0,l={},u=[],c=[],p={s:{r:0,c:0},e:{r:0,c:0}},d=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=y,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:p=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||gh[14],r.cellDates&&(e[1].t="d",e[1].v=df(e[1].v))),r.qpro&&e[3]>a&&(o["!ref"]=Hm(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i=s||"Sheet"+(a+1),s="");var c=r.dense?(o[e[0].r]||[])[e[0].c]:o[Bm(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Bm(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=v,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>a&&(o["!ref"]=Hm(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i="Sheet"+(a+1)),d>0&&e[0].r>=d)break;r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Bm(e[0])]=e[1],p.e.c<e[0].c&&(p.e.c=e[0].c),p.e.r<e[0].r&&(p.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==a&&(i=e[1])}}),r)}if(o["!ref"]=Hm(p),l[s||i]=o,u.push(s||i),!c.length)return{SheetNames:u,Sheets:l};for(var h={},f=[],m=0;m<c.length;++m)l[u[m]]?(f.push(c[m]||u[m]),h[c[m]]=l[c[m]]||l[u[m]]):(f.push(c[m]),h[c[m]]={"!ref":"A1"});return{SheetNames:f,Sheets:h}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return i[1].v=e.read_shift(s,"utf8"),i}return r.qpro&&e.l++,i[1].v=e.read_shift(o-e.l,"cstr"),i}function o(e,t,n){var r=_m(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var o=0;o<r.length;++o){var i=n.charCodeAt(o);r.write_shift(1,i>=128?95:i)}return r.write_shift(1,0),r}function i(e,t,n){var r=_m(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=_m(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function a(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?jm(t):Mm(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function p(e,t,n,r){var o=_m(6+r.length);o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),o.write_shift(1,39);for(var i=0;i<r.length;++i){var s=r.charCodeAt(i);o.write_shift(1,s>=128?95:s)}return o.write_shift(1,0),o}function d(e,t){var n=c(e),r=e.read_shift(4),o=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,i+32)+r*Math.pow(2,i)),n}function h(e,t,n,r){var o=_m(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var i,s=0,a=0,l=0;return r<0&&(s=1,r=-r),a=0|Math.log2(r),2147483648&(l=(r/=Math.pow(2,a-31))>>>0)||(++a,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,i=(r*=Math.pow(2,32))>>>0,o.write_shift(4,i),o.write_shift(4,l),a+=16383+(s?32768:0),o.write_shift(2,a),o}function f(e,t){var n=c(e),r=e.read_shift(8,"f");return n[1].v=r,n}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var n=_m(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var o=e.charCodeAt(r);n[n.l++]=o>127?95:o}return n[n.l++]=0,n}var y={0:{n:"BOF",f:Gg},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var s=e.read_shift(2);!function(e,t){Om(e,0);for(var n=[],r=0,o="",i="",s="",c="";e.l<e.length;){var p=e[e.l++];switch(p){case 0:n.push(e.read_shift(8,"f"));break;case 1:i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(i+o);break;case 2:var d=a(t[0].c,e.read_shift(2),!0),h=a(t[0].r,e.read_shift(2),!1);i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(d+h+":"+i+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var f="";p=e[e.l++];)f+=String.fromCharCode(p);n.push('"'+f.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:c=n.pop(),s=n.pop(),n.push(["AND","OR"][p-20]+"("+s+","+c+")");break;default:if(p<32&&u[p])c=n.pop(),s=n.pop(),n.push(s+u[p]+c);else{if(!l[p])return p<=7?console.error("WK1 invalid opcode "+p.toString(16)):p<=24?console.error("WK1 unsupported op "+p.toString(16)):p<=30?console.error("WK1 invalid opcode "+p.toString(16)):p<=115?console.error("WK1 unsupported function opcode "+p.toString(16)):console.error("WK1 unrecognized opcode "+p.toString(16));if(69==(r=l[p][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+p.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-r);n.length-=r,n.push(l[p][0]+"("+m.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+s),i),e.l+=s}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},v={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=c(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var n=c(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=d(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var o=e.read_shift(2);if(14e3==o){for(n[o]=[0,""],n[o][0]=e.read_shift(2);e[e.l];)n[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=c(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f},40:{n:"FORMULA28",f:function(e,t){var n=f(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&zd(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,a=Vm(),l=zm(e["!ref"]),u=Array.isArray(e),c=[];gb(a,0,((r=_m(2)).write_shift(2,1030),r)),gb(a,6,function(e){var t=_m(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var p=Math.min(l.e.r,8191),d=l.s.r;d<=p;++d)for(var h=Mm(d),f=l.s.c;f<=l.e.c;++f){d===l.s.r&&(c[f]=jm(f));var m=c[f]+h,g=u?(e[d]||[])[f]:e[m];g&&"z"!=g.t&&("n"==g.t?(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?gb(a,13,i(d,f,g.v)):gb(a,14,s(d,f,g.v)):gb(a,15,o(d,f,Qm(g).slice(0,239))))}return gb(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&zd(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=Vm();gb(r,0,function(e){var t=_m(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var s=e.SheetNames[i],a=e.Sheets[s];if(a&&a["!ref"]){++o;var l=qm(a["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var o=0,i=0;o<e.SheetNames.length;++o)(e.Sheets[e.SheetNames[o]]||{})["!ref"]&&gb(r,27,g(e.SheetNames[o],i++));var s=0;for(o=0;o<e.SheetNames.length;++o){var a=e.Sheets[e.SheetNames[o]];if(a&&a["!ref"]){for(var l=zm(a["!ref"]),u=Array.isArray(a),c=[],d=Math.min(l.e.r,8191),f=l.s.r;f<=d;++f)for(var m=Mm(f),y=l.s.c;y<=l.e.c;++y){f===l.s.r&&(c[y]=jm(y));var v=c[y]+m,b=u?(a[f]||[])[y]:a[v];b&&"z"!=b.t&&("n"==b.t?gb(r,23,h(f,y,s,b.v)):gb(r,22,p(f,y,s,Qm(b).slice(0,239))))}++s}}return gb(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(th(Yd(e)),n);case"binary":return t(th(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),vy=/^\s|\s$|[\t\n\r]/;function by(e,t){if(!t.bookSST)return"";var n=[Sf];n[n.length]=Hf("sst",null,{xmlns:Uf[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var o=e[r],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),o.t.match(vy)&&(i+=' xml:space="preserve"'),i+=">"+Vf(o.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Cy=function(e,t){var n=!1;return null==t&&(n=!0,t=_m(15+4*e.t.length)),t.write_shift(1,0),Ym(e.t,t),n?t.slice(0,t.l):t};function wy(e){var t=Vm();Rm(t,159,function(e,t){return t||(t=_m(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)Rm(t,19,Cy(e[n]));return Rm(t,160),t.end()}function xy(e){var t,n,r=0,o=function(e){if(void 0!==Qd)return Qd.utils.encode(Fd,e);for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),i=o.length+1;for((t=Zd(i))[0]=o.length,n=1;n!=i;++n)t[n]=o[n-1];for(n=i-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var Ey=function(){function e(e,n){switch(n.type){case"base64":return t(Yd(e),n);case"binary":return t(e,n);case"buffer":return t(Kd&&Buffer.isBuffer(e)?e.toString("binary"):rh(e),n);case"array":return t(yf(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,i=/\\\w+\b/g,s=0,a=-1;r=i.exec(e);){if("\\cell"===r[0]){var l=e.slice(s,i.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++a,l.length){var u={v:l,t:"s"};Array.isArray(n)?n[t][a]=u:n[Bm({r:t,c:a})]=u}}s=i.lastIndex}a>o.e.c&&(o.e.c=a)})),n["!ref"]=Hm(o),n}return{to_workbook:function(t,n){return Um(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=zm(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var a=Bm({r:i,c:s});(t=o?(e[i]||[])[s]:e[a])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(Qm(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Py(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var Sy=6;function Oy(e){return Math.floor((e+Math.round(128/Sy)/256)*Sy)}function Ty(e){return Math.floor((e-5)/Sy*100+.5)/100}function _y(e){return Math.round((e*Sy+5)/Sy*256)/256}function Vy(e){e.width?(e.wpx=Oy(e.width),e.wch=Ty(e.wpx),e.MDW=Sy):e.wpx?(e.wch=Ty(e.wpx),e.width=_y(e.wch),e.MDW=Sy):"number"==typeof e.wch&&(e.width=_y(e.wch),e.wpx=Oy(e.width),e.MDW=Sy),e.customWidth&&delete e.customWidth}var Ry=96;function Iy(e){return 96*e/Ry}function ky(e){return e*Ry/96}function Ay(e,t){var n,r=[Sf,Hf("styleSheet",null,{xmlns:Uf[0],"xmlns:vt":Qf.vt})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=Hf("numFmt",null,{numFmtId:r,formatCode:Vf(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Hf("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Hf("cellXfs",null),e.forEach((function(e){t[t.length]=Hf("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Hf("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function Dy(e,t,n){n||(n=_m(6+4*t.length)),n.write_shift(2,e),Ym(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}var Ny,My=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Ly=Tm;function jy(e,t){t||(t=_m(84)),Ny||(Ny=of(My));var n=Ny[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(vg({auto:1},t),vg({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Fy(e,t,n){return n||(n=_m(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function By(e,t){return t||(t=_m(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var qy=Tm;function Hy(e,t){var n=Vm();return Rm(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(Rm(e,615,Gm(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&Rm(e,44,Dy(r,t[r]))})),Rm(e,616))}}(n,e.SSF),function(e){Rm(e,611,Gm(1)),Rm(e,43,function(e,t){t||(t=_m(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=_m(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),vg(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),Ym(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Rm(e,612)}(n),function(e){Rm(e,603,Gm(2)),Rm(e,45,jy({patternType:"none"})),Rm(e,45,jy({patternType:"gray125"})),Rm(e,604)}(n),function(e){Rm(e,613,Gm(1)),Rm(e,46,function(e,t){return t||(t=_m(51)),t.write_shift(1,0),By(0,t),By(0,t),By(0,t),By(0,t),By(0,t),t.length>t.l?t.slice(0,t.l):t}()),Rm(e,614)}(n),function(e){Rm(e,626,Gm(1)),Rm(e,47,Fy({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Rm(e,627)}(n),function(e,t){Rm(e,617,Gm(t.length)),t.forEach((function(t){Rm(e,47,Fy(t,0))})),Rm(e,618)}(n,t.cellXfs),function(e){Rm(e,619,Gm(1)),Rm(e,48,function(e,t){return t||(t=_m(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),ag(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),Rm(e,620)}(n),function(e){Rm(e,505,Gm(0)),Rm(e,506)}(n),function(e){Rm(e,508,function(e,t,n){var r=_m(2052);return r.write_shift(4,0),ag("TableStyleMedium9",r),ag("PivotStyleMedium4",r),r.length>r.l?r.slice(0,r.l):r}()),Rm(e,509)}(n),Rm(n,279),n.end()}function zy(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Sf];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Qy(){var e=Vm();return Rm(e,332),Rm(e,334,Gm(1)),Rm(e,335,function(e){var t=_m(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Ym(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Rm(e,336),Rm(e,339,function(e,t){var n=_m(20);return n.write_shift(4,1),Ym(t,n),n.slice(0,n.l)}(0,"XLDAPR")),Rm(e,52),Rm(e,35,Gm(514)),Rm(e,4096,Gm(0)),Rm(e,4097,Jg(1)),Rm(e,36),Rm(e,53),Rm(e,340),Rm(e,337,function(e,t){var n=_m(8);return n.write_shift(4,1),n.write_shift(4,1),n}()),Rm(e,51,function(e){var t=_m(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),Rm(e,338),Rm(e,333),e.end()}function Uy(){var e=[Sf];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var Wy=1024;function $y(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Hf("xml",null,{"xmlns:v":Wf.v,"xmlns:o":Wf.o,"xmlns:x":Wf.x,"xmlns:mv":Wf.mv}).replace(/\/>/,">"),Hf("o:shapelayout",Hf("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Hf("v:shapetype",[Hf("v:stroke",null,{joinstyle:"miter"}),Hf("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Wy<1e3*e;)Wy+=1e3;return t.forEach((function(e){var t=Fm(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Hf("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Hf("v:fill",r,n);++Wy,o=o.concat(["<v:shape"+qf({id:"_x0000_s"+Wy,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Hf("v:shadow",null,{on:"t",obscured:"t"}),Hf("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Bf("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Bf("x:AutoFill","False"),Bf("x:Row",String(t.r)),Bf("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function Gy(e){var t=[Sf,Hf("comments",null,{xmlns:Uf[0]})],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=Vf(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var r=0,o=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(Vf(e.a))),o.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),o.length<=1)t.push(Bf("t",Vf(o[0]||"")));else{for(var i="Comment:\n "+o[0]+"\n",s=1;s<o.length;++s)i+="Reply:\n "+o[s]+"\n";t.push(Bf("t",Vf(i)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Jy(e,t,n){var r=[Sf,Hf("ThreadedComments",null,{xmlns:Qf.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(i,s){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var a={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==s?o=a.id:a.parentId=o,i.ID=a.id,i.a&&(a.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),r.push(Hf("threadedComment",Bf("text",i.t||""),a))}else delete i.ID}))})),r.push("</ThreadedComments>"),r.join("")}var Yy=Jm;function Ky(e){var t=Vm(),n=[];return Rm(t,628),Rm(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Rm(t,632,function(e){return Ym(e.slice(0,54))}(e.a)))}))})),Rm(t,631),Rm(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var o={s:Fm(e[0]),e:Fm(e[0])};Rm(t,635,function(e,t){return null==t&&(t=_m(36)),t.write_shift(4,e[1].iauthor),mg(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([o,r])),r.t&&r.t.length>0&&Rm(t,637,function(e,t){var n=!1;return null==t&&(n=!0,t=_m(23+4*e.t.length)),t.write_shift(1,1),Ym(e.t,t),t.write_shift(4,1),function(e,t){t||(t=_m(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}(r)),Rm(t,636),delete r.iauthor}))})),Rm(t,634),Rm(t,629),t.end()}var Xy=["xlsb","xlsm","xlam","biff8","xla"],Zy=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var i=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==o.length?i=!0:"["==o.charAt(0)&&(i=!0,o=o.slice(1,-1));var a=r.length>0?0|parseInt(r,10):0,l=o.length>0?0|parseInt(o,10):0;return i?l+=t.c:--l,s?a+=t.r:--a,n+(i?"":"$")+jm(l)+(s?"":"$")+Mm(a)}return function(r,o){return t=o,r.replace(e,n)}}(),ev=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,tv=function(){return function(e,t){return e.replace(ev,(function(e,n,r,o,i,s){var a=Lm(o)-(r?0:t.c),l=Nm(s)-(i?0:t.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==a?"":r?a+1:"["+a+"]")}))}}();function nv(e,t){return e.replace(ev,(function(e,n,r,o,i,s){return n+("$"==r?r+o:jm(Lm(o)+t.c))+("$"==i?i+s:Mm(Nm(s)+t.r))}))}function rv(e){e.l+=1}function ov(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function iv(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return sv(e);12==n.biff&&(r=4)}var o=e.read_shift(r),i=e.read_shift(r),s=ov(e,2),a=ov(e,2);return{s:{r:o,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function sv(e){var t=ov(e,2),n=ov(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function av(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=ov(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=ov(e,2);return{r,c:o[0],cRel:o[1],rRel:o[2]}}function lv(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function uv(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function cv(e){return[e.read_shift(1),e.read_shift(1)]}function pv(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=function(e,t){return 1===e.read_shift(t)}(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Pg[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=gg(e);break;case 2:n[1]=function(e,t,n){if(n.biff>5)return function(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):function(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}(e,r,n)}(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function dv(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?fg:oy)(e,8));return o}function hv(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,s=[];i!=r&&(s[i]=[]);++i)for(var a=0;a!=o;++a)s[i][a]=pv(e,n.biff);return s}function fv(e,t,n){return e.l+=2,[lv(e)]}function mv(e){return e.l+=6,[]}function gv(e){return e.l+=2,[Gg(e),1&e.read_shift(2)]}var yv=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],vv={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Tm},3:{n:"PtgAdd",f:rv},4:{n:"PtgSub",f:rv},5:{n:"PtgMul",f:rv},6:{n:"PtgDiv",f:rv},7:{n:"PtgPower",f:rv},8:{n:"PtgConcat",f:rv},9:{n:"PtgLt",f:rv},10:{n:"PtgLe",f:rv},11:{n:"PtgEq",f:rv},12:{n:"PtgGe",f:rv},13:{n:"PtgGt",f:rv},14:{n:"PtgNe",f:rv},15:{n:"PtgIsect",f:rv},16:{n:"PtgUnion",f:rv},17:{n:"PtgRange",f:rv},18:{n:"PtgUplus",f:rv},19:{n:"PtgUminus",f:rv},20:{n:"PtgPercent",f:rv},21:{n:"PtgParen",f:rv},22:{n:"PtgMissArg",f:rv},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Kg(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Pg[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,gg(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[Nv[o],Dv[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),i=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===i[0]?Dv:Av)[i[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,i=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,i]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,av(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,iv(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Tm},40:{n:"PtgMemNoMem",f:Tm},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==o&&n>=128&&(n-=256),{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),i=e.read_shift(2),s=(16384&i)>>14,a=(32768&i)>>15;if(i&=16383,1==a)for(;o>524287;)o-=1048576;if(1==s)for(;i>8191;)i-=16384;return{r:o,c:i,cRel:s,rRel:a}}(e,0,n);return[r,o]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=function(e,t,n){if(n.biff<8)return sv(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),i=ov(e,2),s=ov(e,2);return{s:{r,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,o]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,av(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n&&5===n.biff)e.l+=12;return[r,o,iv(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=8;if(n)switch(n.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[r,o]}},255:{}},bv={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Cv={1:{n:"PtgElfLel",f:gv},2:{n:"PtgElfRw",f:fv},3:{n:"PtgElfCol",f:fv},6:{n:"PtgElfRwV",f:fv},7:{n:"PtgElfColV",f:fv},10:{n:"PtgElfRadical",f:fv},11:{n:"PtgElfRadicalS",f:mv},13:{n:"PtgElfColS",f:mv},15:{n:"PtgElfColSV",f:mv},16:{n:"PtgElfRadicalLel",f:gv},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&n,rt:yv[n>>2&31],idx:r,c:o,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},wv={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:uv},33:{n:"PtgAttrBaxcel",f:uv},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),cv(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),cv(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function xv(e,t,n,r){if(r.biff<8)return Tm(e,t);for(var o=e.l+t,i=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=hv(e,0,r),i.push(n[s][1]);break;case"PtgMemArea":n[s][2]=dv(e,n[s][1],r),i.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),i.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!=(t=o-e.l)&&i.push(Tm(e,t)),i}function Ev(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],o=[],i=0;i<r.length;++i){var s=r[i];s?2===s[0]?o.push('"'+s[1].replace(/"/g,'""')+'"'):o.push(s[1]):o.push("")}t.push(o.join(","))}return t.join(";")}var Pv={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Sv(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Ov(e,t,n){var r=Sv(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function Tv(e,t,n,r,o){var i,s,a,l,u=o&&o.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},p=[],d=0,h=0,f="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",y=0,v=e[0].length;y<v;++y){var b=e[0][y];switch(b[0]){case"PtgUminus":p.push("-"+p.pop());break;case"PtgUplus":p.push("+"+p.pop());break;case"PtgPercent":p.push(p.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=p.pop(),s=p.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=bf(" ",e[0][m][1][1]);break;case 1:g=bf("\r",e[0][m][1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}p.push(s+Pv[b[0]]+i);break;case"PtgIsect":i=p.pop(),s=p.pop(),p.push(s+" "+i);break;case"PtgUnion":i=p.pop(),s=p.pop(),p.push(s+","+i);break;case"PtgRange":i=p.pop(),s=p.pop(),p.push(s+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":a=Im(b[1][1],c,o),p.push(Am(a,u));break;case"PtgRefN":a=n?Im(b[1][1],n,o):b[1][1],p.push(Am(a,u));break;case"PtgRef3d":d=b[1][1],a=Im(b[1][2],c,o),f=Ov(r,d,o),p.push(f+"!"+Am(a,u));break;case"PtgFunc":case"PtgFuncVar":var C=b[1][0],w=b[1][1];C||(C=0);var x=0==(C&=127)?[]:p.slice(-C);p.length-=C,"User"===w&&(w=x.shift()),p.push(w+"("+x.join(",")+")");break;case"PtgBool":p.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":p.push(b[1]);break;case"PtgNum":p.push(String(b[1]));break;case"PtgStr":p.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=km(b[1][1],n?{s:n}:c,o),p.push(Dm(l,o));break;case"PtgArea":l=km(b[1][1],c,o),p.push(Dm(l,o));break;case"PtgArea3d":d=b[1][1],l=b[1][2],f=Ov(r,d,o),p.push(f+"!"+Dm(l,o));break;case"PtgAttrSum":p.push("SUM("+p.pop()+")");break;case"PtgName":h=b[1][2];var E=(r.names||[])[h-1]||(r[0]||[])[h],P=E?E.Name:"SH33TJSNAME"+String(h);P&&"_xlfn."==P.slice(0,6)&&!o.xlfn&&(P=P.slice(6)),p.push(P);break;case"PtgNameX":var S,O=b[1][1];if(h=b[1][2],!(o.biff<=5)){var T="";if(14849==((r[O]||[])[0]||[])[0]||(1025==((r[O]||[])[0]||[])[0]?r[O][h]&&r[O][h].itab>0&&(T=r.SheetNames[r[O][h].itab-1]+"!"):T=r.SheetNames[h-1]+"!"),r[O]&&r[O][h])T+=r[O][h].Name;else if(r[0]&&r[0][h])T+=r[0][h].Name;else{var _=(Sv(r,O,o)||"").split(";;");_[h-1]?T=_[h-1]:T+="SH33TJSERRX"}p.push(T);break}O<0&&(O=-O),r[O]&&(S=r[O][h]),S||(S={Name:"SH33TJSERRY"}),p.push(S.Name);break;case"PtgParen":var V="(",R=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:V=bf(" ",e[0][m][1][1])+V;break;case 3:V=bf("\r",e[0][m][1][1])+V;break;case 4:R=bf(" ",e[0][m][1][1])+R;break;case 5:R=bf("\r",e[0][m][1][1])+R;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}p.push(V+p.pop()+R);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":p.push("#REF!");break;case"PtgExp":a={c:b[1][1],r:b[1][0]};var I={c:n.c,r:n.r};if(r.sharedf[Bm(a)]){var k=r.sharedf[Bm(a)];p.push(Tv(k,0,I,r,o))}else{var A=!1;for(i=0;i!=r.arrayf.length;++i)if(s=r.arrayf[i],!(a.c<s[0].s.c||a.c>s[0].e.c||a.r<s[0].s.r||a.r>s[0].e.r)){p.push(Tv(s[1],0,I,r,o)),A=!0;break}A||p.push(b[1])}break;case"PtgArray":p.push("{"+Ev(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=y;break;case"PtgMissArg":p.push("");break;case"PtgList":p.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=o.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var D=!0;switch((b=e[0][m])[1][0]){case 4:D=!1;case 0:g=bf(" ",b[1][1]);break;case 5:D=!1;case 1:g=bf("\r",b[1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}p.push((D?g:"")+p.pop()+(D?"":g)),m=-1}}if(p.length>1&&o.WTF)throw new Error("bad formula stack");return p[0]}function _v(e,t,n){var r=e.read_shift(4),o=function(e,t,n){for(var r,o,i=e.l+t,s=[];i!=e.l;)t=i-e.l,o=e[e.l],r=vv[o]||vv[bv[o]],24!==o&&25!==o||(r=(24===o?Cv:wv)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):Tm(e,t);return s}(e,r,n),i=e.read_shift(4);return[o,i>0?xv(e,i,o,n):null]}var Vv=_v,Rv=_v,Iv=_v,kv=_v,Av={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Dv={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Nv={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Mv(e){return("of:="+e.replace(ev,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}var Lv="undefined"!=typeof Map;function jv(e,t,n){var r=0,o=e.length;if(n){if(Lv?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var i=Lv?n.get(t):n[t];r<i.length;++r)if(e[i[r]].t===t)return e.Count++,i[r]}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(Lv?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}function Fv(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(Sy=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=Ty(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=_y(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function Bv(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function qv(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==r&&n.ssf)for(;o<392;++o)if(null==n.ssf[o]){$h(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===r)return o;return e[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Hv(e,t,n){if(e&&e["!ref"]){var r=zm(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var zv=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Qv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Uv(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",i=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Pg[e.v];break;case"d":r&&r.cellDates?o=gf(e.v,-1).toISOString():((e=vf(e)).t="n",o=""+(e.v=lf(gf(e.v)))),void 0===e.z&&(e.z=gh[14]);break;default:o=e.v}var a=Bf("v",Vf(o)),l={r:t},u=qv(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){a=Bf("v",""+jv(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str"}if(e.t!=i&&(e.t=i,e.v=s),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;a=Hf("f",Vf(e.f),c)+(null!=e.v?a:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Hf("c",a,l)}function Wv(e,t,n,r){var o,i=[Sf,Hf("worksheet",null,{xmlns:Uf[0],"xmlns:r":Qf.r})],s=n.SheetNames[e],a="",l=n.Sheets[s];null==l&&(l={});var u=l["!ref"]||"A1",c=zm(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Hm(c)}r||(r={}),l["!comments"]=[];var p=[];!function(e,t,n,r,o){var i=!1,s={},a=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}i=!0,s.codeName=Lf(Vf(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),a=(a||"")+Hf("outlinePr",null,u)}(i||a)&&(o[o.length]=Hf("sheetPr",a,s))}(l,n,e,t,i),i[i.length]=Hf("dimension",null,{ref:u}),i[i.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Hf("sheetViews",Hf("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(i[i.length]=Hf("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var n,r=["<cols>"],o=0;o!=t.length;++o)(n=t[o])&&(r[r.length]=Hf("col",null,Fv(o,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(a=function(e,t,n,r){var o,i,s=[],a=[],l=zm(e["!ref"]),u="",c="",p=[],d=0,h=0,f=e["!rows"],m=Array.isArray(e),g={r:c},y=-1;for(h=l.s.c;h<=l.e.c;++h)p[h]=jm(h);for(d=l.s.r;d<=l.e.r;++d){for(a=[],c=Mm(d),h=l.s.c;h<=l.e.c;++h){o=p[h]+c;var v=m?(e[d]||[])[h]:e[o];void 0!==v&&null!=(u=Uv(v,o,e,t))&&a.push(u)}(a.length>0||f&&f[d])&&(g={r:c},f&&f[d]&&((i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=Iy(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),s[s.length]=Hf("row",a.join(""),g))}if(f)for(;d<f.length;++d)f&&f[d]&&(g={r:d+1},(i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=Iy(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level),s[s.length]=Hf("row","",g));return s.join("")}(l,t),a.length>0&&(i[i.length]=a)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return zv.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Qv.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=xy(e.password).toString(16).toUpperCase()),Hf("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,n,r){var o="string"==typeof e.ref?e.ref:Hm(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,s=qm(o);s.s.r==s.e.r&&(s.e.r=qm(t["!ref"]).e.r,o=Hm(s));for(var a=0;a<i.length;++a){var l=i[a];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+o;break}}return a==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Hf("autoFilter",null,{ref:o})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Hm(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var d,h,f=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(e){e[1].Target&&(d={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=Ig(r,-1,Vf(e[1].Target).replace(/#.*$/,""),_g.HLINK),d["r:id"]="rId"+m),(f=e[1].Target.indexOf("#"))>-1&&(d.location=Vf(e[1].Target.slice(f+1))),e[1].Tooltip&&(d.tooltip=Vf(e[1].Tooltip)),i[i.length]=Hf("hyperlink",null,d))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(Bv(h=l["!margins"]),Hf("pageMargins",null,h))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=Bf("ignoredErrors",Hf("ignoredError",null,{numberStoredAsText:1,sqref:u}))),p.length>0&&(m=Ig(r,-1,"../drawings/drawing"+(e+1)+".xml",_g.DRAW),i[i.length]=Hf("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=p),l["!comments"].length>0&&(m=Ig(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",_g.VML),i[i.length]=Hf("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function $v(e,t,n,r){var o=function(e,t,n){var r=_m(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var i=320;o.hpx?i=20*Iy(o.hpx):o.hpt&&(i=20*o.hpt),r.write_shift(2,i),r.write_shift(1,0);var s=0;o.level&&(s|=o.level),o.hidden&&(s|=16),(o.hpx||o.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var a=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var p=-1,d=-1,h=c<<10;h<c+1<<10;++h)u.c=h,(Array.isArray(n)?(n[u.r]||[])[u.c]:n[Bm(u)])&&(p<0&&(p=h),d=h);p<0||(++a,r.write_shift(4,p),r.write_shift(4,d))}var f=r.l;return r.l=l,r.write_shift(4,a),r.l=f,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&Rm(e,0,o)}var Gv=fg,Jv=mg;var Yv=fg,Kv=mg,Xv=["left","right","top","bottom","header","footer"];function Zv(e,t,n,r,o,i,s){if(void 0===t.v)return!1;var a="";switch(t.t){case"b":a=t.v?"1":"0";break;case"d":(t=vf(t)).z=t.z||gh[14],t.v=lf(gf(t.v)),t.t="n";break;case"n":case"e":a=""+t.v;break;default:a=t.v}var l={r:n,c:r};switch(l.s=qv(o.cellXfs,t,o),t.l&&i["!links"].push([Bm(l),t.l]),t.c&&i["!comments"].push([Bm(l),t.c]),t.t){case"s":case"str":return o.bookSST?(a=jv(o.Strings,t.v,o.revStrings),l.t="s",l.v=a,s?Rm(e,18,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),n.write_shift(4,t.v),n}(0,l)):Rm(e,7,function(e,t,n){return null==n&&(n=_m(12)),tg(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",s?Rm(e,17,function(e,t,n){return null==n&&(n=_m(8+4*e.v.length)),rg(t,n),Ym(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):Rm(e,6,function(e,t,n){return null==n&&(n=_m(12+4*e.v.length)),tg(t,n),Ym(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?Rm(e,13,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),dg(e.v,n),n}(t,l)):Rm(e,2,function(e,t,n){return null==n&&(n=_m(12)),tg(t,n),dg(e.v,n),n}(t,l)):s?Rm(e,16,function(e,t,n){return null==n&&(n=_m(12)),rg(t,n),yg(e.v,n),n}(t,l)):Rm(e,5,function(e,t,n){return null==n&&(n=_m(16)),tg(t,n),yg(e.v,n),n}(t,l)),!0;case"b":return l.t="b",s?Rm(e,15,function(e,t,n){return null==n&&(n=_m(5)),rg(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):Rm(e,4,function(e,t,n){return null==n&&(n=_m(9)),tg(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",s?Rm(e,14,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):Rm(e,3,function(e,t,n){return null==n&&(n=_m(9)),tg(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return s?Rm(e,12,function(e,t,n){return null==n&&(n=_m(4)),rg(t,n)}(0,l)):Rm(e,1,function(e,t,n){return null==n&&(n=_m(8)),tg(t,n)}(0,l)),!0}function eb(e,t,n,r){var o=Vm(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=i;try{n&&n.Workbook&&(a=n.Workbook.Sheets[e].CodeName||a)}catch(e){}var l=zm(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Rm(o,129),(n.vbaraw||s["!outline"])&&Rm(o,147,function(e,t,n){null==n&&(n=_m(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var o=1;o<3;++o)n.write_shift(1,0);return vg({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),ig(e,n),n.slice(0,n.l)}(a,s["!outline"])),Rm(o,148,Jv(l)),function(e,t,n){Rm(e,133),Rm(e,137,function(e,t,n){null==n&&(n=_m(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Rm(e,138),Rm(e,134)}(o,0,n.Workbook),function(e,t){t&&t["!cols"]&&(Rm(e,390),t["!cols"].forEach((function(t,n){t&&Rm(e,60,function(e,t,n){null==n&&(n=_m(18));var r=Fv(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var o=0;return t.hidden&&(o|=1),"number"==typeof r.width&&(o|=2),t.level&&(o|=t.level<<8),n.write_shift(2,o),n}(n,t))})),Rm(e,391))}(o,s),function(e,t,n,r){var o,i=zm(t["!ref"]||"A1"),s="",a=[];Rm(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){s=Mm(c),$v(e,t,i,c);var p=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(a[d]=jm(d)),o=a[d]+s;var h=l?(t[c]||[])[d]:t[o];p=!!h&&Zv(e,h,c,d,r,t,p)}}Rm(e,146)}(o,s,0,t),function(e,t){t["!protect"]&&Rm(e,535,function(e,t){return null==t&&(t=_m(66)),t.write_shift(2,e.password?xy(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?t.write_shift(4,null==e[n[0]]||e[n[0]]?0:1):t.write_shift(4,null!=e[n[0]]&&e[n[0]]?0:1)})),t}(t["!protect"]))}(o,s),function(e,t,n,r){if(t["!autofilter"]){var o=t["!autofilter"],i="string"==typeof o.ref?o.ref:Hm(o.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,a=qm(i);a.s.r==a.e.r&&(a.e.r=qm(t["!ref"]).e.r,i=Hm(a));for(var l=0;l<s.length;++l){var u=s[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+i;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),Rm(e,161,mg(zm(i))),Rm(e,162)}}(o,s,n,e),function(e,t){t&&t["!merges"]&&(Rm(e,177,function(e,t){return null==t&&(t=_m(4)),t.write_shift(4,e),t}(t["!merges"].length)),t["!merges"].forEach((function(t){Rm(e,176,Kv(t))})),Rm(e,178))}(o,s),function(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Ig(n,-1,t[1].Target.replace(/#.*$/,""),_g.HLINK);Rm(e,494,function(e,t){var n=_m(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));mg({s:Fm(e[0]),e:Fm(e[0])},n),cg("rId"+t,n);var r=e[1].Target.indexOf("#");return Ym((-1==r?"":e[1].Target.slice(r+1))||"",n),Ym(e[1].Tooltip||"",n),Ym("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}(o,s,r),s["!margins"]&&Rm(o,476,function(e,t){return null==t&&(t=_m(48)),Bv(e),Xv.forEach((function(n){yg(e[n],t)})),t}(s["!margins"])),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){t&&t["!ref"]&&(Rm(e,648),Rm(e,649,function(e){var t=_m(24);return t.write_shift(4,4),t.write_shift(4,1),mg(e,t),t}(zm(t["!ref"]))),Rm(e,650))}(o,s),function(e,t,n,r){if(t["!comments"].length>0){var o=Ig(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",_g.VML);Rm(e,551,cg("rId"+o)),t["!legacy"]=o}}(o,s,e,r),Rm(o,130),o.end()}var tb=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],nb="][*?/\\".split("");function rb(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return nb.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function ob(e){var t=[Sf];t[t.length]=Hf("workbook",null,{xmlns:Uf[0],"xmlns:r":Qf.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(tb.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Hf("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:Vf(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=Hf("sheet",null,s)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Hf("definedName",Vf(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function ib(e,t){return t||(t=_m(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),cg(e.strRelID,t),Ym(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function sb(e,t){var n=Vm();return Rm(n,131),Rm(n,128,function(e,t){t||(t=_m(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return Ym("SheetJS",t),Ym(Ld.version,t),Ym(Ld.version,t),Ym("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Rm(n,153,function(e,t){t||(t=_m(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),ig(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n=t.Workbook.Sheets,r=0,o=-1,i=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==o?o=r:1==n[r].Hidden&&-1==i&&(i=r);i>o||(Rm(e,135),Rm(e,158,function(e,t){return t||(t=_m(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e),t.write_shift(1,120),t.length>t.l?t.slice(0,t.l):t}(o)),Rm(e,136))}}(n,e),function(e,t){Rm(e,143);for(var n=0;n!=t.SheetNames.length;++n)Rm(e,156,ib({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]}));Rm(e,144)}(n,e),Rm(n,132),n.end()}function ab(e,t,n,r,o){return(".bin"===t.slice(-4)?eb:Wv)(e,n,r,o)}function lb(e,t,n){return(".bin"===t.slice(-4)?Ky:Gy)(e,n)}function ub(e){return Hf("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+tv(e.Ref,{r:0,c:0})})}function cb(e,t,n,r,o,i,s){if(!e||null==e.v&&null==e.f)return"";var a={};if(e.f&&(a["ss:Formula"]="="+Vf(tv(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=Fm(e.F.slice(t.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(a["ss:HRef"]=Vf(e.l.Target),e.l.Tooltip&&(a["x:HRefScreenTip"]=Vf(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==s.c&&u[c].s.r==s.r&&(u[c].e.c>u[c].s.c&&(a["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(a["ss:MergeDown"]=u[c].e.r-u[c].s.r));var p="",d="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":p="Number",d=String(e.v);break;case"b":p="Boolean",d=e.v?"1":"0";break;case"e":p="Error",d=Pg[e.v];break;case"d":p="DateTime",d=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||gh[14]);break;case"s":p="String",d=((e.v||"")+"").replace(Tf,(function(e){return Of[e]})).replace(If,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var h=qv(r.cellXfs,e,r);a["ss:StyleID"]="s"+(21+h),a["ss:Index"]=s.c+1;var f=null!=e.v?d:"",m="z"==e.t?"":'<Data ss:Type="'+p+'">'+f+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=Hf("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return Hf("Comment",t,{"ss:Author":e.a})})).join("")),Hf("Cell",m,a)}function pb(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ky(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function db(e,t,n){var r=[],o=n.SheetNames[e],i=n.Sheets[o],s=i?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,i=[],s=0;s<o.length;++s){var a=o[s];a.Sheet==n&&(a.Name.match(/^_xlfn\./)||i.push(ub(a)))}return i.join("")}(i,0,e,n):"";return s.length>0&&r.push("<Names>"+s+"</Names>"),s=i?function(e,t,n,r){if(!e["!ref"])return"";var o=zm(e["!ref"]),i=e["!merges"]||[],s=0,a=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Vy(e);var n=!!e.width,r=Fv(t,e),o={"ss:Index":t+1};n&&(o["ss:Width"]=Oy(r.width)),e.hidden&&(o["ss:Hidden"]="1"),a.push(Hf("Column",null,o))}));for(var l=Array.isArray(e),u=o.s.r;u<=o.e.r;++u){for(var c=[pb(u,(e["!rows"]||[])[u])],p=o.s.c;p<=o.e.c;++p){var d=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>p||i[s].s.r>u||i[s].e.c<p||i[s].e.r<u)){i[s].s.c==p&&i[s].s.r==u||(d=!0);break}if(!d){var h={r:u,c:p},f=Bm(h),m=l?(e[u]||[])[p]:e[f];c.push(cb(m,f,e,t,0,0,h))}}c.push("</Row>"),c.length>2&&a.push(c.join(""))}return a.join("")}(i,t):"",s.length>0&&r.push("<Table>"+s+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Hf("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Hf("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Hf("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Hf("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(Bf("ProtectContents","True")),e["!protect"].objects&&o.push(Bf("ProtectObjects","True")),e["!protect"].scenarios&&o.push(Bf("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(Bf("EnableSelection","UnlockedCells")):o.push(Bf("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":Hf("WorksheetOptions",o.join(""),{xmlns:Wf.x})}(i,0,e,n)),r.join("")}function hb(e,t){t||(t={}),e.SSF||(e.SSF=vf(gh)),e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(function(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return nf(qg).map((function(e){for(var t=0;t<Dg.length;++t)if(Dg[t][1]==e)return Dg[t];for(t=0;t<Lg.length;++t)if(Lg[t][1]==e)return Lg[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var o=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),n.push(Bf(qg[r[1]]||r[1],o))}})),Hf("DocumentProperties",n.join(""),{xmlns:Wf.o})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&nf(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<Dg.length;++r)if(t==Dg[r][1])return;for(r=0;r<Lg.length;++r)if(t==Lg[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var i=e[t],s="string";"number"==typeof i?(s="float",i=String(i)):!0===i||!1===i?(s="boolean",i=i?"1":"0"):i=String(i),o.push(Hf(Rf(t),i,{"dt:dt":s}))}})),t&&nf(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],i="string";"number"==typeof r?(i="float",r=String(r)):!0===r||!1===r?(i="boolean",r=r?"1":"0"):r instanceof Date?(i="dateTime.tz",r=r.toISOString()):r=String(r),o.push(Hf(Rf(n),r,{"dt:dt":i}))}})),"<"+r+' xmlns="'+Wf.o+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Hf("Worksheet",db(r,t,e),{"ss:Name":Vf(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(Hf("NumberFormat",null,{"ss:Format":Vf(gh[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(Hf("Style",r.join(""),o))})),Hf("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var o=t[r];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||n.push(ub(o)))}return Hf("Names",n.join(""))}(e),Sf+Hf("Workbook",n.join(""),{xmlns:Wf.ss,"xmlns:o":Wf.o,"xmlns:x":Wf.x,"xmlns:ss":Wf.ss,"xmlns:dt":Wf.dt,"xmlns:html":Wf.html})}var fb={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};var mb={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var o=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=r,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=o/20),n}},1:{f:function(e){return[eg(e)]}},2:{f:function(e){return[eg(e),pg(e),"n"]}},3:{f:function(e){return[eg(e),e.read_shift(1),"e"]}},4:{f:function(e){return[eg(e),e.read_shift(1),"b"]}},5:{f:function(e){return[eg(e),gg(e),"n"]}},6:{f:function(e){return[eg(e),Jm(e),"str"]}},7:{f:function(e){return[eg(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,Jm(e),"str"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},9:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,gg(e),"n"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},10:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},11:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},12:{f:function(e){return[ng(e)]}},13:{f:function(e){return[ng(e),pg(e),"n"]}},14:{f:function(e){return[ng(e),e.read_shift(1),"e"]}},15:{f:function(e){return[ng(e),e.read_shift(1),"b"]}},16:{f:function(e){return[ng(e),gg(e),"n"]}},17:{f:function(e){return[ng(e),Jm(e),"str"]}},18:{f:function(e){return[ng(e),e.read_shift(4),"s"]}},19:{f:Xm},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var o=e.read_shift(4),i=lg(e),s=Iv(e,0,n),a=sg(e);e.l=r;var l={Name:i,Ptg:s};return o<268435455&&(l.Sheet=o),a&&(l.Comment=a),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var o=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(o.fItalic&&(r.italic=1),o.fCondense&&(r.condense=1),o.fExtend&&(r.extend=1),o.fShadow&&(r.shadow=1),o.fOutline&&(r.outline=1),o.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var i=e.read_shift(1);0!=i&&(r.underline=i);var s=e.read_shift(1);s>0&&(r.family=s);var a=e.read_shift(1);switch(a>0&&(r.charset=a),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),o=e.read_shift(2,"i"),i=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=Eg[r];l&&(t.rgb=Py(l));break;case 2:t.rgb=Py([i,s,a]);break;case 3:t.theme=r}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Jm(e),r}},44:{f:function(e,t){return[e.read_shift(2),Jm(e)]}},45:{f:Ly},46:{f:qy},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),o=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:o}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function(e,t,n){if(!n.cellStyles)return Tm(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),i=e.read_shift(r),s=e.read_shift(r),a=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:o,e:i,w:s,ixfe:a,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}},62:{f:function(e){return[eg(e),Xm(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=Bm(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Tm,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=og(e,t-19),n}},148:{f:Gv,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var o=t>8?Jm(e):"";return o.length>0&&(n.CodeName=o),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=ug(e,t-8),n.name=Jm(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:fg},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Yv},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Jm(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ug},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Kg(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,i=e.read_shift(n.biff>8?4:2);0!=i--;)r.push(ry(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,o=hg(e),i=e.read_shift(1),s=[o];if(s[2]=i,n.cellFormula){var a=Vv(e,r-e.l,n);s[1]=a}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,o=[fg(e,16)];if(n.cellFormula){var i=kv(e,r-e.l,n);o[1]=i,e.l=r}else e.l=r;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Xv.forEach((function(n){t[n]=gg(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=fg(e,16),o=sg(e),i=Jm(e),s=Jm(e),a=Jm(e);e.l=n;var l={rfx:r,relId:o,loc:i,display:a};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ug},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Yy},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=fg(e,16);return t.rfx=n.s,t.ref=Bm(n.s),e.l+=16,t}},636:{T:-1},637:{f:Zm},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Jm(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function gb(e,t,n,r){var o=t;if(!isNaN(o)){var i=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,o),s.write_shift(2,i),i>0&&hm(n)&&e.push(n)}}function yb(e,t,n){return e||(e=_m(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function vb(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?lf(gf(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?gb(e,2,function(e,t,n){var r=_m(9);return yb(r,e,t),r.write_shift(2,n),r}(n,r,o)):gb(e,3,function(e,t,n){var r=_m(15);return yb(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void gb(e,5,function(e,t,n,r){var o=_m(9);return yb(o,e,t),Yg(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void gb(e,4,function(e,t,n){var r=_m(8+2*n.length);return yb(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}gb(e,1,yb(null,n,r))}function bb(e,t,n,r,o){var i=16+qv(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)gb(e,6,function(e,t,n,r,o){var i=ny(t,n,o),s=function(e){if(null==e){var t=_m(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return yg("number"==typeof e?e:0)}(e.v),a=_m(6);a.write_shift(2,33),a.write_shift(4,0);for(var l=_m(e.bf.length),u=0;u<e.bf.length;++u)l[u]=e.bf[u];return oh([i,s,a,l])}(t,n,r,0,i));else switch(t.t){case"d":case"n":gb(e,515,function(e,t,n,r){var o=_m(14);return ny(e,t,r,o),yg(n,o),o}(n,r,"d"==t.t?lf(gf(t.v)):t.v,i));break;case"b":case"e":gb(e,517,function(e,t,n,r,o,i){var s=_m(8);return ny(e,t,r,s),Yg(n,i,s),s}(n,r,t.v,i,0,t.t));break;case"s":case"str":o.bookSST?gb(e,253,function(e,t,n,r){var o=_m(10);return ny(e,t,r,o),o.write_shift(4,n),o}(n,r,jv(o.Strings,t.v,o.revStrings),i)):gb(e,516,function(e,t,n,r,o){var i=!o||8==o.biff,s=_m(+i+8+(1+i)*n.length);return ny(e,t,r,s),s.write_shift(2,n.length),i&&s.write_shift(1,1),s.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),s}(n,r,(t.v||"").slice(0,255),i,o));break;default:gb(e,513,ny(n,r,i))}else gb(e,513,ny(n,r,i))}function Cb(e,t,n){var r,o=Vm(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=(n||{}).Workbook||{},l=(a.Sheets||[])[e]||{},u=Array.isArray(s),c=8==t.biff,p="",d=[],h=zm(s["!ref"]||"A1"),f=c?65536:16384;if(h.e.c>255||h.e.r>=f){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,f-1)}gb(o,2057,sy(0,16,t)),gb(o,13,Jg(1)),gb(o,12,Jg(100)),gb(o,15,$g(!0)),gb(o,17,$g(!1)),gb(o,16,yg(.001)),gb(o,95,$g(!0)),gb(o,42,$g(!1)),gb(o,43,$g(!1)),gb(o,130,Jg(1)),gb(o,128,function(e){var t=_m(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}([0,0])),gb(o,131,$g(!1)),gb(o,132,$g(!1)),c&&function(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&gb(e,125,function(e,t){var n=_m(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(Fv(r,t),r))}))}}(o,s["!cols"]),gb(o,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=_m(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(h,t)),c&&(s["!links"]=[]);for(var m=h.s.r;m<=h.e.r;++m){p=Mm(m);for(var g=h.s.c;g<=h.e.c;++g){m===h.s.r&&(d[g]=jm(g)),r=d[g]+p;var y=u?(s[m]||[])[g]:s[r];y&&(bb(o,y,m,g,t),c&&y.l&&s["!links"].push([r,y.l]))}}var v=l.CodeName||l.name||i;return c&&gb(o,574,function(e){var t=_m(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((a.Views||[])[0])),c&&(s["!merges"]||[]).length&&gb(o,229,function(e){var t=_m(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)iy(e[n],t);return t}(s["!merges"])),c&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];gb(e,440,cy(r)),r[1].Tooltip&&gb(e,2048,py(r))}delete t["!links"]}(o,s),gb(o,442,Zg(v)),c&&function(e,t){var n=_m(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),gb(e,2151,n),(n=_m(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),iy(zm(t["!ref"]||"A1"),n),n.write_shift(4,4),gb(e,2152,n)}(o,s),gb(o,10),o.end()}function wb(e,t,n){var r=Vm(),o=(e||{}).Workbook||{},i=o.Sheets||[],s=o.WBProps||{},a=8==n.biff,l=5==n.biff;gb(r,2057,sy(0,5,n)),"xla"==n.bookType&&gb(r,135),gb(r,225,a?Jg(1200):null),gb(r,193,function(e,t){t||(t=_m(2));for(var n=0;n<2;++n)t.write_shift(1,0);return t}()),l&&gb(r,191),l&&gb(r,192),gb(r,226),gb(r,92,function(e,t){var n=!t||8==t.biff,r=_m(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),gb(r,66,Jg(a?1200:1252)),a&&gb(r,353,Jg(0)),a&&gb(r,448),gb(r,317,function(e){for(var t=_m(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),a&&e.vbaraw&&gb(r,211),a&&e.vbaraw&&gb(r,442,Zg(s.CodeName||"ThisWorkbook")),gb(r,156,Jg(17)),gb(r,25,$g(!1)),gb(r,18,$g(!1)),gb(r,19,Jg(0)),a&&gb(r,431,$g(!1)),a&&gb(r,444,Jg(0)),gb(r,61,function(){var e=_m(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}()),gb(r,64,$g(!1)),gb(r,141,Jg(0)),gb(r,34,$g("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&function(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(e.Workbook.WBProps.date1904)?"true":"false"}(e))),gb(r,14,$g(!0)),a&&gb(r,439,$g(!1)),gb(r,218,Jg(0)),function(e,t,n){gb(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,o=_m(r?15+n.length:16+2*n.length);return o.write_shift(2,20*(e.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}(r,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var o=r[0];o<=r[1];++o)null!=t[o]&&gb(e,1054,ly(o,t[o],n))}))}(r,e.SSF,n),function(e,t){for(var n=0;n<16;++n)gb(e,224,uy({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){gb(e,224,uy(n,0,t))}))}(r,n),a&&gb(r,352,$g(!1));var u=r.end(),c=Vm();a&&gb(c,140,function(e){return e||(e=_m(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),a&&n.Strings&&function(e,t,n,r){var o=(n||[]).length||0;if(o<=8224)return gb(e,252,n,o);if(!isNaN(252)){for(var i=n.parts||[],s=0,a=0,l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,252),u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l;a<o;){for((u=e.next(4)).write_shift(2,60),l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l}}}(c,0,function(e,t){var n=_m(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],o=0;o<e.length;++o)r[o]=Xg(e[o]);var i=oh([n].concat(r));return i.parts=[n.length].concat(r.map((function(e){return e.length}))),i}(n.Strings)),gb(c,10);var p=c.end(),d=Vm(),h=0,f=0;for(f=0;f<e.SheetNames.length;++f)h+=(a?12:11)+(a?2:1)*e.SheetNames[f].length;var m=u.length+h+p.length;for(f=0;f<e.SheetNames.length;++f)gb(d,133,ay({pos:m,hs:(i[f]||{}).Hidden||0,dt:0,name:e.SheetNames[f]},n)),m+=t[f].length;var g=d.end();if(h!=g.length)throw new Error("BS8 "+h+" != "+g.length);var y=[];return u.length&&y.push(u),g.length&&y.push(g),p.length&&y.push(p),oh(y)}function xb(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r["!ref"]&&qm(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}var o=t||{};switch(o.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),n.revssf=sf(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Yb(n),n.cellXfs=[],qv(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)r[r.length]=Cb(o,n,e);return r.unshift(wb(e,r,n)),oh(r)}(e,t);case 4:case 3:case 2:return function(e,t){var n=t||{};null!=$d&&null==n.dense&&(n.dense=$d);for(var r=Vm(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return gb(r,4==n.biff?1033:3==n.biff?521:9,sy(0,16,n)),function(e,t,n,r){var o,i=Array.isArray(t),s=zm(t["!ref"]||"A1"),a="",l=[];if(s.e.c>255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Hm(s)}for(var u=s.s.r;u<=s.e.r;++u){a=Mm(u);for(var c=s.s.c;c<=s.e.c;++c){u===s.s.r&&(l[c]=jm(c)),o=l[c]+a;var p=i?(t[u]||[])[c]:t[o];p&&vb(e,p,u,c)}}}(r,e.Sheets[e.SheetNames[o]],0,n),gb(r,10),r.end()}(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function Eb(e,t,n,r){for(var o=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var a=0,l=0,u=0;u<o.length;++u)if(!(o[u].s.r>n||o[u].s.c>s||o[u].e.r<n||o[u].e.c<s)){if(o[u].s.r<n||o[u].s.c<s){a=-1;break}a=o[u].e.r-o[u].s.r+1,l=o[u].e.c-o[u].s.c+1;break}if(!(a<0)){var c=Bm({r:n,c:s}),p=r.dense?(e[n]||[])[s]:e[c],d=p&&null!=p.v&&(p.h||((p.w||(Qm(p),p.w)||"")+"").replace(Tf,(function(e){return Of[e]})).replace(/\n/g,"<br/>").replace(If,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})))||"",h={};a>1&&(h.rowspan=a),l>1&&(h.colspan=l),r.editable?d='<span contenteditable="true">'+d+"</span>":p&&(h["data-t"]=p&&p.t||"z",null!=p.v&&(h["data-v"]=p.v),null!=p.z&&(h["data-z"]=p.z),p.l&&"#"!=(p.l.Target||"#").charAt(0)&&(d='<a href="'+p.l.Target+'">'+d+"</a>")),h.id=(r.id||"sjs")+"-"+c,i.push(Hf("td",d,h))}}return"<tr>"+i.join("")+"</tr>"}var Pb='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Sb="</body></html>";function Ob(e,t){var n=t||{},r=null!=n.header?n.header:Pb,o=null!=n.footer?n.footer:Sb,i=[r],s=qm(e["!ref"]);n.dense=Array.isArray(e),i.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var a=s.s.r;a<=s.e.r;++a)i.push(Eb(e,s,a,n));return i.push("</table>"+o),i.join("")}function Tb(e,t,n){var r=n||{};null!=$d&&(r.dense=$d);var o=0,i=0;if(null!=r.origin)if("number"==typeof r.origin)o=r.origin;else{var s="string"==typeof r.origin?Fm(r.origin):r.origin;o=s.r,i=s.c}var a=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,a.length),u={s:{r:0,c:0},e:{r:o,c:i}};if(e["!ref"]){var c=qm(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==o&&(u.e.r=o=c.e.r+1)}var p=[],d=0,h=e["!rows"]||(e["!rows"]=[]),f=0,m=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);f<a.length&&m<l;++f){var C=a[f];if(Vb(C)){if(r.display)continue;h[m]={hidden:!0}}var w=C.children;for(g=y=0;g<w.length;++g){var x=w[g];if(!r.display||!Vb(x)){var E=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):jf(x.innerHTML),P=x.getAttribute("data-z")||x.getAttribute("z");for(d=0;d<p.length;++d){var S=p[d];S.s.c==y+i&&S.s.r<m+o&&m+o<=S.e.r&&(y=S.e.c+1-i,d=-1)}b=+x.getAttribute("colspan")||1,((v=+x.getAttribute("rowspan")||1)>1||b>1)&&p.push({s:{r:m+o,c:y+i},e:{r:m+o+(v||1)-1,c:y+i+(b||1)-1}});var O={t:"s",v:E},T=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=E&&(0==E.length?O.t=T||"z":r.raw||0==E.trim().length||"s"==T||("TRUE"===E?O={t:"b",v:!0}:"FALSE"===E?O={t:"b",v:!1}:isNaN(Cf(E))?isNaN(xf(E).getDate())||(O={t:"d",v:gf(E)},r.cellDates||(O={t:"n",v:lf(O.v)}),O.z=r.dateNF||gh[14]):O={t:"n",v:Cf(E)})),void 0===O.z&&null!=P&&(O.z=P);var _="",V=x.getElementsByTagName("A");if(V&&V.length)for(var R=0;R<V.length&&(!V[R].hasAttribute("href")||"#"==(_=V[R].getAttribute("href")).charAt(0));++R);_&&"#"!=_.charAt(0)&&(O.l={Target:_}),r.dense?(e[m+o]||(e[m+o]=[]),e[m+o][y+i]=O):e[Bm({c:y+i,r:m+o})]=O,u.e.c<y+i&&(u.e.c=y+i),y+=b}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),u.e.r=Math.max(u.e.r,m-1+o),e["!ref"]=Hm(u),m>=l&&(e["!fullref"]=Hm((u.e.r=a.length-f+m-1+o,u))),e}function _b(e,t){return Tb((t||{}).dense?[]:{},e,t)}function Vb(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var Rb=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+qf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Sf+t}}(),Ib=function(){var e=" <table:table-cell />\n",t=function(t,n,r){var o=[];o.push(' <table:table table:name="'+Vf(n.SheetNames[r])+'" table:style-name="ta1">\n');var i=0,s=0,a=qm(t["!ref"]||"A1"),l=t["!merges"]||[],u=0,c=Array.isArray(t);if(t["!cols"])for(s=0;s<=a.e.c;++s)o.push(" <table:table-column"+(t["!cols"][s]?' table:style-name="co'+t["!cols"][s].ods+'"':"")+"></table:table-column>\n");var p,d="",h=t["!rows"]||[];for(i=0;i<a.s.r;++i)d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push(" <table:table-row"+d+"></table:table-row>\n");for(;i<=a.e.r;++i){for(d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push(" <table:table-row"+d+">\n"),s=0;s<a.s.c;++s)o.push(e);for(;s<=a.e.c;++s){var f=!1,m={},g="";for(u=0;u!=l.length;++u)if(!(l[u].s.c>s||l[u].s.r>i||l[u].e.c<s||l[u].e.r<i)){l[u].s.c==s&&l[u].s.r==i||(f=!0),m["table:number-columns-spanned"]=l[u].e.c-l[u].s.c+1,m["table:number-rows-spanned"]=l[u].e.r-l[u].s.r+1;break}if(f)o.push(" <table:covered-table-cell/>\n");else{var y=Bm({r:i,c:s}),v=c?(t[i]||[])[s]:t[y];if(v&&v.f&&(m["table:formula"]=Vf(Mv(v.f)),v.F&&v.F.slice(0,y.length)==y)){var b=qm(v.F);m["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,m["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":g=v.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=v.v?"true":"false";break;case"n":g=v.w||String(v.v||0),m["office:value-type"]="float",m["office:value"]=v.v||0;break;case"s":case"str":g=null==v.v?"":v.v,m["office:value-type"]="string";break;case"d":g=v.w||gf(v.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=gf(v.v).toISOString(),m["table:style-name"]="ce1";break;default:o.push(e);continue}var C=Vf(g).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var w=v.l.Target;"#"==(w="#"==w.charAt(0)?"#"+(p=w.slice(1),p.replace(/\./,"!")):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),C=Hf("text:a",C,{"xlink:href":w.replace(/&/g,"&")})}o.push(" "+Hf("table:table-cell",Hf("text:p",C,{}),m)+"\n")}else o.push(e)}}o.push(" </table:table-row>\n")}return o.push(" </table:table>\n"),o.join("")};return function(e,n){var r=[Sf],o=qf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=qf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+o+i+">\n"),r.push(Ag().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;Vy(o),o.ods=n;var i=t["!cols"][r].wpx+"px";e.push(' <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push(" </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push(' <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push(" </style:style>\n"),++r}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push(" <office:body>\n"),r.push(" <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)r.push(t(e.Sheets[e.SheetNames[s]],e,s));return r.push(" </office:spreadsheet>\n"),r.push(" </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function kb(e,t){if("fods"==t.bookType)return Ib(e,t);var n=Pf(),r="",o=[],i=[];return Ef(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Ef(n,r="content.xml",Ib(e,t)),o.push([r,"text/xml"]),i.push([r,"ContentFile"]),Ef(n,r="styles.xml",Rb(e,t)),o.push([r,"text/xml"]),i.push([r,"StylesFile"]),Ef(n,r="meta.xml",Sf+Ag()),o.push([r,"text/xml"]),i.push([r,"MetadataFile"]),Ef(n,r="manifest.rdf",function(e){var t=[Sf];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(kg(e[n][0],e[n][1])),t.push([' <rdf:Description rdf:about="">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e[n][0]+'"/>\n'," </rdf:Description>\n"].join(""));return t.push(kg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(i)),o.push([r,"application/rdf+xml"]),Ef(n,r="META-INF/manifest.xml",function(e){var t=[Sf];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push(' <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function Ab(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Db(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):th(Lf(e))}function Nb(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Mb(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Lb(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function jb(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Fb(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],i=Mb(e,n),s=7&i,a=0;if(0==(i=Math.floor(i/8)))break;switch(s){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:a=4,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 1:a=8,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 2:a=Mb(e,n),r=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(o))}var u={data:r,type:s};null==t[i]?t[i]=[u]:t[i].push(u)}return t}function Bb(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(Lb(8*n+e.type)),2==e.type&&t.push(Lb(e.data.length)),t.push(e.data))}))})),Nb(t)}function qb(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Mb(e,r),i=Fb(e.slice(r[0],r[0]+o));r[0]+=o;var s={id:jb(i[1][0].data),messages:[]};i[2].forEach((function(t){var n=Fb(t.data),o=jb(n[3][0].data);s.messages.push({meta:n,data:e.slice(r[0],r[0]+o)}),r[0]+=o})),(null==(t=i[3])?void 0:t[0])&&(s.merge=jb(i[3][0].data)>>>0>0),n.push(s)}return n}function Hb(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:Lb(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:Lb(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:Lb(e.data.length)}],n[2].push({data:Bb(e.meta),type:2})}));var o=Bb(n);t.push(Lb(o.length)),t.push(o),r.forEach((function(e){return t.push(e)}))})),Nb(t)}function zb(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Mb(t,n),o=[];n[0]<t.length;){var i=3&t[n[0]];if(0!=i){var s=0,a=0;if(1==i?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==i?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[Nb(o)],0==s)throw new Error("Invalid offset 0");if(s>o[0].length)throw new Error("Invalid offset beyond length");if(a>=s)for(o.push(o[0].slice(-s)),a-=s;a>=o[o.length-1].length;)o.push(o[o.length-1]),a-=o[o.length-1].length;o.push(o[0].slice(-s,-s+a))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}o.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=Nb(o);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function Qb(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(zb(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Nb(t)}function Ub(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var i=Lb(r),s=i.length;t.push(i),r<=60?(s++,t.push(new Uint8Array([r-1<<2]))):r<=256?(s+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(s+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,o[0]=0,o[1]=255&s,o[2]=s>>8&255,o[3]=s>>16&255,n+=r}return Nb(t)}function Wb(e,t){var n=new Uint8Array(32),r=Ab(n),o=12,i=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),i|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),i|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,i,!0),n.slice(0,o)}function $b(e,t){var n=new Uint8Array(32),r=Ab(n),o=12,i=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),i|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),i|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,i,!0),n.slice(0,o)}function Gb(e){return Mb(Fb(e)[1][0].data)}function Jb(e,t,n){var r,o,i,s;if(!(null==(r=e[6])?void 0:r[0])||!(null==(o=e[7])?void 0:o[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(i=e[8])?void 0:i[0])?void 0:s.data)&&jb(e[8][0].data)>0)throw"Math only works with normal offsets";for(var a=0,l=Ab(e[7][0].data),u=0,c=[],p=Ab(e[4][0].data),d=0,h=[],f=0;f<t.length;++f)if(null!=t[f]){var m,g;switch(l.setUint16(2*f,u,!0),p.setUint16(2*f,d,!0),typeof t[f]){case"string":m=Wb({t:"s",v:t[f]},n),g=$b({t:"s",v:t[f]},n);break;case"number":m=Wb({t:"n",v:t[f]},n),g=$b({t:"n",v:t[f]},n);break;case"boolean":m=Wb({t:"b",v:t[f]},n),g=$b({t:"b",v:t[f]},n);break;default:throw new Error("Unsupported value "+t[f])}c.push(m),u+=m.length,h.push(g),d+=g.length,++a}else l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535);for(e[2][0].data=Lb(a);f<e[7][0].data.length/2;++f)l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535,!0);return e[6][0].data=Nb(c),e[3][0].data=Nb(h),a}function Yb(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Kb(e,t){return"ods"==t.bookType?kb(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=qm(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Hm(r)));var i=rC(n,{range:r,header:1}),s=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&s.push(e)}))}));var a={},l=[],u=Xh.read(t.numbers,{type:"base64"});u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&qb(Qb(t.content)).forEach((function(e){l.push(e.id),a[e.id]={deps:[],location:n,type:jb(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var c=l.filter((function(e){return e>1})).map((function(e){return[e,Lb(e)]}));u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&qb(Qb(t.content)).forEach((function(e){e.messages.forEach((function(t){c.forEach((function(t){e.messages.some((function(e){return 11006!=jb(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])}))&&a[t[0]].deps.push(e.id)}))}))}))}));for(var p,d=Xh.find(u,a[1].location),h=qb(Qb(d.content)),f=0;f<h.length;++f){var m=h[f];1==m.id&&(p=m)}var g=Gb(Fb(p.messages[0].data)[1][0].data);for(h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Gb(Fb(p.messages[0].data)[2][0].data),h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Gb(Fb(p.messages[0].data)[2][0].data),h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);var y=Fb(p.messages[0].data);y[6][0].data=Lb(r.e.r+1),y[7][0].data=Lb(r.e.c+1);for(var v=Gb(y[46][0].data),b=Xh.find(u,a[v].location),C=qb(Qb(b.content)),w=0;w<C.length&&C[w].id!=v;++w);if(C[w].id!=v)throw"Bad ColumnRowUIDMapArchive";var x=Fb(C[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var E=0;E<=r.e.c;++E){var P=[];P[1]=P[2]=[{type:0,data:Lb(E+420690)}],x[1].push({type:2,data:Bb(P)}),x[2].push({type:0,data:Lb(E)}),x[3].push({type:0,data:Lb(E)})}x[4]=[],x[5]=[],x[6]=[];for(var S=0;S<=r.e.r;++S)(P=[])[1]=P[2]=[{type:0,data:Lb(S+726270)}],x[4].push({type:2,data:Bb(P)}),x[5].push({type:0,data:Lb(S)}),x[6].push({type:0,data:Lb(S)});C[w].messages[0].data=Bb(x),b.content=Ub(Hb(C)),b.size=b.content.length,delete y[46];var O=Fb(y[4][0].data);O[7][0].data=Lb(r.e.r+1);var T=Gb(Fb(O[1][0].data)[2][0].data);if((C=qb(Qb((b=Xh.find(u,a[T].location)).content)))[0].id!=T)throw"Bad HeaderStorageBucket";var _=Fb(C[0].messages[0].data);for(S=0;S<i.length;++S){var V=Fb(_[2][0].data);V[1][0].data=Lb(S),V[4][0].data=Lb(i[S].length),_[2][S]={type:_[2][0].type,data:Bb(V)}}C[0].messages[0].data=Bb(_),b.content=Ub(Hb(C)),b.size=b.content.length;var R=Gb(O[2][0].data);if((C=qb(Qb((b=Xh.find(u,a[R].location)).content)))[0].id!=R)throw"Bad HeaderStorageBucket";for(_=Fb(C[0].messages[0].data),E=0;E<=r.e.c;++E)(V=Fb(_[2][0].data))[1][0].data=Lb(E),V[4][0].data=Lb(r.e.r+1),_[2][E]={type:_[2][0].type,data:Bb(V)};C[0].messages[0].data=Bb(_),b.content=Ub(Hb(C)),b.size=b.content.length;var I=Gb(O[4][0].data);!function(){for(var e,t=Xh.find(u,a[I].location),n=qb(Qb(t.content)),r=0;r<n.length;++r){var o=n[r];o.id==I&&(e=o)}var i=Fb(e.messages[0].data);i[3]=[];var l=[];s.forEach((function(e,t){l[1]=[{type:0,data:Lb(t)}],l[2]=[{type:0,data:Lb(1)}],l[3]=[{type:2,data:Db(e)}],i[3].push({type:2,data:Bb(l)})})),e.messages[0].data=Bb(i);var c=Ub(Hb(n));t.content=c,t.size=t.content.length}();var k=Fb(O[3][0].data),A=k[1][0];delete k[2];var D=Fb(A.data),N=Gb(D[2][0].data);!function(){for(var e,t=Xh.find(u,a[N].location),n=qb(Qb(t.content)),o=0;o<n.length;++o){var l=n[o];l.id==N&&(e=l)}var c=Fb(e.messages[0].data);delete c[6],delete k[7];var p=new Uint8Array(c[5][0].data);c[5]=[];for(var d=0,h=0;h<=r.e.r;++h){var f=Fb(p);d+=Jb(f,i[h],s),f[1][0].data=Lb(h),c[5].push({data:Bb(f),type:2})}c[1]=[{type:0,data:Lb(r.e.c+1)}],c[2]=[{type:0,data:Lb(r.e.r+1)}],c[3]=[{type:0,data:Lb(d)}],c[4]=[{type:0,data:Lb(r.e.r+1)}],e.messages[0].data=Bb(c);var m=Ub(Hb(n));t.content=m,t.size=t.content.length}(),A.data=Bb(D),O[3][0].data=Bb(k),y[4][0].data=Bb(O),p.messages[0].data=Bb(y);var M=Ub(Hb(h));return d.content=M,d.size=d.content.length,u}(e,t):"xlsb"==t.bookType?function(e,t){Wy=1024,e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Lv?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=Xy.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Yb(t=t||{});var i=Pf(),s="",a=0;if(t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Ef(i,s="docProps/core.xml",Mg(e.Props,t)),o.coreprops.push(s),Ig(t.rels,2,s,_g.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,Ef(i,s,Fg(e.Props)),o.extprops.push(s),Ig(t.rels,3,s,_g.EXT_PROPS),e.Custprops!==e.Props&&nf(e.Custprops||{}).length>0&&(Ef(i,s="docProps/custom.xml",Bg(e.Custprops)),o.custprops.push(s),Ig(t.rels,4,s,_g.CUST_PROPS)),a=1;a<=e.SheetNames.length;++a){var c={"!id":{}},p=e.Sheets[e.SheetNames[a-1]];if((p||{})["!type"],Ef(i,s="xl/worksheets/sheet"+a+"."+n,ab(a-1,s,t,e,c)),o.sheets.push(s),Ig(t.wbrels,-1,"worksheets/sheet"+a+"."+n,_g.WS[0]),p){var d=p["!comments"],h=!1,f="";d&&d.length>0&&(Ef(i,f="xl/comments"+a+"."+n,lb(d,f,t)),o.comments.push(f),Ig(c,-1,"../comments"+a+"."+n,_g.CMNT),h=!0),p["!legacy"]&&h&&Ef(i,"xl/drawings/vmlDrawing"+a+".vml",$y(a,p["!comments"])),delete p["!comments"],delete p["!legacy"]}c["!id"].rId1&&Ef(i,Vg(s),Rg(c))}return null!=t.Strings&&t.Strings.length>0&&(Ef(i,s="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?wy:by)(e,n)}(t.Strings,s,t)),o.strs.push(s),Ig(t.wbrels,-1,"sharedStrings."+n,_g.SST)),Ef(i,s="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?sb:ob)(e,n)}(e,s,t)),o.workbooks.push(s),Ig(t.rels,1,s,_g.WB),Ef(i,s="xl/theme/theme1.xml",zy(e.Themes,t)),o.themes.push(s),Ig(t.wbrels,-1,"theme/theme1.xml",_g.THEME),Ef(i,s="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?Hy:Ay)(e,n)}(e,s,t)),o.styles.push(s),Ig(t.wbrels,-1,"styles."+n,_g.STY),e.vbaraw&&r&&(Ef(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),Ig(t.wbrels,-1,"vbaProject.bin",_g.VBA)),Ef(i,s="xl/metadata."+n,(".bin"===s.slice(-4)?Qy:Uy)()),o.metadata.push(s),Ig(t.wbrels,-1,"metadata."+n,_g.XLMETA),Ef(i,"[Content_Types].xml",Tg(o,t)),Ef(i,"_rels/.rels",Rg(t.rels)),Ef(i,"xl/_rels/workbook."+n+".rels",Rg(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):function(e,t){Wy=1024,e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Lv?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=Xy.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Yb(t=t||{});var i=Pf(),s="",a=0;if(t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Ef(i,s="docProps/core.xml",Mg(e.Props,t)),o.coreprops.push(s),Ig(t.rels,2,s,_g.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Ef(i,s,Fg(e.Props)),o.extprops.push(s),Ig(t.rels,3,s,_g.EXT_PROPS),e.Custprops!==e.Props&&nf(e.Custprops||{}).length>0&&(Ef(i,s="docProps/custom.xml",Bg(e.Custprops)),o.custprops.push(s),Ig(t.rels,4,s,_g.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,a=1;a<=e.SheetNames.length;++a){var p={"!id":{}},d=e.Sheets[e.SheetNames[a-1]];if((d||{})["!type"],Ef(i,s="xl/worksheets/sheet"+a+"."+n,Wv(a-1,t,e,p)),o.sheets.push(s),Ig(t.wbrels,-1,"worksheets/sheet"+a+"."+n,_g.WS[0]),d){var h=d["!comments"],f=!1,m="";if(h&&h.length>0){var g=!1;h.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(Ef(i,m="xl/threadedComments/threadedComment"+a+"."+n,Jy(h,c,t)),o.threadedcomments.push(m),Ig(p,-1,"../threadedComments/threadedComment"+a+"."+n,_g.TCMNT)),Ef(i,m="xl/comments"+a+"."+n,Gy(h)),o.comments.push(m),Ig(p,-1,"../comments"+a+"."+n,_g.CMNT),f=!0}d["!legacy"]&&f&&Ef(i,"xl/drawings/vmlDrawing"+a+".vml",$y(a,d["!comments"])),delete d["!comments"],delete d["!legacy"]}p["!id"].rId1&&Ef(i,Vg(s),Rg(p))}return null!=t.Strings&&t.Strings.length>0&&(Ef(i,s="xl/sharedStrings."+n,by(t.Strings,t)),o.strs.push(s),Ig(t.wbrels,-1,"sharedStrings."+n,_g.SST)),Ef(i,s="xl/workbook."+n,ob(e)),o.workbooks.push(s),Ig(t.rels,1,s,_g.WB),Ef(i,s="xl/theme/theme1.xml",zy(e.Themes,t)),o.themes.push(s),Ig(t.wbrels,-1,"theme/theme1.xml",_g.THEME),Ef(i,s="xl/styles."+n,Ay(e,t)),o.styles.push(s),Ig(t.wbrels,-1,"styles."+n,_g.STY),e.vbaraw&&r&&(Ef(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),Ig(t.wbrels,-1,"vbaProject.bin",_g.VBA)),Ef(i,s="xl/metadata."+n,Uy()),o.metadata.push(s),Ig(t.wbrels,-1,"metadata."+n,_g.XLMETA),c.length>1&&(Ef(i,s="xl/persons/person.xml",function(e){var t=[Sf,Hf("personList",null,{xmlns:Qf.TCMNT,"xmlns:x":Uf[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Hf("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(c)),o.people.push(s),Ig(t.wbrels,-1,"persons/person.xml",_g.PEOPLE)),Ef(i,"[Content_Types].xml",Tg(o,t)),Ef(i,"_rels/.rels",Rg(t.rels)),Ef(i,"xl/_rels/workbook.xml.rels",Rg(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t)}function Xb(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return tf(t.file,Xh.write(e,{type:Kd?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Xh.write(e,t)}function Zb(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return Jd(Lf(r));case"binary":return Lf(r);case"string":return e;case"file":return tf(t.file,r,"utf8");case"buffer":return Kd?Xd(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):Zb(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function eC(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?Jd(n):"string"==t.type?Mf(n):n;case"file":return tf(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function tC(e,t){zd(1200),Hd(1252),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,n){e.forEach((function(r,o){rb(r);for(var i=0;i<o;++i)if(r==e[i])throw new Error("Duplicate Sheet Name: "+r);if(n){var s=t&&t[o]&&t[o].CodeName||r;if(95==s.charCodeAt(0)&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}}))}(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)Hv(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}(e);var n=vf(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=tC(e,n);return n.type="array",nh(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Zb(hb(e,n),n);case"slk":case"sylk":return Zb(hy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return Zb(Ob(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return Jd(e);case"binary":case"string":return e;case"file":return tf(t.file,e,"binary");case"buffer":return Kd?Xd(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(aC(e.Sheets[e.SheetNames[o]],n),n);case"csv":return Zb(sC(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return Zb(fy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return eC(dy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return Zb(gy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return Zb(Ey.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return Zb(my.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return Zb(kb(e,n),n);case"wk1":return eC(yy.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return eC(yy.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),eC(xb(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return Xb(function(e,t){var n=t||{},r=Xh.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Xh.utils.cfb_add(r,o,xb(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],i=[],s=0,a=rf(Cg,"n"),l=rf(wg,"n");if(e.Props)for(n=nf(e.Props),s=0;s<n.length;++s)(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Props[n[s]]]);if(e.Custprops)for(n=nf(e.Custprops),s=0;s<n.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},n[s])||(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Custprops[n[s]]]);var u=[];for(s=0;s<i.length;++s)zg.indexOf(i[s][0])>-1||jg.indexOf(i[s][0])>-1||null!=i[s][1]&&u.push(i[s]);o.length&&Xh.utils.cfb_add(t,"/SummaryInformation",Wg(o,fb.SI,l,wg)),(r.length||u.length)&&Xh.utils.cfb_add(t,"/DocumentSummaryInformation",Wg(r,fb.DSI,a,Cg,u.length?u:null,fb.UDI))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var o=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&Xh.utils.cfb_add(e,o,t.FileIndex[r].content)}}))}(r,Xh.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=vf(t||{});return function(e,t){var n={},r=Kd?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?Xh.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(nh(o))}return t.password&&"undefined"!=typeof encrypt_agile?Xb(encrypt_agile(o,t.password),t):"file"===t.type?tf(t.file,o):"string"==t.type?Mf(o):o}(Kb(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function nC(e,t,n,r,o,i,s,a){var l=Mm(n),u=a.defval,c=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),p=!0,d=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(e){d.__rowNum__=n}else d.__rowNum__=n;if(!s||e[n])for(var h=t.s.c;h<=t.e.c;++h){var f=s?e[n][h]:e[r[h]+l];if(void 0!==f&&void 0!==f.t){var m=f.v;switch(f.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+f.t)}if(null!=i[h]){if(null==m)if("e"==f.t&&null===m)d[i[h]]=null;else if(void 0!==u)d[i[h]]=u;else{if(!c||null!==m)continue;d[i[h]]=null}else d[i[h]]=c&&("n"!==f.t||"n"===f.t&&!1!==a.rawNumbers)?m:Qm(f,m,a);null!=m&&(p=!1)}}else{if(void 0===u)continue;null!=i[h]&&(d[i[h]]=u)}}return{row:d,isempty:p}}function rC(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,o=1,i=[],s=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=zm(c);break;case"number":(l=zm(e["!ref"])).s.r=c;break;default:l=c}r>0&&(o=0);var p=Mm(l.s.r),d=[],h=[],f=0,m=0,g=Array.isArray(e),y=l.s.r,v=0,b={};g&&!e[y]&&(e[y]=[]);var C=u.skipHidden&&e["!cols"]||[],w=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(C[v]||{}).hidden)switch(d[v]=jm(v),n=g?e[y][v]:e[d[v]+p],r){case 1:i[v]=v-l.s.c;break;case 2:i[v]=d[v];break;case 3:i[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),a=s=Qm(n,null,u),m=b[s]||0){do{a=s+"_"+m++}while(b[a]);b[s]=m,b[a]=1}else b[s]=1;i[v]=a}for(y=l.s.r+o;y<=l.e.r;++y)if(!(w[y]||{}).hidden){var x=nC(e,l,y,d,r,i,g,u);(!1===x.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(h[f++]=x.row)}return h.length=f,h}var oC=/"/g;function iC(e,t,n,r,o,i,s,a){for(var l=!0,u=[],c="",p=Mm(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var h=a.dense?(e[n]||[])[d]:e[r[d]+p];if(null==h)c="";else if(null!=h.v){l=!1,c=""+(a.rawNumbers&&"n"==h.t?h.v:Qm(h,null,a));for(var f=0,m=0;f!==c.length;++f)if((m=c.charCodeAt(f))===o||m===i||34===m||a.forceQuotes){c='"'+c.replace(oC,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==h.f||h.F?c="":(l=!1,(c="="+h.f).indexOf(",")>=0&&(c='"'+c.replace(oC,'""')+'"'));u.push(c)}return!1===a.blankrows&&l?null:u.join(s)}function sC(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=zm(e["!ref"]),i=void 0!==r.FS?r.FS:",",s=i.charCodeAt(0),a=void 0!==r.RS?r.RS:"\n",l=a.charCodeAt(0),u=new RegExp(("|"==i?"\\|":i)+"+$"),c="",p=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],h=r.skipHidden&&e["!rows"]||[],f=o.s.c;f<=o.e.c;++f)(d[f]||{}).hidden||(p[f]=jm(f));for(var m=0,g=o.s.r;g<=o.e.r;++g)(h[g]||{}).hidden||null!=(c=iC(e,o,g,p,s,l,i,r))&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?a:"")+c));return delete r.dense,n.join("")}function aC(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=sC(e,t);if(void 0===Qd||"string"==t.type)return n;var r=Qd.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function lC(e,t,n){var r,o=n||{},i=+!o.skipHeader,s=e||{},a=0,l=0;if(s&&null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var u="string"==typeof o.origin?Fm(o.origin):o.origin;a=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:a+t.length-1+i}};if(s["!ref"]){var p=zm(s["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),-1==a&&(a=p.e.r+1,c.e.r=a+t.length-1+i)}else-1==a&&(a=0,c.e.r=t.length-1+i);var d=o.header||[],h=0;t.forEach((function(e,t){nf(e).forEach((function(n){-1==(h=d.indexOf(n))&&(d[h=d.length]=n);var u=e[n],c="z",p="",f=Bm({c:l+h,r:a+t+i});r=uC(s,f),!u||"object"!=typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",o.cellDates||(c="n",u=lf(u)),p=o.dateNF||gh[14]):null===u&&o.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,p&&(r.z=p)):s[f]=r={t:c,v:u},p&&(r.z=p)):s[f]=u}))})),c.e.c=Math.max(c.e.c,l+d.length-1);var f=Mm(a);if(i)for(h=0;h<d.length;++h)s[jm(h+l)+f]={t:"s",v:d[h]};return s["!ref"]=Hm(c),s}function uC(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=Fm(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return uC(e,Bm("number"!=typeof t?t:{r:t,c:n||0}))}function cC(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var pC={encode_col:jm,encode_row:Mm,encode_cell:Bm,encode_range:Hm,decode_col:Lm,decode_row:Nm,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Fm,decode_range:qm,format_cell:Qm,sheet_add_aoa:Wm,sheet_add_json:lC,sheet_add_dom:Tb,aoa_to_sheet:$m,json_to_sheet:function(e,t){return lC(null,e,t)},table_to_sheet:_b,table_to_book:function(e,t){return Um(_b(e,t),t)},sheet_to_csv:sC,sheet_to_txt:aC,sheet_to_json:rC,sheet_to_html:Ob,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,i=zm(e["!ref"]),s="",a=[],l=[],u=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)a[o]=jm(o);for(var c=i.s.r;c<=i.e.r;++c)for(s=Mm(c),o=i.s.c;o<=i.e.c;++o)if(n=a[o]+s,r="",void 0!==(t=u?(e[c]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l},sheet_to_row_object_array:rC,sheet_get_cell:uC,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function(e,t,n,r){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);o=i&&+i[2]||0;var s=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=s+o);++o);}if(rb(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n},book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:cC,cell_set_internal_link:function(e,t,n){return cC(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:zm(t),i="string"==typeof t?t:Hm(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=uC(e,s,a);l.t="n",l.F=i,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function dC(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}Ld.version;const hC=function(e){var n=e.data,r=e.filename,o=e.exportType,i="downloadbutton";return o===_r.CSV?i+=" downloadcsv":o===_r.EXCEL&&(i+=" downloadexcel"),t.createElement("button",{className:i,onClick:function(){var e,t,i;switch(o){case _r.EXCEL:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sheet1",n=pC.json_to_sheet(e),r=pC.book_new();pC.book_append_sheet(r,n,t);for(var o=tC(r,{bookType:"xlsx",type:"binary"}),i=new ArrayBuffer(o.length),s=new Uint8Array(i),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);return new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}(n),t="xlsx",i="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break;case _r.CSV:default:e=function(e){if(!e.length)return"";var t=Object.keys(e[0]),n=function(e,t){return e.map((function(e){return t.map((function(t){var n=e[t];return null===n?"":"string"==typeof n?'"'.concat(n.replace(/"/g,'""'),'"'):n})).join(",")}))}(e,t);return[t.join(",")].concat(Kt(n)).join("\r\n")}(n),t="csv",i="text/csv;charset=UTF-8"}var s=new Blob([e],{type:i});r=r.endsWith(t)?r:"".concat(r,".").concat(t);var a=document.createElement("a");a.href=URL.createObjectURL(s),a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a)}},o," ",t.createElement(dC,null))},fC=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function mC(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function gC(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function yC(e,t={}){return{width:t.width||function(e){const t=gC(e,"border-left-width"),n=gC(e,"border-right-width");return e.clientWidth+t+n}(e),height:t.height||function(e){const t=gC(e,"border-top-width"),n=gC(e,"border-bottom-width");return e.clientHeight+t+n}(e)}}const vC=16384;function bC(e){return new Promise(((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}const CC=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||CC(n,t))};function wC(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(""===o||"none"===o)return;const i=fC();try{t.className=`${t.className} ${i}`}catch(e){return}const s=document.createElement("style");s.appendChild(function(e,t,n){const r=`.${e}:${t}`,o=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return mC(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${o}}`)}(i,n,r)),t.appendChild(s)}const xC="application/font-woff",EC="image/jpeg",PC={woff:xC,woff2:xC,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:EC,jpeg:EC,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function SC(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return PC[t]||""}function OC(e){return-1!==e.search(/^(data:)/)}function TC(e,t){return`data:${t};base64,${e}`}async function _C(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise(((e,t)=>{const i=new FileReader;i.onerror=t,i.onloadend=()=>{try{e(n({res:r,result:i.result}))}catch(e){t(e)}},i.readAsDataURL(o)}))}const VC={};async function RC(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=VC[r])return VC[r];let o;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await _C(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));o=TC(r,t)}catch(t){o=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;t&&(r="string"==typeof t?t:t.message),r&&console.warn(r)}return VC[r]=o,o}const IC=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function kC(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>async function(e,t){return CC(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):bC(t)}(e):CC(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),bC(t.toDataURL())}const n=e.poster,r=SC(n);return bC(await RC(n,r,t))}(e,t):CC(e,HTMLIFrameElement)?async function(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await kC(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}(e):e.cloneNode(!1)}(e,t))).then((n=>async function(e,t,n){var r,o;let i=[];return i=IC(e)&&e.assignedNodes?mC(e.assignedNodes()):CC(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?mC(e.contentDocument.body.childNodes):mC((null!==(o=e.shadowRoot)&&void 0!==o?o:e).childNodes),0===i.length||CC(e,HTMLVideoElement)||await i.reduce(((e,r)=>e.then((()=>kC(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()),t}(e,n,t))).then((t=>function(e,t){return CC(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):mC(r).forEach((o=>{let i=r.getPropertyValue(o);if("font-size"===o&&i.endsWith("px")){const e=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${e}px`}CC(e,HTMLIFrameElement)&&"display"===o&&"inline"===i&&(i="block"),"d"===o&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))}))}(e,t),function(e,t){wC(e,t,":before"),wC(e,t,":after")}(e,t),function(e,t){CC(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),CC(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(CC(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}(e,t))).then((e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let o=0;o<n.length;o++){const i=n[o].getAttribute("xlink:href");if(i){const n=e.querySelector(i),o=document.querySelector(i);n||!o||r[i]||(r[i]=await kC(o,t,!0))}}const o=Object.values(r);if(o.length){const t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<o.length;e++)r.appendChild(o[e]);e.appendChild(n)}return e}(e,t))):null}const AC=/url\((['"]?)([^'"]+?)\1\)/g,DC=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,NC=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function MC(e){return-1!==e.search(AC)}async function LC(e,t,n){if(!MC(e))return e;const r=function(e,{preferredFontFormat:t}){return t?e.replace(NC,(e=>{for(;;){const[n,,r]=DC.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),o=function(e){const t=[];return e.replace(AC,((e,n,r)=>(t.push(r),e))),t.filter((e=>!OC(e)))}(r);return o.reduce(((e,r)=>e.then((e=>async function(e,t,n,r,o){try{const i=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}(t,n):t,s=SC(t);let a;return a=o?TC(await o(i),s):await RC(i,s,r),e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}(e,r,t,n)))),Promise.resolve(r))}async function jC(e,t,n){var r;const o=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(o){const r=await LC(o,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function FC(e,t){CC(e,Element)&&(await async function(e,t){await jC("background",e,t)||await jC("background-image",e,t),await jC("mask",e,t)||await jC("mask-image",e,t)}(e,t),await async function(e,t){const n=CC(e,HTMLImageElement);if((!n||OC(e.src))&&(!CC(e,SVGImageElement)||OC(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await RC(r,SC(r),t);await new Promise(((t,r)=>{e.onload=t,e.onerror=r;const i=e;i.decode&&(i.decode=t),"lazy"===i.loading&&(i.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o}))}(e,t),await async function(e,t){const n=mC(e.childNodes).map((e=>FC(e,t)));await Promise.all(n).then((()=>e))}(e,t))}const BC={};async function qC(e){let t=BC[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},BC[e]=t,t}async function HC(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map((async o=>{let i=o.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),_C(i,t.fetchRequestInit,(({result:e})=>(n=n.replace(o,`url(${e})`),[o,e])))}));return Promise.all(o).then((()=>n))}function zC(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=o.exec(n);if(null===e){if(e=i.exec(n),null===e)break;o.lastIndex=i.lastIndex}else i.lastIndex=o.lastIndex;t.push(e[0])}return t}async function QC(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await async function(e,t){const n=await async function(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=mC(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{mC(n.cssRules||[]).forEach(((e,o)=>{if(e.type===CSSRule.IMPORT_RULE){let i=o+1;const s=qC(e.href).then((e=>HC(e,t))).then((e=>zC(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?i+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(s)}}))}catch(o){const i=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(qC(n.href).then((e=>HC(e,t))).then((e=>zC(e).forEach((e=>{i.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e)}))),console.error("Error inlining remote css file",o)}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{mC(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}})),n)))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>MC(e.style.getPropertyValue("src"))))}(r)}(e,t);return(await Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return LC(e.cssText,n,t)})))).join("\n")}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function UC(e,t={}){const{width:n,height:r}=yC(e,t),o=await kC(e,t,!0);return await QC(o,t),await FC(o,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(o,t),await async function(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(e),async function(e){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}(o)}(o,n,r)}async function WC(e,t={}){const{width:n,height:r}=yC(e,t),o=await UC(e,t),i=await bC(o),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=u*l,s.height=c*l,t.skipAutoScale||function(e){(e.width>vC||e.height>vC)&&(e.width>vC&&e.height>vC?e.width>e.height?(e.height*=vC/e.width,e.width=vC):(e.width*=vC/e.height,e.height=vC):e.width>vC?(e.height*=vC/e.width,e.width=vC):(e.width*=vC/e.height,e.height=vC))}(s),s.style.width=`${u}`,s.style.height=`${c}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(i,0,0,s.width,s.height),s}async function $C(e,t={}){return(await WC(e,t)).toDataURL()}async function GC(e,t={}){return(await WC(e,t)).toDataURL("image/jpeg",t.quality||1)}const JC=function(e){var n=e.filename,r=(0,t.useContext)(zt),o=Rt((0,t.useState)(!1),2),i=o[0],s=o[1],a=(0,t.useRef)(null),l=function(){var e=Dt(Mt().mark((function e(t){var o,i,a;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==r||!r.current){e.next=25;break}s(!1),o={transform:"scale(".concat(1,")"),"transform-origin":"top left",background:"white"},e.t0=t,e.next=e.t0===Vr.JPEG?7:e.t0===Vr.SVG?11:(e.t0,Vr.PNG,15);break;case 7:return e.next=9,GC(r.current,{quality:.95,style:o});case 9:return i=e.sent,e.abrupt("break",19);case 11:return e.next=13,UC(r.current,{style:o});case 13:return i=e.sent,e.abrupt("break",19);case 15:return e.next=17,$C(r.current,{style:o});case 17:return i=e.sent,e.abrupt("break",19);case 19:(a=document.createElement("a")).href="string"==typeof i?i:URL.createObjectURL(i),a.download="".concat(n,".").concat(t),document.body.appendChild(a),a.click(),document.body.removeChild(a);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(e){a.current&&!a.current.contains(e.target)&&s(!1)};return(0,t.useEffect)((function(){return document.addEventListener("mousedown",u),function(){document.removeEventListener("mousedown",u)}}),[]),t.createElement("div",{className:"image-dropdown",ref:a},t.createElement("button",{className:"downloadbutton downloadimage",onClick:function(){s(!i)}},"IMAGE ",t.createElement(dC,null)),i&&t.createElement("div",{className:"image-options"},t.createElement("div",{className:"imageoption downloadpng",onClick:function(){return l(Vr.PNG)}},t.createElement("span",null,"PNG")),t.createElement("div",{className:"imageoption downloadjpeg",onClick:function(){return l(Vr.JPEG)}},t.createElement("span",null,"JPEG")),t.createElement("div",{className:"imageoption downloadsvg",onClick:function(){return l(Vr.SVG)}},t.createElement("span",null,"SVG"))))},YC=function(e){var n=e.data,r=e.filename;return t.createElement("div",{className:"downloadcontainer"},t.createElement(hC,{data:n,filename:"".concat(r,".csv"),exportType:_r.CSV}),t.createElement(hC,{data:n,filename:"".concat(r,".xlsx"),exportType:_r.EXCEL}),t.createElement(JC,{filename:r}))};pp.defaults.font.size=16,pp.defaults.font.family="Open Sans",pp.defaults.font.weight=700;const KC=function(e){var n=e.title,r=e.description,o=e.filter,i=e.children,s=e.category,a=e.data,l=e.filename,u=Ar(),c=window.location.origin+window.location.pathname,p=lr().trackPageView;return(0,t.useEffect)((function(){p({documentTitle:n})}),[p,n]),t.createElement(t.Fragment,null,s===Tr.Organisation&&t.createElement(Vd,null),s===Tr.Policy&&t.createElement(Ad,null),s===Tr.Network&&t.createElement(Dd,null),s===Tr.ConnectedUsers&&t.createElement(Nd,null),s===Tr.Services&&t.createElement(Md,null),t.createElement(Sr,{type:"data"}),u&&t.createElement(Tn,{className:"preview-banner"},t.createElement("span",null,"You are viewing a preview of the website which includes pre-published survey data. ",t.createElement("a",{href:c},"Click here")," to deactivate preview mode.")),t.createElement(kd,{activeCategory:s}),t.createElement(Sn,{className:"grow"},t.createElement(Tn,null,t.createElement("h3",{className:"m-1"},n)),t.createElement(Tn,null,t.createElement("p",{className:"p-md-4"},r)),t.createElement(Tn,{align:"right",style:{position:"relative"}},t.createElement(YC,{data:a,filename:l})),t.createElement(Tn,null,o),t.createElement(Tn,null,i)))};const XC=t.createContext(null);var ZC=Object.prototype.hasOwnProperty;function ew(e,t,n){for(n of e.keys())if(tw(n,t))return n}function tw(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&tw(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=ew(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=ew(t,o)))return!1;if(!tw(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(ZC.call(e,n)&&++r&&!ZC.call(t,n))return!1;if(!(n in t)||!tw(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function nw(e){return e.split("-")[0]}function rw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ow(e){return e instanceof rw(e).Element||e instanceof Element}function iw(e){return e instanceof rw(e).HTMLElement||e instanceof HTMLElement}function sw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof rw(e).ShadowRoot||e instanceof ShadowRoot)}var aw=Math.max,lw=Math.min,uw=Math.round;function cw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function pw(){return!/^((?!chrome|android).)*safari/i.test(cw())}function dw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&iw(e)&&(o=e.offsetWidth>0&&uw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&uw(r.height)/e.offsetHeight||1);var s=(ow(e)?rw(e):window).visualViewport,a=!pw()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,u=(r.top+(a&&s?s.offsetTop:0))/i,c=r.width/o,p=r.height/i;return{width:c,height:p,top:u,right:l+c,bottom:u+p,left:l,x:l,y:u}}function hw(e){var t=dw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mw(e){return e?(e.nodeName||"").toLowerCase():null}function gw(e){return rw(e).getComputedStyle(e)}function yw(e){return["table","td","th"].indexOf(mw(e))>=0}function vw(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function bw(e){return"html"===mw(e)?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||vw(e)}function Cw(e){return iw(e)&&"fixed"!==gw(e).position?e.offsetParent:null}function ww(e){for(var t=rw(e),n=Cw(e);n&&yw(n)&&"static"===gw(n).position;)n=Cw(n);return n&&("html"===mw(n)||"body"===mw(n)&&"static"===gw(n).position)?t:n||function(e){var t=/firefox/i.test(cw());if(/Trident/i.test(cw())&&iw(e)&&"fixed"===gw(e).position)return null;var n=bw(e);for(sw(n)&&(n=n.host);iw(n)&&["html","body"].indexOf(mw(n))<0;){var r=gw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function xw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ew(e,t,n){return aw(e,lw(t,n))}function Pw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Sw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ow="top",Tw="bottom",_w="right",Vw="left",Rw="auto",Iw=[Ow,Tw,_w,Vw],kw="start",Aw="end",Dw="viewport",Nw="popper",Mw=Iw.reduce((function(e,t){return e.concat([t+"-"+kw,t+"-"+Aw])}),[]),Lw=[].concat(Iw,[Rw]).reduce((function(e,t){return e.concat([t,t+"-"+kw,t+"-"+Aw])}),[]),jw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Fw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nw(n.placement),l=xw(a),u=[Vw,_w].indexOf(a)>=0?"height":"width";if(i&&s){var c=function(e,t){return Pw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Sw(e,Iw))}(o.padding,n),p=hw(i),d="y"===l?Ow:Vw,h="y"===l?Tw:_w,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=ww(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=c[d],C=y-p[u]-c[h],w=y/2-p[u]/2+v,x=Ew(b,w,C),E=l;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bw(e){return e.split("-")[1]}var qw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Vw,C=Ow,w=window;if(u){var x=ww(n),E="clientHeight",P="clientWidth";x===rw(n)&&"static"!==gw(x=vw(n)).position&&"absolute"===a&&(E="scrollHeight",P="scrollWidth"),(o===Ow||(o===Vw||o===_w)&&i===Aw)&&(C=Tw,m-=(p&&x===w&&w.visualViewport?w.visualViewport.height:x[E])-r.height,m*=l?1:-1),o!==Vw&&(o!==Ow&&o!==Tw||i!==Aw)||(b=_w,h-=(p&&x===w&&w.visualViewport?w.visualViewport.width:x[P])-r.width,h*=l?1:-1)}var S,O=Object.assign({position:a},u&&qw),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:uw(n*o)/o||0,y:uw(r*o)/o||0}}({x:h,y:m},rw(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},O,((S={})[C]=v?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},O,((t={})[C]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}const zw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,u={placement:nw(t.placement),variation:Bw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Hw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qw={passive:!0};const Uw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=rw(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qw)})),a&&l.addEventListener("resize",n.update,Qw),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qw)})),a&&l.removeEventListener("resize",n.update,Qw)}},data:{}};var Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function $w(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ww[e]}))}var Gw={start:"end",end:"start"};function Jw(e){return e.replace(/start|end/g,(function(e){return Gw[e]}))}function Yw(e){var t=rw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kw(e){return dw(vw(e)).left+Yw(e).scrollLeft}function Xw(e){var t=gw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Zw(e){return["html","body","#document"].indexOf(mw(e))>=0?e.ownerDocument.body:iw(e)&&Xw(e)?e:Zw(bw(e))}function ex(e,t){var n;void 0===t&&(t=[]);var r=Zw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=rw(r),s=o?[i].concat(i.visualViewport||[],Xw(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ex(bw(s)))}function tx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nx(e,t,n){return t===Dw?tx(function(e,t){var n=rw(e),r=vw(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=pw();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Kw(e),y:l}}(e,n)):ow(t)?function(e,t){var n=dw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tx(function(e){var t,n=vw(e),r=Yw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=aw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=aw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Kw(e),l=-r.scrollTop;return"rtl"===gw(o||n).direction&&(a+=aw(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(vw(e)))}function rx(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nw(o):null,s=o?Bw(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Ow:t={x:a,y:n.y-r.height};break;case Tw:t={x:a,y:n.y+n.height};break;case _w:t={x:n.x+n.width,y:l};break;case Vw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?xw(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case kw:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Aw:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ox(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?Dw:u,p=n.elementContext,d=void 0===p?Nw:p,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=Pw("number"!=typeof g?g:Sw(g,Iw)),v=d===Nw?"reference":Nw,b=e.rects.popper,C=e.elements[f?v:d],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=ex(bw(e)),n=["absolute","fixed"].indexOf(gw(e).position)>=0&&iw(e)?ww(e):e;return ow(n)?t.filter((function(e){return ow(e)&&fw(e,n)&&"body"!==mw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=nx(e,n,r);return t.top=aw(o.top,t.top),t.right=lw(o.right,t.right),t.bottom=lw(o.bottom,t.bottom),t.left=aw(o.left,t.left),t}),nx(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ow(C)?C:C.contextElement||vw(e.elements.popper),l,c,s),x=dw(e.elements.reference),E=rx({reference:x,element:b,strategy:"absolute",placement:o}),P=tx(Object.assign({},b,E)),S=d===Nw?P:x,O={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},T=e.modifiersData.offset;if(d===Nw&&T){var _=T[o];Object.keys(O).forEach((function(e){var t=[_w,Tw].indexOf(e)>=0?1:-1,n=[Ow,Tw].indexOf(e)>=0?"y":"x";O[e]+=_[n]*t}))}return O}const ix={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=nw(g),v=l||(y!==g&&f?function(e){if(nw(e)===Rw)return[];var t=$w(e);return[Jw(e),t,Jw(t)]}(g):[$w(g)]),b=[g].concat(v).reduce((function(e,n){return e.concat(nw(n)===Rw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Lw:l,c=Bw(r),p=c?a?Mw:Mw.filter((function(e){return Bw(e)===c})):Iw,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,n){return t[n]=ox(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[nw(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:p,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,w=t.rects.popper,x=new Map,E=!0,P=b[0],S=0;S<b.length;S++){var O=b[S],T=nw(O),_=Bw(O)===kw,V=[Ow,Tw].indexOf(T)>=0,R=V?"width":"height",I=ox(t,{placement:O,boundary:c,rootBoundary:p,altBoundary:d,padding:u}),k=V?_?_w:Vw:_?Tw:Ow;C[R]>w[R]&&(k=$w(k));var A=$w(k),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[k]<=0,I[A]<=0),D.every((function(e){return e}))){P=O,E=!1;break}x.set(O,D)}if(E)for(var N=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},M=f?3:1;M>0&&"break"!==N(M);M--);t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ax(e){return[Ow,_w,Tw,Vw].some((function(t){return e[t]>=0}))}const lx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=Lw.reduce((function(e,n){return e[n]=function(e,t,n){var r=nw(e),o=[Vw,Ow].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Vw,_w].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},ux={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,h=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=ox(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:c}),y=nw(t.placement),v=Bw(t.placement),b=!v,C=xw(y),w="x"===C?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,P=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(i){var V,R="y"===C?Ow:Vw,I="y"===C?Tw:_w,k="y"===C?"height":"width",A=x[C],D=A+g[R],N=A-g[I],M=h?-P[k]/2:0,L=v===kw?E[k]:P[k],j=v===kw?-P[k]:-E[k],F=t.elements.arrow,B=h&&F?hw(F):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=q[R],z=q[I],Q=Ew(0,E[k],B[k]),U=b?E[k]/2-M-Q-H-O.mainAxis:L-Q-H-O.mainAxis,W=b?-E[k]/2+M+Q+z+O.mainAxis:j+Q+z+O.mainAxis,$=t.elements.arrow&&ww(t.elements.arrow),G=$?"y"===C?$.clientTop||0:$.clientLeft||0:0,J=null!=(V=null==T?void 0:T[C])?V:0,Y=A+W-J,K=Ew(h?lw(D,A+U-J-G):D,A,h?aw(N,Y):N);x[C]=K,_[C]=K-A}if(a){var X,Z="x"===C?Ow:Vw,ee="x"===C?Tw:_w,te=x[w],ne="y"===w?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Ow,Vw].indexOf(y),se=null!=(X=null==T?void 0:T[w])?X:0,ae=ie?re:te-E[ne]-P[ne]-se+O.altAxis,le=ie?te+E[ne]+P[ne]-se-O.altAxis:oe,ue=h&&ie?function(e,t,n){var r=Ew(e,t,n);return r>n?n:r}(ae,te,le):Ew(h?ae:re,te,h?le:oe);x[w]=ue,_[w]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function cx(e,t,n){void 0===n&&(n=!1);var r,o,i=iw(t),s=iw(t)&&function(e){var t=e.getBoundingClientRect(),n=uw(t.width)/e.offsetWidth||1,r=uw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=vw(t),l=dw(e,s,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==mw(t)||Xw(a))&&(u=(r=t)!==rw(r)&&iw(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Yw(r)),iw(t)?((c=dw(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Kw(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function px(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var dx={placement:"bottom",modifiers:[],strategy:"absolute"};function hx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const fx=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?dx:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},dx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:ow(e)?ex(e):e.contextElement?ex(e.contextElement):[],popper:ex(t)};var s,u,d=function(e){var t=px(e);return jw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,n=e.popper;if(hx(t,n)){a.rects={reference:cx(t,ww(n),"fixed"===a.options.strategy),popper:hw(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,p=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:p,instance:c})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),u=!0}};if(!hx(e,t))return c;function p(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=ox(t,{elementContext:"reference"}),a=ox(t,{altBoundary:!0}),l=sx(s,r),u=sx(a,o,i),c=ax(l),p=ax(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},zw,Uw,lx,ix,ux,Fw]}),mx=["enabled","placement","strategy","modifiers"],gx={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},yx={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},vx=[],bx=function(e,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:s="absolute",modifiers:a=vx}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,mx);const u=(0,t.useRef)(a),c=(0,t.useRef)(),p=(0,t.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),d=(0,t.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[h,f]=function(e){const n=io();return[e[0],(0,t.useCallback)((t=>{if(n())return e[1](t)}),[n,e[1]])]}((0,t.useState)({placement:i,update:p,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,t.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),f({state:e,styles:t,attributes:n,update:p,forceUpdate:d,placement:e.placement})}})),[p,d,f]),g=(0,t.useMemo)((()=>(tw(u.current,a)||(u.current=a),u.current)),[a]);return(0,t.useEffect)((()=>{c.current&&o&&c.current.setOptions({placement:i,strategy:s,modifiers:[...g,m,gx]})}),[s,i,m,o,g]),(0,t.useEffect)((()=>{if(o&&null!=e&&null!=n)return c.current=fx(e,n,Object.assign({},l,{placement:i,strategy:s,modifiers:[...g,yx,m]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,f((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,e,n]),h},Cx=()=>{},wx=e=>e&&("current"in e?e.current:e),xx={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Ex=function(e,n=Cx,{disabled:r,clickTrigger:o="click"}={}){const i=(0,t.useRef)(!1),s=(0,t.useRef)(!1),a=(0,t.useCallback)((t=>{const n=wx(e);var r;Di()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!oo(n,t.target)||s.current,s.current=!1}),[e]),l=Wr((t=>{const n=wx(e);n&&oo(n,t.target)&&(s.current=!0)})),u=Wr((e=>{i.current||n(e)}));(0,t.useEffect)((()=>{var t,n;if(r||null==e)return;const i=Br(wx(e)),s=i.defaultView||window;let c=null!=(t=s.event)?t:null==(n=s.parent)?void 0:n.event,p=null;xx[o]&&(p=to(i,xx[o],l,!0));const d=to(i,o,a,!0),h=to(i,o,(e=>{e!==c?u(e):c=void 0}));let f=[];return"ontouchstart"in i.documentElement&&(f=[].slice.call(i.body.children).map((e=>to(e,"mousemove",Cx)))),()=>{null==p||p(),d(),h(),f.forEach((e=>e()))}}),[e,r,o,a,l,u])};function Px(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Sx=["children","usePopper"],Ox=()=>{};function Tx(e={}){const n=(0,t.useContext)(XC),[r,o]=Qr(),i=(0,t.useRef)(!1),{flip:s,offset:a,rootCloseEvent:l,fixed:u=!1,placement:c,popperConfig:p={},enableEventListeners:d=!0,usePopper:h=!!n}=e,f=null==(null==n?void 0:n.show)?!!e.show:n.show;f&&!i.current&&(i.current=!0);const{placement:m,setMenu:g,menuElement:y,toggleElement:v}=n||{},b=bx(v,y,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,p,d,h;const f=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Px(Object.assign({},f,{eventListeners:{enabled:t,options:null==(u=f.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},f.preventOverflow,{options:s?Object.assign({padding:s},null==(c=f.preventOverflow)?void 0:c.options):null==(p=f.preventOverflow)?void 0:p.options}),offset:{options:Object.assign({offset:o},null==(d=f.offset)?void 0:d.options)},arrow:Object.assign({},f.arrow,{enabled:!!a,options:Object.assign({},null==(h=f.arrow)?void 0:h.options,{element:a})}),flip:Object.assign({enabled:!!r},f.flip)}))})}({placement:c||m||"bottom-start",enabled:h,enableEvents:null==d?f:d,offset:a,flip:s,fixed:u,arrowElement:r,popperConfig:p})),C=Object.assign({ref:g||Ox,"aria-labelledby":null==v?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),w={show:f,placement:m,hasShown:i.current,toggle:null==n?void 0:n.toggle,popper:h?b:null,arrowProps:h?Object.assign({ref:o},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ex(y,(e=>{null==n||n.toggle(!1,e)}),{clickTrigger:l,disabled:!f}),[C,w]}function _x(e){let{children:t,usePopper:n=!0}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Sx);const[o,i]=Tx(Object.assign({},r,{usePopper:n}));return(0,gn.jsx)(gn.Fragment,{children:t(o,i)})}_x.displayName="DropdownMenu";const Vx=_x,Rx={prefix:String(Math.round(1e10*Math.random())),current:0},Ix=t.createContext(Rx),kx=t.createContext(!1);let Ax=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Dx=new WeakMap;const Nx="function"==typeof t.useId?function(e){let n=t.useId(),[r]=(0,t.useState)("function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(jx,Mx,Lx):(0,t.useContext)(kx));return e||`${r?"react-aria":`react-aria${Rx.prefix}`}-${n}`}:function(e){let n=(0,t.useContext)(Ix);n!==Rx||Ax||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let n=(0,t.useContext)(Ix),r=(0,t.useRef)(null);if(null===r.current&&!e){var o,i;let e=null===(i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let t=Dx.get(e);null==t?Dx.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,Dx.delete(e))}r.current=++n.current}return r.current}(!!e),o=`react-aria${n.prefix}`;return e||`${o}-${r}`};function Mx(){return!1}function Lx(){return!0}function jx(e){return()=>{}}const Fx=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Bx=()=>{};function qx(){const e=Nx(),{show:n=!1,toggle:r=Bx,setToggle:o,menuElement:i}=(0,t.useContext)(XC)||{},s=(0,t.useCallback)((e=>{r(!n,e)}),[n,r]),a={id:e,ref:o||Bx,onClick:s,"aria-expanded":!!n};return i&&Fx(i)&&(a["aria-haspopup"]=!0),[a,{show:n,toggle:r}]}function Hx({children:e}){const[t,n]=qx();return(0,gn.jsx)(gn.Fragment,{children:e(t,n)})}Hx.displayName="DropdownToggle";const zx=Hx,Qx=(e,t=null)=>null!=e?String(e):t||null,Ux=t.createContext(null),Wx=t.createContext(null);Wx.displayName="NavContext";const $x=Wx,Gx=["eventKey","disabled","onClick","active","as"];function Jx({key:e,href:n,active:r,disabled:o,onClick:i}){const s=(0,t.useContext)(Ux),a=(0,t.useContext)($x),{activeKey:l}=a||{},u=Qx(e,n),c=null==r&&null!=e?Qx(l)===u:r;return[{onClick:Wr((e=>{o||(null==i||i(e),s&&!e.isPropagationStopped()&&s(u,e))})),"aria-disabled":o||void 0,"aria-selected":c,[lo("dropdown-item")]:""},{isActive:c}]}const Yx=t.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:i,as:s=is}=e,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Gx);const[l]=Jx({key:n,href:a.href,disabled:r,onClick:o,active:i});return(0,gn.jsx)(s,Object.assign({},a,{ref:t},l))}));Yx.displayName="DropdownItem";const Kx=Yx;function Xx(){const e=function(){const[,e]=(0,t.useReducer)((e=>!e),!1);return e}(),n=(0,t.useRef)(null),r=(0,t.useCallback)((t=>{n.current=t,e()}),[e]);return[n,r]}function Zx({defaultShow:e,show:n,onSelect:r,onToggle:o,itemSelector:i=`* [${lo("dropdown-item")}]`,focusFirstItemOnShow:s,placement:a="bottom-start",children:l}){const u=ho(),[c,p]=function(e,n,r){const o=(0,t.useRef)(void 0!==e),[i,s]=(0,t.useState)(n),a=void 0!==e,l=o.current;return o.current=a,!a&&l&&i!==n&&s(n),[a?e:i,(0,t.useCallback)(((...e)=>{const[t,...n]=e;let o=null==r?void 0:r(t,...n);return s(t),o}),[r])]}(n,e,o),[d,h]=Xx(),f=d.current,[m,g]=Xx(),y=m.current,v=so(c),b=(0,t.useRef)(null),C=(0,t.useRef)(!1),w=(0,t.useContext)(Ux),x=(0,t.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{p(e,{originalEvent:t,source:n})}),[p]),E=Wr(((e,t)=>{null==r||r(e,t),x(!1,t,"select"),t.isPropagationStopped()||null==w||w(e,t)})),P=(0,t.useMemo)((()=>({toggle:x,placement:a,show:c,menuElement:f,toggleElement:y,setMenu:h,setToggle:g})),[x,a,c,f,y,h,g]);f&&v&&!c&&(C.current=f.contains(f.ownerDocument.activeElement));const S=Wr((()=>{y&&y.focus&&y.focus()})),O=Wr((()=>{const e=b.current;let t=s;if(null==t&&(t=!(!d.current||!Fx(d.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Vo(d.current,i)[0];n&&n.focus&&n.focus()}));(0,t.useEffect)((()=>{c?O():C.current&&(C.current=!1,S())}),[c,C,S,O]),(0,t.useEffect)((()=>{b.current=null}));const T=(e,t)=>{if(!d.current)return null;const n=Vo(d.current,i);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,n,r,o=!1){const i=Wr(r);(0,t.useEffect)((()=>{const t="function"==typeof e?e():e;return t.addEventListener(n,i,o),()=>t.removeEventListener(n,i,o)}),[e])}((0,t.useCallback)((()=>u.document),[u]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,i=null==(t=d.current)?void 0:t.contains(o),s=null==(n=m.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&i||"Escape"===r&&"search"===o.type))return;if(!i&&!s)return;if(!("Tab"!==r||d.current&&c))return;b.current=e.type;const a={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=T(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),c){const e=T(o,1);e&&e.focus&&e.focus()}else p(!0,a);return;case"Tab":Fr(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=d.current)&&t.contains(e.target)||p(!1,a)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),p(!1,a)}})),(0,gn.jsx)(Ux.Provider,{value:E,children:(0,gn.jsx)(XC.Provider,{value:P,children:l})})}Zx.displayName="Dropdown",Zx.Menu=Vx,Zx.Toggle=zx,Zx.Item=Kx;const eE=Zx;function tE(){return tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tE.apply(null,arguments)}function nE(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function rE(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function oE(e,n){return Object.keys(n).reduce((function(r,o){var i,s=r,a=s[nE(o)],l=s[o],u=Yt(s,[nE(o),o].map(rE)),c=n[o],p=function(e,n,r){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(n),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==n&&a(n),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),a(e)}),[r])]}(l,a,e[c]),d=p[0],h=p[1];return tE({},u,((i={})[o]=d,i[c]=h,i))}),e)}o(311);const iE=t.createContext({});iE.displayName="DropdownContext";const sE=iE,aE=t.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...o},i)=>(t=Cn(t,"dropdown-divider"),(0,gn.jsx)(n,{ref:i,className:mn()(e,t),role:r,...o}))));aE.displayName="DropdownDivider";const lE=aE,uE=t.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},i)=>(t=Cn(t,"dropdown-header"),(0,gn.jsx)(n,{ref:i,className:mn()(e,t),role:r,...o}))));uE.displayName="DropdownHeader";const cE=uE;new WeakMap;const pE=["onKeyDown"],dE=t.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,pE);const[o]=rs(Object.assign({tagName:"a"},r)),i=Wr((e=>{o.onKeyDown(e),null==n||n(e)}));return(s=r.href)&&"#"!==s.trim()&&"button"!==r.role?(0,gn.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,gn.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:i}));var s}));dE.displayName="Anchor";const hE=dE,fE=t.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:i,as:s=hE,...a},l)=>{const u=Cn(e,"dropdown-item"),[c,p]=Jx({key:n,href:a.href,disabled:r,onClick:o,active:i});return(0,gn.jsx)(s,{...a,...c,ref:l,className:mn()(t,u,p.isActive&&"active",r&&"disabled")})}));fE.displayName="DropdownItem";const mE=fE,gE=t.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=Cn(t,"dropdown-item-text"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));gE.displayName="DropdownItemText";const yE=gE,vE=t.createContext(null);vE.displayName="InputGroupContext";const bE=vE,CE=t.createContext(null);CE.displayName="NavbarContext";const wE=CE;function xE(e,t){return e}function EE(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const PE=t.forwardRef((({bsPrefix:e,className:n,align:r,rootCloseEvent:o,flip:i=!0,show:s,renderOnMount:a,as:l="div",popperConfig:u,variant:c,...p},d)=>{let h=!1;const f=(0,t.useContext)(wE),m=Cn(e,"dropdown-menu"),{align:g,drop:y,isRTL:v}=(0,t.useContext)(sE);r=r||g;const b=(0,t.useContext)(bE),C=[];if(r)if("object"==typeof r){const e=Object.keys(r);if(e.length){const t=e[0],n=r[t];h="start"===n,C.push(`${m}-${t}-${n}`)}}else"end"===r&&(h=!0);const w=EE(h,y,v),[x,{hasShown:E,popper:P,show:S,toggle:O}]=Tx({flip:i,rootCloseEvent:o,show:s,usePopper:!f&&0===C.length,offset:[0,2],popperConfig:u,placement:w});if(x.ref=Gr(xE(d),x.ref),go((()=>{S&&(null==P||P.update())}),[S]),!E&&!a&&!b)return null;"string"!=typeof l&&(x.show=S,x.close=()=>null==O?void 0:O(!1),x.align=r);let T=p.style;return null!=P&&P.placement&&(T={...p.style,...x.style},p["x-placement"]=P.placement),(0,gn.jsx)(l,{...p,...x,style:T,...(C.length||f)&&{"data-bs-popper":"static"},className:mn()(n,m,S&&"show",h&&`${m}-end`,c&&`${m}-${c}`,...C)})}));PE.displayName="DropdownMenu";const SE=PE,OE=t.forwardRef((({bsPrefix:e,split:n,className:r,childBsPrefix:o,as:i=as,...s},a)=>{const l=Cn(e,"dropdown-toggle"),u=(0,t.useContext)(XC);void 0!==o&&(s.bsPrefix=o);const[c]=qx();return c.ref=Gr(c.ref,xE(a)),(0,gn.jsx)(i,{className:mn()(r,l,n&&`${l}-split`,(null==u?void 0:u.show)&&"show"),...c,...s})}));OE.displayName="DropdownToggle";const TE=OE,_E=t.forwardRef(((e,n)=>{const{bsPrefix:r,drop:o="down",show:i,className:s,align:a="start",onSelect:l,onToggle:u,focusFirstItemOnShow:c,as:p="div",navbar:d,autoClose:h=!0,...f}=oE(e,{show:"onToggle"}),m=(0,t.useContext)(bE),g=Cn(r,"dropdown"),y=En(),v=Wr(((e,t)=>{var n,r;(null==(n=t.originalEvent)||null==(n=n.target)?void 0:n.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),r=t.source,(!1===h?"click"===r:"inside"===h?"rootClose"!==r:"outside"!==h||"select"!==r)&&(null==u||u(e,t)))})),b=EE("end"===a,o,y),C=(0,t.useMemo)((()=>({align:a,drop:o,isRTL:y})),[a,o,y]),w={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,gn.jsx)(sE.Provider,{value:C,children:(0,gn.jsx)(eE,{placement:b,show:i,onSelect:l,onToggle:v,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:m?f.children:(0,gn.jsx)(p,{...f,ref:n,className:mn()(s,i&&"show",w[o])})})})}));_E.displayName="Dropdown";const VE=Object.assign(_E,{Toggle:TE,Menu:SE,Item:mE,ItemText:yE,Divider:lE,Header:cE}),RE=function(e){var n=e.filterOptions,r=e.filterSelection,o=e.setFilterSelection,i=e.max1year,s=void 0!==i&&i,a=e.coloredYears,l=void 0!==a&&a,u=Rt((0,t.useState)(!0),2),c=u[0],p=u[1],d=(0,t.useContext)(Gt).nrens;if((0,t.useEffect)((function(){var e=function(){return p(window.innerWidth>=992)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),s&&r.selectedYears.length>1){var h=Math.max.apply(Math,Kt(r.selectedYears));o({selectedYears:[h],selectedNrens:Kt(r.selectedNrens)})}var f=c?3:2,m=Math.ceil(d.length/f),g=Array.from(Array(f),(function(){return[]}));d.sort((function(e,t){return e.name.localeCompare(t.name)})).forEach((function(e,t){var n=Math.floor(t/m);g[n].push(e)}));var y=function(e){var t=n.availableNrens.find((function(t){return t.name===e.name}));return void 0!==t};return t.createElement(t.Fragment,null,t.createElement(Vn,{xs:3},t.createElement(VE,{autoClose:"outside",className:"m-3"},t.createElement(VE.Toggle,{id:"nren-dropdown-toggle",variant:"compendium"},"Select NRENs "),t.createElement(VE.Menu,{style:{borderRadius:0}},t.createElement("div",{className:"d-flex fit-max-content mt-4 mx-3"},g.map((function(e,n){return t.createElement("div",{key:n,className:"flex-fill"},e.map((function(e){return t.createElement("div",{className:"filter-dropdown-item flex-fill py-1 px-3",key:e.name},t.createElement(ts.Check,{type:"checkbox"},t.createElement(ts.Check.Input,{id:e.name,readOnly:!0,type:"checkbox",onClick:function(){return function(e){r.selectedNrens.includes(e)?o({selectedYears:Kt(r.selectedYears),selectedNrens:r.selectedNrens.filter((function(t){return t!==e}))}):o({selectedYears:Kt(r.selectedYears),selectedNrens:[].concat(Kt(r.selectedNrens),[e])})}(e.name)},checked:r.selectedNrens.includes(e.name),className:"nren-checkbox",disabled:!y(e)}),t.createElement(ts.Check.Label,{htmlFor:e.name,className:"nren-checkbox-label"},e.name," ",t.createElement("span",{style:{fontWeight:"lighter"}},"(",e.country,")"))))})))}))),t.createElement("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3"},t.createElement(as,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:Kt(r.selectedYears),selectedNrens:n.availableNrens.map((function(e){return e.name}))})}},"Select all NRENs"),t.createElement(as,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:Kt(r.selectedYears),selectedNrens:[]})}},"Unselect all NRENs"))))),t.createElement(Vn,null,t.createElement(Id,{className:"d-flex justify-content-end gap-2 m-3"},n.availableYears.sort().map((function(e){return t.createElement(as,{variant:l?"compendium-year-"+e%9:"compendium-year",key:e,active:r.selectedYears.includes(e),onClick:function(){return function(e){r.selectedYears.includes(e)?o({selectedYears:r.selectedYears.filter((function(t){return t!==e})),selectedNrens:Kt(r.selectedNrens)}):o({selectedYears:s?[e]:[].concat(Kt(r.selectedYears),[e]),selectedNrens:Kt(r.selectedNrens)})}(e)}},e)})))))},IE=function(e){var n=e.children,r=(0,t.useContext)(zt);return t.createElement("div",{ref:r},n)};function kE(e){var t=new Set,n=new Map;return e.forEach((function(e){t.add(e.year),n.set(e.nren,{name:e.nren,country:e.nren_country})})),{years:t,nrens:n}}function AE(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=e+(Ar()?"?preview":"");(0,t.useEffect)((function(){fetch(a).then((function(e){return e.json()})).then((function(e){var t=e.filter(r);s(t);var o=kE(t),i=o.years,a=o.nrens;n((function(e){return{selectedYears:e.selectedYears.filter((function(e){return i.has(e)})).length?e.selectedYears:[Math.max.apply(Math,Kt(i))],selectedNrens:e.selectedNrens.filter((function(e){return a.has(e)})).length?e.selectedNrens:Kt(a.keys())}}))}))}),[a,n]);var l=(0,t.useMemo)((function(){return kE(i)}),[i]),u=l.years,c=l.nrens;return{data:i,years:u,nrens:c}}var DE=function(e){var t=e.title,n=e.unit,r=e.tooltipPrefix,o=e.tooltipUnit,i=e.tickLimit,s=e.valueTransform;return{responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=null!=r?r:e.dataset.label||"",n=s?s(e.parsed.y):e.parsed.y;return null!==e.parsed.y&&(t+=": ".concat(n," ").concat(o||"")),t}}}},scales:{y:{title:{display:!!t,text:t||""},ticks:{autoSkip:!0,maxTicksLimit:i,callback:function(e){var t="string"==typeof e?e:s?s(e):e;return"".concat(t," ").concat(n||"")}}}}}},NE=function(e){var t=e.title,n=e.unit,r=e.tooltipPrefix,o=e.tooltipUnit,i=e.valueTransform;return{maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(e){var t=null!=r?r:e.dataset.label||"",n=i?i(e.parsed.x):e.parsed.x;return null!==e.parsed.y&&(t+=": ".concat(n," ").concat(o||"")),t}}}},scales:{x:{title:{display:!!t,text:t||""},position:"top",ticks:{callback:function(e){if(!e)return e;var t=i?i(e):e;return"".concat(t," ").concat(n||"")}}},x2:{title:{display:!!t,text:t||""},ticks:{callback:function(e){if(!e)return e;var t=i?i(e):e;return"".concat(t," ").concat(n||"")}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"}};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const ME=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/budget",r),i=o.data,s=o.nrens,a=i.filter((function(e){return n.selectedNrens.includes(e.nren)})),l=Sd(a,"budget"),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r}),c=DE({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"});return t.createElement(KC,{title:"Budget of NRENs per Year",description:t.createElement("span",null,"The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",t.createElement("br",null),"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",t.createElement("br",null),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."),category:Tr.Organisation,filter:u,data:a,filename:"budget_data"},t.createElement(IE,null,t.createElement(dd,{data:l,options:c})))},LE=t.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=Cn(e,"table"),d=mn()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,n&&`${p}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,gn.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,gn.jsx)("div",{className:e,children:h})}return h})),jE=LE,FE=function(e){var n=e.year,r=e.active,o=e.tooltip,i=e.rounded,s={width:void 0!==i&&i?"30px":"75px",height:"30px",margin:"2px"};return t.createElement("div",{className:"d-inline-block",key:n},r&&o?t.createElement("div",{className:"rounded-pill bg-color-of-the-year-".concat(n%9," bottom-tooltip pill-shadow"),style:s,"data-description":"".concat(n,": ").concat(o)}):r?t.createElement("div",{className:"rounded-pill bg-color-of-the-year-".concat(n%9," bottom-tooltip-small"),style:s,"data-description":n}):t.createElement("div",{className:"rounded-pill bg-color-of-the-year-blank",style:s}))},BE=function(e){var n=e.columns,r=e.dataLookup,o=e.circle,i=void 0!==o&&o,s=e.columnLookup,a=void 0===s?new Map:s,l=Array.from(new Set(Array.from(r.values()).flatMap((function(e){return Array.from(e.keys())})))),u=n.map((function(e){return a.get(e)||e})),c=Array.from(new Set(Array.from(r.values()).flatMap((function(e){return Array.from(e.values()).flatMap((function(e){return Array.from(e.keys())}))})))),p=l.filter((function(e){var t=a.get(e);return t?!u.includes(t):!u.includes(e)})).map((function(e){return a.get(e)||e}));return t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"12rem"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),n.map((function(e){return t.createElement("th",{colSpan:1,key:e},e)})),p.length?t.createElement("th",null,"Other"):null)),t.createElement("tbody",null,Array.from(r.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),u.map((function(e){var n=o.get(e);return n?t.createElement("td",{key:e},c.map((function(e){var r=n.get(e)||{};return t.createElement(FE,{key:e,year:e,active:n.has(e),tooltip:r.tooltip,rounded:i})}))):t.createElement("td",{key:e})})),!!p.length&&t.createElement("td",{key:"".concat(r,"-other")},p.map((function(e){var n=o.get(e);if(n)return Array.from(Array.from(n.entries())).map((function(n){var r=Rt(n,2),o=r[0],s=r[1];return t.createElement(FE,{key:o,year:o,active:!0,tooltip:s.tooltip||e,rounded:i})}))}))))}))))},qE=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/charging",r,(function(e){return null!=e.fee_type})),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"fee_type"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[p[0],"flat_fee"],[p[1],"usage_based_fee"],[p[2],"combination"],[p[3],"no_charge"],[p[4],"other"]]);return t.createElement(KC,{title:"Charging Mechanism of NRENs",description:"The charging structure is the way in which NRENs charge their customers for the services they provide. The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.",category:Tr.Organisation,filter:c,data:l,filename:"charging_mechanism_of_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d})))},HE=function(e){var n=e.data,r=e.columnTitle,o=e.dottedBorder,i=e.noDots,s=e.keysAreURLs,a=e.removeDecoration;return t.createElement(jE,{borderless:!0,className:"compendium-table"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"nren-column"},t.createElement("span",null,"NREN")),t.createElement("th",{className:"year-column"},t.createElement("span",null,"Year")),t.createElement("th",{className:"blue-column"},t.createElement("span",null,r)))),t.createElement("tbody",null,function(e,n){var r=n.dottedBorder,o=void 0!==r&&r,i=n.noDots,s=void 0!==i&&i,a=n.keysAreURLs,l=void 0!==a&&a,u=n.removeDecoration,c=void 0!==u&&u;return Array.from(e.entries()).map((function(e){var n=Rt(e,2),r=n[0],i=n[1];return Array.from(i.entries()).map((function(e,n){var i=Rt(e,2),a=i[0],u=i[1],p={};return c&&(p.textDecoration="none"),t.createElement("tr",{key:r+a,className:o?"dotted-border":""},t.createElement("td",{className:"pt-3 nren-column text-nowrap"},0===n&&r),t.createElement("td",{className:"pt-3 year-column"},a),t.createElement("td",{className:"pt-3 blue-column"},t.createElement("ul",{className:s?"no-list-style-type":""},Array.from(Object.entries(u)).map((function(e,n){var r,o=Rt(e,2),i=o[0],s=o[1];return l?t.createElement("li",{key:n},t.createElement("a",{href:(r=s,r.match(/^[a-zA-Z]+:\/\//)?r:"https://"+r),target:"_blank",rel:"noopener noreferrer",style:p},i)):t.createElement("li",{key:n},t.createElement("span",null,i))})))))}))}))}(n,{dottedBorder:o,noDots:i,keysAreURLs:s,removeDecoration:a})))},zE=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/ec-project",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n=t.map((function(e){return e.project})).sort();n.length&&n.forEach((function(t){e[t]=t}))})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:Tr.Organisation,filter:c,data:l,filename:"nren_involvement_in_european_commission_projects"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"EC Project Membership",dottedBorder:!0})))};var QE=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),UE=function(e,t,n){var r,o=[].concat(t),i=o.length,s=e.font,a=0;for(e.font=n.string,r=0;r<i;++r)a=Math.max(e.measureText(o[r]).width,a);return e.font=s,{height:i*n.lineHeight,width:a}};function WE(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var o=e.x-n,i=e.y-r,s=Math.sqrt(o*o+i*i);return{x:s?o/s:0,y:s?i/s:-1}}var $E=0,GE=1,JE=2,YE=4,KE=8;function XE(e,t,n){var r=$E;return e<n.left?r|=GE:e>n.right&&(r|=JE),t<n.top?r|=KE:t>n.bottom&&(r|=YE),r}function ZE(e,t){var n,r,o=t.anchor,i=e;return t.clamp&&(i=function(e,t){for(var n,r,o,i=e.x0,s=e.y0,a=e.x1,l=e.y1,u=XE(i,s,t),c=XE(a,l,t);u|c&&!(u&c);)(n=u||c)&KE?(r=i+(a-i)*(t.top-s)/(l-s),o=t.top):n&YE?(r=i+(a-i)*(t.bottom-s)/(l-s),o=t.bottom):n&JE?(o=s+(l-s)*(t.right-i)/(a-i),r=t.right):n&GE&&(o=s+(l-s)*(t.left-i)/(a-i),r=t.left),n===u?u=XE(i=r,s=o,t):c=XE(a=r,l=o,t);return{x0:i,x1:a,y0:s,y1:l}}(i,t.area)),"start"===o?(n=i.x0,r=i.y0):"end"===o?(n=i.x1,r=i.y1):(n=(i.x0+i.x1)/2,r=(i.y0+i.y1)/2),function(e,t,n,r,o){switch(o){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),r=Math.sin(o)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var eP=function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),o=Math.sin(n),i=e.innerRadius,s=e.outerRadius;return ZE({x0:e.x+r*i,y0:e.y+o*i,x1:e.x+r*s,y1:e.y+o*s,vx:r,vy:o},t)},tP=function(e,t){var n=WE(e,t.origin),r=n.x*e.options.radius,o=n.y*e.options.radius;return ZE({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},nP=function(e,t){var n=WE(e,t.origin),r=e.x,o=e.y,i=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),i=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),ZE({x0:r,y0:o+s,x1:r+i,y1:o,vx:n.x,vy:n.y},t)},rP=function(e,t){var n=WE(e,t.origin);return ZE({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)},oP=function(e){return Math.round(e*QE)/QE};function iP(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function sP(e,t,n){var r=e.shadowBlur,o=n.stroked,i=oP(n.x),s=oP(n.y),a=oP(n.w);o&&e.strokeText(t,i,s,a),n.filled&&(r&&o&&(e.shadowBlur=0),e.fillText(t,i,s,a),r&&o&&(e.shadowBlur=r))}var aP=function(e,t,n,r){var o=this;o._config=e,o._index=r,o._model=null,o._rects=null,o._ctx=t,o._el=n};Zs(aP.prototype,{_modelize:function(e,t,n,r){var o,i=this,s=i._index,a=Ol(Tl([n.font,{}],r,s)),l=Tl([n.color,rl.color],r,s);return{align:Tl([n.align,"center"],r,s),anchor:Tl([n.anchor,"center"],r,s),area:r.chart.chartArea,backgroundColor:Tl([n.backgroundColor,null],r,s),borderColor:Tl([n.borderColor,null],r,s),borderRadius:Tl([n.borderRadius,0],r,s),borderWidth:Tl([n.borderWidth,0],r,s),clamp:Tl([n.clamp,!1],r,s),clip:Tl([n.clip,!1],r,s),color:l,display:e,font:a,lines:t,offset:Tl([n.offset,4],r,s),opacity:Tl([n.opacity,1],r,s),origin:iP(i._el,r),padding:Sl(Tl([n.padding,4],r,s)),positioner:(o=i._el,o instanceof mp?eP:o instanceof Sp?tP:o instanceof Ip?nP:rP),rotation:Tl([n.rotation,0],r,s)*(Math.PI/180),size:UE(i._ctx,t,a),textAlign:Tl([n.textAlign,"start"],r,s),textShadowBlur:Tl([n.textShadowBlur,0],r,s),textShadowColor:Tl([n.textShadowColor,l],r,s),textStrokeColor:Tl([n.textStrokeColor,l],r,s),textStrokeWidth:Tl([n.textStrokeWidth,0],r,s)}},update:function(e){var t,n,r,o=this,i=null,s=null,a=o._index,l=o._config,u=Tl([l.display,!0],e,a);u&&(t=e.dataset.data[a],(r=qs(n=Ws($s(l.formatter,[t,e]),t))?[]:function(e){var t,n=[];for(e=[].concat(e);e.length;)"string"==typeof(t=e.pop())?n.unshift.apply(n,t.split("\n")):Array.isArray(t)?e.push.apply(e,t):qs(e)||n.unshift(""+t);return n}(n)).length&&(s=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,o=e.size.width,i=-o/2,s=-r/2;return{frame:{x:i-n.left-t,y:s-n.top-t,w:o+n.width+2*t,h:r+n.height+2*t},text:{x:i,y:s,w:o,h:r}}}(i=o._modelize(u,r,l,e)))),o._model=i,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,r,o,i,s=e.ctx,a=this._model,l=this._rects;this.visible()&&(s.save(),a.clip&&(n=a.area,s.beginPath(),s.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),s.clip()),s.globalAlpha=(r=0,o=a.opacity,i=1,Math.max(r,Math.min(o,i))),s.translate(oP(t.x),oP(t.y)),s.rotate(a.rotation),function(e,t,n){var r=n.backgroundColor,o=n.borderColor,i=n.borderWidth;(r||o&&i)&&(e.beginPath(),function(e,t,n,r,o,i){var s=Math.PI/2;if(i){var a=Math.min(i,o/2,r/2),l=t+a,u=n+a,c=t+r-a,p=n+o-a;e.moveTo(t,u),l<c&&u<p?(e.arc(l,u,a,-Math.PI,-s),e.arc(c,u,a,-s,0),e.arc(c,p,a,0,s),e.arc(l,p,a,s,Math.PI)):l<c?(e.moveTo(l,n),e.arc(c,u,a,-s,s),e.arc(l,u,a,s,Math.PI+s)):u<p?(e.arc(l,u,a,-Math.PI,0),e.arc(l,p,a,0,Math.PI)):e.arc(l,u,a,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)}(e,oP(t.x)+i/2,oP(t.y)+i/2,oP(t.w)-i,oP(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),o&&i&&(e.strokeStyle=o,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}(s,l.frame,a),function(e,t,n,r){var o,i=r.textAlign,s=r.color,a=!!s,l=r.font,u=t.length,c=r.textStrokeColor,p=r.textStrokeWidth,d=c&&p;if(u&&(a||d))for(n=function(e,t,n){var r=n.lineHeight,o=e.w,i=e.x;return"center"===t?i+=o/2:"end"!==t&&"right"!==t||(i+=o),{h:r,w:o,x:i,y:e.y+r/2}}(n,i,l),e.font=l.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,a&&(e.fillStyle=s),d&&(e.lineJoin="round",e.lineWidth=p,e.strokeStyle=c),o=0,u=t.length;o<u;++o)sP(e,t[o],{stroked:d,filled:a,w:n.w,x:n.x,y:n.y+n.h*o})}(s,a.lines,l.text,a),s.restore())}});var lP=Number.MIN_SAFE_INTEGER||-9007199254740991,uP=Number.MAX_SAFE_INTEGER||9007199254740991;function cP(e,t,n){var r=Math.cos(n),o=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-o*(e.y-s),y:s+o*(e.x-i)+r*(e.y-s)}}function pP(e,t){var n,r,o,i,s,a=uP,l=lP,u=t.origin;for(n=0;n<e.length;++n)o=(r=e[n]).x-u.x,i=r.y-u.y,s=t.vx*o+t.vy*i,a=Math.min(a,s),l=Math.max(l,s);return{min:a,max:l}}function dP(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/o,vy:(t.y-e.y)/o,origin:e,ln:o}}var hP=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function fP(e,t,n){var r=t.positioner(e,t),o=r.vx,i=r.vy;if(!o&&!i)return{x:r.x,y:r.y};var s=n.w,a=n.h,l=t.rotation,u=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),c=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),p=1/Math.max(Math.abs(o),Math.abs(i));return u*=o*p,c*=i*p,u+=t.offset*o,c+=t.offset*i,{x:r.x+u,y:r.y+c}}Zs(hP.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=t._rect;return!((e=cP(e,t.center(),-t._rotation)).x<n.x-1||e.y<n.y-1||e.x>n.x+n.w+2||e.y>n.y+n.h+2)},intersects:function(e){var t,n,r,o=this._points(),i=e._points(),s=[dP(o[0],o[1]),dP(o[0],o[3])];for(this._rotation!==e._rotation&&s.push(dP(i[0],i[1]),dP(i[0],i[3])),t=0;t<s.length;++t)if(n=pP(o,s[t]),r=pP(i,s[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[cP({x:t.x,y:t.y},r,n),cP({x:t.x+t.w,y:t.y},r,n),cP({x:t.x+t.w,y:t.y+t.h},r,n),cP({x:t.x,y:t.y+t.h},r,n)]}});var mP={prepare:function(e){var t,n,r,o,i,s=[];for(t=0,r=e.length;t<r;++t)for(n=0,o=e[t].length;n<o;++n)i=e[t][n],s.push(i),i.$layout={_box:new hP,_hidable:!1,_visible:!0,_set:t,_idx:i._index};return s.sort((function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx})),this.update(s),s},update:function(e){var t,n,r,o,i,s=!1;for(t=0,n=e.length;t<n;++t)o=(r=e[t]).model(),(i=r.$layout)._hidable=o&&"auto"===o.display,i._visible=r.visible(),s|=i._hidable;s&&function(e){var t,n,r,o,i,s,a;for(t=0,n=e.length;t<n;++t)(o=(r=e[t]).$layout)._visible&&(a=new Proxy(r._el,{get:(e,t)=>e.getProps([t],!0)[t]}),i=r.geometry(),s=fP(a,r.model(),i),o._box.update(s,i,r.rotation()));!function(e,t){var n,r,o,i;for(n=e.length-1;n>=0;--n)for(o=e[n].$layout,r=n-1;r>=0&&o._visible;--r)(i=e[r].$layout)._visible&&o._box.intersects(i._box)&&t(o,i)}(e,(function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)}))}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,o,i,s,a;for(n=0,r=t.length;n<r;++n)(i=(o=t[n]).$layout)._visible&&(s=o.geometry(),a=fP(o._el,o.model(),s),i._box.update(a,s,o.rotation()),o.draw(e,a))}},gP={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(qs(e))return null;var t,n,r,o=e;if(zs(e))if(qs(e.label))if(qs(e.r))for(o="",r=0,n=(t=Object.keys(e)).length;r<n;++r)o+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else o=e.r;else o=e.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},yP="$datalabels",vP="$default";function bP(e,t,n,r){if(t){var o,i=n.$context,s=n.$groups;t[s._set]&&(o=t[s._set][s._key])&&!0===$s(o,[i,r])&&(e[yP]._dirty=!0,n.update(i))}}var CP={id:"datalabels",defaults:gP,beforeInit:function(e){e[yP]={_actives:[]}},beforeUpdate:function(e){var t=e[yP];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,o,i,s,a,l,u,c,p=t.index,d=e[yP],h=d._datasets[p]=[],f=e.isDatasetVisible(p),m=e.data.datasets[p],g=function(e,t){var n,r,o,i=e.datalabels,s=[];return!1===i?null:(!0===i&&(i={}),t=Zs({},[t,i]),r=t.labels||{},o=Object.keys(r),delete t.labels,o.length?o.forEach((function(e){r[e]&&s.push(Zs({},[t,r[e],{_key:e}]))})):s.push(t),n=s.reduce((function(e,t){return Gs(t.listeners||{},(function(n,r){e[r]=e[r]||{},e[r][t._key||vP]=n})),delete t.listeners,e}),{}),{labels:s,listeners:n})}(m,n),y=t.meta.data||[],v=e.ctx;for(v.save(),r=0,i=y.length;r<i;++r)if((u=y[r])[yP]=[],f&&u&&e.getDataVisibility(r)&&!u.skip)for(o=0,s=g.labels.length;o<s;++o)l=(a=g.labels[o])._key,(c=new aP(a,v,u,r)).$groups={_set:p,_key:l||vP},c.$context={active:!1,chart:e,dataIndex:r,dataset:m,datasetIndex:p},c.update(c.$context),u[yP].push(c),h.push(c);v.restore(),Zs(d._listeners,g.listeners,{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],d._listened=!0}})},afterUpdate:function(e){e[yP]._labels=mP.prepare(e[yP]._datasets)},afterDatasetsDraw:function(e){mP.draw(e,e[yP]._labels)},beforeEvent:function(e,t){if(e[yP]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":!function(e,t){var n,r,o=e[yP],i=o._listeners;if(i.enter||i.leave){if("mousemove"===t.type)r=mP.lookup(o._labels,t);else if("mouseout"!==t.type)return;n=o._hovered,o._hovered=r,function(e,t,n,r,o){var i,s;(n||r)&&(n?r?n!==r&&(s=i=!0):s=!0:i=!0,s&&bP(e,t.leave,n,o),i&&bP(e,t.enter,r,o))}(e,i,n,r,t)}}(e,n);break;case"click":!function(e,t){var n=e[yP],r=n._listeners.click,o=r&&mP.lookup(n._labels,t);o&&bP(e,r,o,t)}(e,n)}}},afterEvent:function(e){var t,n,r,o,i,s,a,l=e[yP],u=function(e,t){var n,r,o,i,s=e.slice(),a=[];for(n=0,o=t.length;n<o;++n)i=t[n],-1===(r=s.indexOf(i))?a.push([i,1]):s.splice(r,1);for(n=0,o=s.length;n<o;++n)a.push([s[n],-1]);return a}(l._actives,l._actives=e.getActiveElements());for(t=0,n=u.length;t<n;++t)if((i=u[t])[1])for(r=0,o=(a=i[0].element[yP]||[]).length;r<o;++r)(s=a[r]).$context.active=1===i[1],s.update(s.$context);(l._dirty||u.length)&&(mP.update(l._labels),e.render()),delete l._dirty}};const wP=function(e){var n=e.index,r=e.active,o=void 0===r||r;return t.createElement("div",{className:"d-inline-block m-2",key:n},o?t.createElement("div",{className:"color-of-badge-".concat(n%5),style:{width:"20px",height:"35px",margin:"2px"}}):t.createElement("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}))};var xP={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.y&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",ticks:{callback:function(e){return"".concat(e,"%")},stepSize:10},max:100,min:0},xBottom:{ticks:{callback:function(e){return"".concat(e,"%")},stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.xBottom&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.xBottom.options.min=n,e.chart.scales.xBottom.options.max=t,e.chart.scales.xBottom.min=n,e.chart.scales.xBottom.max=t}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function EP(){return t.createElement("div",{className:"d-flex justify-content-center bold-grey-12pt"},t.createElement(Tn,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center"},t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:0,index:0}),"Client Institutions"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:1,index:1}),"Commercial"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:2,index:2}),"European Funding"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:3,index:3}),"Gov/Public Bodies"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:4,index:4}),"Other")))}pp.register(Xp);const PP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/funding",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e){var t=wd(e),n=function(){var e=function(e,t,n){return"#"+[e,t,n].map((function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})).join("")},t=new Map;return t.set("client_institutions",e(157,40,114)),t.set("commercial",e(241,224,79)),t.set("european_funding",e(219,42,76)),t.set("gov_public_bodies",e(237,141,24)),t.set("other",e(137,166,121)),t}(),r=Kt(new Set(e.map((function(e){return e.year})))).sort(),o=Kt(new Set(e.map((function(e){return e.nren})))).sort(),i={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},s=Object.keys(i),a=(0,fd.o1)(Object.keys(i),r).reduce((function(e,t){var n=Rt(t,2),r=n[0],o=n[1];return e["".concat(r,",").concat(o)]={},e}),{});t.forEach((function(e,t){e.forEach((function(e,n){var r=s.map((function(t){return e[t]||0})),o=r.reduce((function(e,t){return e+t}),0);if(0!==o)for(var i=0,l=s;i<l.length;i++){var u=l[i],c="".concat(u,",").concat(n),p=s.indexOf(u);a[c][t]=r[p]}}))}));var l=Array.from(Object.entries(a)).map((function(e){var t=Rt(e,2),r=t[0],a=t[1],l=Rt(r.split(","),2),u=l[0],c=l[1];return{backgroundColor:n.get(u)||"black",label:i[u]+" ("+c+")",data:o.map((function(e){return a[e]})),stack:c,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:u==s[0],formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}})),u={datasets:l,labels:o.map((function(e){return e.toString()}))};return u}(l);u.datasets.forEach((function(e){e.data=e.data.filter((function(e,t){return n.selectedNrens.includes(u.labels[t])}))})),u.labels=u.labels.filter((function(e){return n.selectedNrens.includes(e)}));var c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=n.selectedNrens.length*n.selectedYears.length*2+5;return t.createElement(KC,{title:"Income Source Of NRENs",description:t.createElement("span",null,'The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',t.createElement("br",null),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."),category:Tr.Organisation,filter:c,data:l,filename:"income_source_of_nren_per_year"},t.createElement(IE,null,t.createElement(EP,null),t.createElement("div",{className:"chart-container",style:{height:"".concat(p,"rem")}},t.createElement(hd,{plugins:[CP],data:u,options:xP})),t.createElement(EP,null)))},SP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/parent-organizations",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(wd(l),(function(e,t){var n=t.name;e[n]=n})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,max1year:!0});return t.createElement(KC,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:Tr.Organisation,filter:c,data:l,filename:"nren_parent_organisations"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})))},OP=function(e){var n=e.children,r=e.location;r||(r="both");var o="top"===r||"both"===r,i="bottom"===r||"both"===r;return t.createElement(IE,null,o&&t.createElement("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),n,i&&t.createElement("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}))};function TP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _P={id:"htmlLegend",afterUpdate:function(e,t,n){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return TP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(n.containerIDs);try{var i,s=function(){var t=function(e,t){var n=document.getElementById(t);if(!n)return null;var r=n.querySelector("ul");return r||((r=document.createElement("ul")).style.display="flex",r.style.flexDirection="row",r.style.margin="0",r.style.padding="0",n.appendChild(r)),r}(0,r.value);if(!t)return{v:void 0};for(;t.firstChild;)t.firstChild.remove();e.options.plugins.legend.labels.generateLabels(e).forEach((function(n){var r=document.createElement("li");r.style.alignItems="center",r.style.cursor="pointer",r.style.display="flex",r.style.flexDirection="row",r.style.marginLeft="10px",r.onclick=function(){var t=e.config.type;"pie"===t||"doughnut"===t?e.toggleDataVisibility(n.index):e.setDatasetVisibility(n.datasetIndex,!e.isDatasetVisible(n.datasetIndex)),e.update()};var o=document.createElement("span");o.style.background=n.fillStyle,o.style.borderColor=n.strokeStyle,o.style.borderWidth=n.lineWidth+"px",o.style.display="inline-block",o.style.height="1rem",o.style.marginRight="10px",o.style.width="2.5rem";var i=document.createElement("p");i.style.color=n.fontColor,i.style.margin="0",i.style.padding="0",i.style.textDecoration=n.hidden?"line-through":"",i.style.fontSize="".concat(pp.defaults.font.size,"px"),i.style.fontFamily="".concat(pp.defaults.font.family),i.style.fontWeight="".concat(pp.defaults.font.weight);var s=document.createTextNode(n.text);i.appendChild(s),r.appendChild(o),r.appendChild(i),t.appendChild(r)}))};for(o.s();!(r=o.n()).done;)if(i=s())return i.v}catch(e){o.e(e)}finally{o.f()}}};const VP=_P;pp.register(ed,rd,Ip,Lp,Xp,Np);var RP={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.x&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(e,t){return"".concat(10*t,"%")}}},x2:{ticks:{callback:function(e){return"number"==typeof e?"".concat(e,"%"):e}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const IP=function(e){var n=e.roles,r=void 0!==n&&n,o=(0,t.useContext)(qt),i=o.filterSelection,s=o.setFilterSelection,a=AE("/api/staff",s,(function(e){return r&&e.technical_fte>0&&e.non_technical_fte>0||!r&&e.permanent_fte>0&&e.subcontracted_fte>0})),l=a.data,u=a.years,c=a.nrens,p=l.filter((function(e){return i.selectedYears.includes(e.year)&&i.selectedNrens.includes(e.nren)})),d=function(e,t,n){var r,o={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},i=Rt(r=t?["Technical FTE","Non-technical FTE"]:["Permanent FTE","Subcontracted FTE"],2),s=i[0],a=i[1],l=[o[s],o[a]],u=l[0],c=l[1],p=wd(e),d=[n].sort(),h=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),f=(0,fd.o1)(r,d).map((function(e){var t=Rt(e,2),n=t[0],r=t[1],o="";return"Technical FTE"===n?o="rgba(40, 40, 250, 0.8)":"Permanent FTE"===n?o="rgba(159, 129, 235, 1)":"Subcontracted FTE"===n?o="rgba(173, 216, 229, 1)":"Non-technical FTE"===n&&(o="rgba(116, 216, 242, 0.54)"),{backgroundColor:o,label:"".concat(n," (").concat(r,")"),data:h.map((function(e){var t,o,i,l,d,h,f,m=p.get(e).get(r);return m?(o=(t=m)[u],i=t[c],d=100*(o/(l=o+i)||0),h=100*(i/l||0),(f={})[s]=Math.round(Math.floor(100*d))/100,f[a]=Math.round(Math.floor(100*h))/100,f)[n]:0})),stack:r,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:f,labels:h}}(p,r,i.selectedYears[0]),h=t.createElement(RE,{max1year:!0,filterOptions:{availableYears:Kt(u),availableNrens:Kt(c.values())},filterSelection:i,setFilterSelection:s}),f=p.length,m=Math.max(1.5*f,20),g=r?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",y=r?"The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format":"The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.",v=r?"roles_of_nren_employees":"types_of_employment_for_nrens";return t.createElement(KC,{title:g,description:y,category:Tr.Organisation,filter:h,data:p,filename:v},t.createElement(OP,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(m,"rem")}},t.createElement(hd,{data:d,options:RP,plugins:[VP]}))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const kP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/staff",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e,t){var n=["Permanent FTE","Subcontracted FTE"],r={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},o=[r[n[0]],r[n[1]]],i=o[0],s=o[1],a=wd(e),l=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),u=t.sort().map((function(e,t){return{backgroundColor:"rgba(219, 42, 76, 1)",label:"Number of FTEs (".concat(e,")"),data:l.map((function(t){var n,r,o=a.get(t).get(e);return o?(null!==(n=o[i])&&void 0!==n?n:0)+(null!==(r=o[s])&&void 0!==r?r:0):0})),stack:"".concat(e),borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}}));return{datasets:u,labels:l}}(l,n.selectedYears),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=n.selectedNrens.length,d=Math.max(p*n.selectedYears.length*1.5+5,50),h=NE({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"});return t.createElement(KC,{title:"Number of NREN Employees",description:'The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.',category:Tr.Organisation,filter:c,data:l,filename:"number_of_nren_employees"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:h,plugins:[CP]}))))};function AP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const DP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/sub-organizations",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return AP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t.sort((function(e,t){return e.name.localeCompare(t.name)})));try{for(r.s();!(n=r.n()).done;){var o=n.value,i="".concat(o.name," (").concat(o.role,")");e[i]=i}}catch(e){r.e(e)}finally{r.f()}})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Sub-Organisations",description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:Tr.Organisation,filter:c,data:l,filename:"nren_suborganisations"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Suborganisation and Role",dottedBorder:!0})))},NP=function(){var e="audits",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/standards",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)&&null!==t[e]})),c=yd(Ed(u,e),(function(e,t){if(t.audit_specifics)return t.audit_specifics})),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"External and Internal Audits of Information Security Management Systems",description:"The table below shows whether NRENs have external and/or internal audits of the information security management systems (eg. risk management and policies). Where extra information has been provided, such as whether a certified security auditor on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator mark ringed in black.",category:Tr.Policy,filter:h,data:u,filename:"audits_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},MP=function(){var e="business_continuity_plans",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/standards",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)&&null!==t[e]})),c=yd(Ed(u,e),(function(e,t){if(t.business_continuity_plans_specifics)return t.business_continuity_plans_specifics})),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"NREN Business Continuity Planning",description:"The table below shows which NRENs have business continuity plans in place to ensure business continuation and operations. Extra details about whether the NREN complies with any international standards, and whether they test the continuity plans regularly can be seen by hovering over the marker. The presence of this extra information is denoted by a black ring around the marker.",category:Tr.Policy,filter:h,data:u,filename:"business_continuity_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))};pp.register(ed,rd,Ip,Lp,Xp,Np);const LP=function(){var e="amount",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/central-procurement",o,(function(t){return null!=t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=Od(u,e,"Procurement Value"),p=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o}),d=r.selectedNrens.length,h=Math.max(d*r.selectedYears.length*1.5+5,50),f=t.createElement("span",null,"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."),m=NE({title:"Software Procurement Value",valueTransform:function(e){var t=new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"});return"".concat(t.format(e))}});return t.createElement(KC,{title:"Value of Software Procured for Customers by NRENs",description:f,category:Tr.Policy,filter:p,data:u,filename:"central_procurement"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(h,"rem")}},t.createElement(hd,{data:c,options:m,plugins:[CP]}))))},jP=function(){var e="strategic_plan",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/policy",o,(function(t){return!!t[e]})),s=i.data,a=(i.years,i.nrens),l=(s?vd(s):[]).filter((function(e){return r.selectedNrens.includes(e.nren)})),u=xd(wd(l),(function(t,n){var r=n[e];t[r]=r})),c=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(a.values())},filterSelection:r,setFilterSelection:o});return t.createElement(KC,{title:"NREN Corporate Strategies",description:"The table below contains links to the NRENs most recent corporate strategic plans. NRENs are asked if updates have been made to their corporate strategy over the previous year. To avoid showing outdated links, only the most recent responses are shown.",category:Tr.Policy,filter:c,data:l,filename:"nren_corporate_strategy"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})))},FP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/crisis-exercises",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"exercise_descriptions"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"},d=new Map(Object.entries(p).map((function(e){var t=Rt(e,2),n=t[0];return[t[1],n]})));return t.createElement(KC,{title:"Crisis Exercises - NREN Operation and Participation",description:"Many NRENs run or participate in crisis exercises to test procedures and train employees. The table below shows whether NRENs have run or participated in an exercise in the previous year. ",category:Tr.Policy,filter:c,data:l,filename:"crisis_exercise_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:Object.values(p),dataLookup:u,circle:!0,columnLookup:d})))},BP=function(){var e="crisis_management_procedure",n=function(t){return null!==t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/standards",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Ed(c,e),d=["Yes","No"],h=new Map([[d[0],"True"],[d[1],"False"]]),f=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i,coloredYears:!0});return t.createElement(KC,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:Tr.Policy,filter:f,data:c,filename:"crisis_management_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:d,columnLookup:h,dataLookup:p})))},qP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/policy",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]].forEach((function(n){var r=Rt(n,2),o=r[0],i=r[1],s=t[o];s&&(e[i]=s)}))})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Policies",description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:Tr.Policy,filter:u,data:a,filename:"nren_policies"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})))},HP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/security-controls",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"security_control_descriptions"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"},d=new Map(Object.entries(p).map((function(e){var t=Rt(e,2),n=t[0];return[t[1],n]})));return t.createElement(KC,{title:"Security Controls Used by NRENs",description:"The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.",category:Tr.Policy,filter:c,data:l,filename:"security_control_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:Object.values(p),dataLookup:u,circle:!0,columnLookup:d})))},zP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/service-management",r),i=o.data,s=o.years,a=o.nrens,l="service_level_targets",u=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)&&null!==e[l]})),c=Ed(u,l),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs Offering Service Level Targets",description:"The table below shows which NRENs offer Service Levels Targets for their services. If NRENs have never responded to this question in the survey, they are excluded. ",category:Tr.Policy,filter:h,data:u,filename:"service_level_targets"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},QP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/service-management",r),i=o.data,s=o.years,a=o.nrens,l="service_management_framework",u=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)&&null!==e[l]})),c=Ed(u,l),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs Operating a Formal Service Management Framework",description:"The chart below shows which NRENs operate a formal service management framework for all of their services. NRENs which have never answered this question cannot be selected.",category:Tr.Policy,filter:h,data:u,filename:"service_management_framework"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))};var UP=t.createElement("span",null,"✔");function WP(e){var n=e.dataLookup,r=e.rowInfo,o=e.categoryLookup,i=e.isTickIcon,s=void 0!==i&&i;if(!n)return t.createElement("div",{className:"matrix-border"});var a=Object.entries(o).map((function(e){var o,i=Rt(e,2),a=i[0],l=i[1],u=Object.entries(r).map((function(e){var r=Rt(e,2),o=r[0],i=r[1],l=[];return n.forEach((function(e){e.forEach((function(e){var t=e.get(a);if(t){var n=t[i];null!=n&&(n=Object.values(n)[0]);var r=null!=n&&s?UP:n;l.push(r)}}))})),l.length?t.createElement("tr",{key:o},t.createElement("th",{className:"fixed-column"},o),l.map((function(e,n){return t.createElement("td",{key:n},e)}))):null})),c=Array.from(n.entries()).reduce((function(e,t){var n=Rt(t,2),r=n[0],o=n[1];return Array.from(o.entries()).forEach((function(t){var n=Rt(t,2),o=n[0];n[1].get(a)&&(e[r]||(e[r]=[]),e[r].push(o))})),e}),{});return t.createElement(Er,{title:l,startCollapsed:!0,key:a,theme:"-matrix"},u?t.createElement("div",{className:"table-responsive"},t.createElement(jE,{className:"matrix-table",bordered:!0},t.createElement("thead",null,(o=Object.entries(c),t.createElement(t.Fragment,null,t.createElement("tr",null,t.createElement("th",{className:"fixed-column"}),o.map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("th",{key:r,colSpan:o.length,style:{width:"".concat(8*o.length,"rem")}},r)}))),t.createElement("tr",null,t.createElement("th",{className:"fixed-column"}),o.flatMap((function(e){var n=Rt(e,2),r=n[0];return n[1].map((function(e){return t.createElement("th",{key:"".concat(r,"-").concat(e)},e)}))})))))),t.createElement("tbody",null,u))):t.createElement("div",{style:{paddingLeft:"5%"}},t.createElement("p",null,"No data available for this section.")))}));return t.createElement("div",{className:"matrix-border"},a)}const $P=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/services-offered",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Pd(l,["service_category"],"user_category"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"Services Offered by NRENs by Types of Users",description:t.createElement("span",null,"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."),category:Tr.Policy,filter:c,data:l,filename:"nren_services_offered"},t.createElement(IE,null,t.createElement(WP,{dataLookup:u,rowInfo:{"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},categoryLookup:Rr,isTickIcon:!0})))};function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GP(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const YP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/institution-urls",r),i=o.data,s=o.nrens,a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r}),c=a.map((function(e){var t;return JP(JP({},e),{},{urls:(null!==(t=e.urls)&&void 0!==t?t:[]).join(", ")})}));return t.createElement(KC,{title:"Webpages Listing Institutions and Organisations Connected to NREN Networks",description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:Tr.ConnectedUsers,filter:u,data:c,filename:"institution_urls"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})))};var KP=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,"Proportion of Different Categories of Institutions Served by NRENs"),dn.ConnectivityLevel,"Level of IP Connectivity by Institution Type"),dn.ConnectionCarrier,"Methods of Carrying IP Traffic to Users"),dn.ConnectivityLoad,"Connectivity Load"),dn.ConnectivityGrowth,"Connectivity Growth"),dn.CommercialChargingLevel,"Commercial Charging Level"),dn.CommercialConnectivity,"Commercial Connectivity"),XP=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,t.createElement("span",null,"European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",t.createElement("br",null),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category.")),dn.ConnectivityLevel,t.createElement("span",null,"The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",t.createElement("br",null),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer.")),dn.ConnectionCarrier,t.createElement("span",null,"The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",t.createElement(St,{to:"/connected-proportion",className:""},t.createElement("span",null,KP[dn.ConnectedProportion])))),dn.ConnectivityLoad,t.createElement("span",null,"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types.")),dn.ConnectivityGrowth,t.createElement("span",null,"The table below illustrates the anticipated traffic growth within NREN networks over the next three years.")),dn.CommercialChargingLevel,t.createElement("span",null,"The table below outlines the typical charging levels for various types of commercial connections.")),dn.CommercialConnectivity,t.createElement("span",null,"The table below outlines the types of commercial organizations NRENs connect.")),ZP=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"}),dn.ConnectivityLevel,{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"}),dn.ConnectionCarrier,{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"}),dn.ConnectivityLoad,{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"}),dn.ConnectivityGrowth,{"Percentage growth":"growth"}),dn.CommercialChargingLevel,{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"}),dn.CommercialConnectivity,{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"});const eS=function(e){var n,r,o=e.page,i="/api/connected-".concat(o.toString()),s=(0,t.useContext)(qt),a=s.filterSelection,l=s.setFilterSelection,u=AE(i,l),c=u.data,p=u.years,d=u.nrens,h=c.filter((function(e){return a.selectedYears.includes(e.year)&&a.selectedNrens.includes(e.nren)})),f=!1;if(o==dn.CommercialConnectivity)r=Ir,f=!0,n=Pd(h,Object.keys(Ir),void 0);else if(o==dn.CommercialChargingLevel)r=kr,f=!0,n=Pd(h,Object.keys(kr),void 0);else if(o==dn.ConnectionCarrier)r=Rr,f=!0,n=Pd(h,["carry_mechanism"],"user_category");else if(o==dn.ConnectedProportion){r=Rr;var m={yes_incl_other:"Yes - including transit to other networks",yes_national_nren:"Yes - national NREN access",sometimes:"In some circumstances",no_policy:"No - not eligible for policy reasons",no_financial:"No - financial restrictions",no_other:"No - other reason",unsure:"Unsure/unclear"},g="coverage";n=Pd(h,Object.values(ZP[o]),"user_category",!1,(function(e){var t=e[g];return m[t]&&(e[g]=m[t]),e}))}else r=Rr,n=Pd(h,Object.values(ZP[o]),"user_category",!1);var y=t.createElement(RE,{filterOptions:{availableYears:Kt(p),availableNrens:Kt(d.values())},filterSelection:a,setFilterSelection:l}),v=ZP[o],b="nren_connected_".concat(o.toString());return t.createElement(KC,{title:KP[o],description:XP[o],category:Tr.ConnectedUsers,filter:y,data:h,filename:b},t.createElement(IE,null,t.createElement(WP,{dataLookup:n,rowInfo:v,isTickIcon:f,categoryLookup:r})))},tS=function(e){var n=e.data,r=e.dottedBorder,o=e.columns;return t.createElement(jE,{borderless:!0,className:"compendium-table"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"nren-column"},t.createElement("span",null,"NREN")),t.createElement("th",{className:"year-column"},t.createElement("span",null,"Year")),Object.values(o).map((function(e,n){return t.createElement("th",{key:n,className:"blue-column"},t.createElement("span",null,e))})))),t.createElement("tbody",null,function(e){var n=e.data,r=e.dottedBorder,o=void 0!==r&&r,i=e.columns;return Array.from(n.entries()).map((function(e){var n=Rt(e,2),r=n[0],s=n[1];return Array.from(s.entries()).map((function(e,n){var s=Rt(e,2),a=s[0],l=s[1];return t.createElement("tr",{key:r+a,className:o?"dotted-border":""},t.createElement("td",{className:"pt-3 nren-column text-nowrap"},0===n&&r),t.createElement("td",{className:"pt-3 year-column"},a),Object.keys(i).map((function(e,n){return t.createElement("td",{key:n,className:"pt-3 blue-column"},l[e])})))}))}))}({data:n,dottedBorder:r,columns:o})))};function nS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const rS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/remote-campuses",r,(function(e){return!!e.remote_campus_connectivity})),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nS(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.remote_campus_connectivity){var i=o.connections.map((function(e){return e.country})).join(", ");e.countries=i,e.local_r_and_e_connection=o.connections.map((function(e){return e.local_r_and_e_connection?"Yes":"No"})).join(", ")}}}catch(e){r.e(e)}finally{r.f()}})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Connectivity to Remote Campuses in Other Countries",description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:Tr.ConnectedUsers,filter:c,data:l,filename:"nren_remote_campuses"},t.createElement(IE,null,t.createElement(tS,{data:u,columns:{countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},dottedBorder:!0})))},oS=function(){var e="alien_wave_third_party",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/alien-wave",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=yd(Ed(u,e),(function(e,t){if(t.nr_of_alien_wave_third_party_services)return"No. of alien wavelength services: ".concat(t.nr_of_alien_wave_third_party_services," ")})),p=["Yes","Planned","No"],d=new Map([[p[0],"yes"],[p[1],"planned"],[p[2],"no"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"NREN Use of 3rd Party Alienwave/Lightpath Services",description:"The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source (transponder) operates in the same management domain as the amplifiers. Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over box. These are indicated by a black line around the coloured marker.",category:Tr.Network,filter:h,data:u,filename:"alien_wave_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},iS=function(){var e="alien_wave_internal",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/alien-wave",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=Ed(u,e),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"Internal NREN Use of Alien Waves",description:"The table below shows NREN usage of alien waves internally within their own networks. This includes, for example, alien waves used between two equipment vendors, eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment. In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source (transponder) operates in the same management domain as the amplifiers.",category:Tr.Network,filter:h,data:u,filename:"alien_wave_internal_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},sS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/network-automation",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"network_automation"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=Kt(n.selectedYears.filter((function(e){return s.has(e)}))).sort();return t.createElement(KC,{title:"Network Tasks for which NRENs Use Automation ",description:"The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate. Where NRENs indicated that they are using automation for some network tasks, but did not specify which type of tasks, a marker has been placed in the 'other' column.",category:Tr.Network,filter:c,data:l,filename:"network_automation_nrens_per_year"},t.createElement(IE,null,t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),t.createElement("th",{colSpan:2},"Device Provisioning"),t.createElement("th",{colSpan:2},"Data Collection"),t.createElement("th",{colSpan:2},"Configuration Management"),t.createElement("th",{colSpan:2},"Compliance"),t.createElement("th",{colSpan:2},"Reporting"),t.createElement("th",{colSpan:2},"Troubleshooting"),t.createElement("th",{colSpan:2},"Other")),t.createElement("tr",null,t.createElement("th",null),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"))),t.createElement("tbody",null,Array.from(u.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map((function(e){return t.createElement(t.Fragment,null,t.createElement("td",{key:"".concat(r,"-").concat(e,"-yes")},o.has("yes")&&p.map((function(n){var r,i,s=null===(r=o.get("yes"))||void 0===r?void 0:r.get(n),a=s?s.network_automation_specifics:null;return t.createElement(FE,{key:n,year:n,active:!(null===(i=o.get("yes"))||void 0===i||!i.has(n)||!(a&&a.indexOf(e)>-1)),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(r,"-").concat(e,"-planned")},o.has("planned")&&p.map((function(n){var r,i,s=null===(r=o.get("planned"))||void 0===r?void 0:r.get(n),a=s?s.network_automation_specifics:null;return t.createElement(FE,{key:n,year:n,active:!(null===(i=o.get("planned"))||void 0===i||!i.has(n)||!(a&&a.indexOf(e)>-1)),tooltip:"",rounded:!0})}))))})),t.createElement("td",{key:"".concat(r,"-other-yes")},o.has("yes")&&p.map((function(e){var n,r,i=null===(n=o.get("yes"))||void 0===n?void 0:n.get(e),s=i?i.network_automation_specifics:null;return t.createElement(FE,{key:e,year:e,active:!(null===(r=o.get("yes"))||void 0===r||!r.has(e)||!s||0!=s.length),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(r,"-other-planned")},o.has("planned")&&p.map((function(e){var n,r,i=null===(n=o.get("planned"))||void 0===n?void 0:n.get(e),s=i?i.network_automation_specifics:null;return t.createElement(FE,{key:e,year:e,active:!(null===(r=o.get("planned"))||void 0===r||!r.has(e)||!s||0!=s.length),tooltip:"",rounded:!0})}))))}))))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const aS=function(){var e="typical_backbone_capacity",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/capacity",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Od(c,e,"Backbone IP Capacity"),d=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),h=o.selectedNrens.length,f=Math.max(h*o.selectedYears.length*1.5+5,50),m="NREN Core IP Capacity",g=NE({title:m,tooltipUnit:"Gbit/s",unit:"Gbit/s"});return t.createElement(KC,{title:m,description:"The graph below shows the typical core usable backbone IP capacity of \n NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over \n the network.",category:Tr.Network,filter:d,data:c,filename:"capacity_core_ip"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},t.createElement(hd,{data:p,options:g,plugins:[CP]}))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const lS=function(){var e="largest_link_capacity",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/capacity",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Od(c,e,"Link capacity"),d=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),h=o.selectedNrens.length,f=Math.max(h*o.selectedYears.length*1.5+5,50),m="Capacity of the Largest Link in an NREN Network",g=NE({title:m,tooltipUnit:"Gbit/s",unit:"Gbit/s"});return t.createElement(KC,{title:m,description:"NRENs were asked to give the capacity (in Gbits/s) of the largest link in \n their network used for internet traffic (either shared or dedicated). While they were invited to \n provide the sum of aggregated links, backup capacity was not to be included.",category:Tr.Network,filter:d,data:c,filename:"capacity_largest_link"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},t.createElement(hd,{data:p,options:g,plugins:[CP]}))))},uS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/certificate-providers",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"provider_names"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=new Map([["Sectigo (outside of TCS)","Sectigo"]]);return t.createElement(KC,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"certificate_provider_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],dataLookup:u,circle:!0,columnLookup:p})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const cS=function(e){var n=e.national,r=n?"fibre_length_in_country":"fibre_length_outside_country",o=function(e){return null!=e[r]},i=(0,t.useContext)(qt),s=i.filterSelection,a=i.setFilterSelection,l=AE("/api/dark-fibre-lease",a,o),u=l.data,c=l.nrens,p=u.filter((function(e){return s.selectedNrens.includes(e.nren)&&o(e)})),d=Sd(p,r),h=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(c.values())},filterSelection:s,setFilterSelection:a}),f=DE({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),m=t.createElement("span",null,"This graph shows the number of Kilometres of dark fibre leased by NRENs ",n?"within":"outside"," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.");return t.createElement(KC,{title:"Kilometres of Leased Dark Fibre (".concat(n?"National":"International",")"),description:m,category:Tr.Network,filter:h,data:p,filename:"dark_fibre_lease_".concat(n?"national":"international")},t.createElement(IE,null,t.createElement(dd,{data:d,options:f})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const pS=function(){var e="fibre_length_in_country",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/dark-fibre-installed",i,n),a=s.data,l=s.nrens,u=a.filter((function(e){return o.selectedNrens.includes(e.nren)&&n(e)})),c=Sd(u,e),p=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(l.values())},filterSelection:o,setFilterSelection:i}),d=DE({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),h=t.createElement("span",null,"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.");return t.createElement(KC,{title:"Kilometres of Installed Dark Fibre",description:h,category:Tr.Network,filter:p,data:u,filename:"dark_fibre_lease_installed"},t.createElement(IE,null,t.createElement(dd,{data:c,options:d})))};function dS(e){var n=e.dataLookup,r=e.columnInfo;if(!n)return t.createElement("div",{className:"matrix-border-round"});var o=Array.from(n.entries()).map((function(e){var n=Rt(e,2),o=n[0],i=n[1];return t.createElement(Er,{title:o,key:o,theme:"-table",startCollapsed:!0},t.createElement("div",{className:"scrollable-horizontal"},Array.from(i.entries()).map((function(e,n){var o=Rt(e,2),i=o[0],s=o[1],a={"--before-color":0==n?"":"var(--color-of-the-year-muted-".concat(i%9,")")};return t.createElement("div",{key:i,style:{position:"relative"}},t.createElement("span",{className:"scrollable-table-year color-of-the-year-".concat(i%9," bold-caps-16pt pt-3 ps-3"),style:a},i),t.createElement("div",{className:"colored-table bg-muted-color-of-the-year-".concat(i%9)},t.createElement(jE,null,t.createElement("thead",null,t.createElement("tr",null,Object.keys(r).map((function(e){return t.createElement("th",{key:e,style:{position:"relative"}},t.createElement("span",{style:a},e))})))),t.createElement("tbody",null,s.map((function(e,n){return t.createElement("tr",{key:n},Object.entries(r).map((function(n){var r=Rt(n,2),o=r[0],i=r[1],s=e[i];return t.createElement("td",{key:o},s)})))}))))))}))))}));return t.createElement("div",{className:"matrix-border-round"},o)}const hS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/external-connections",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Cd(Kt(l)),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=t.createElement(t.Fragment,null,t.createElement("p",null,"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."),t.createElement("p",null,"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."));return t.createElement(KC,{title:"NREN External IP Connections",description:p,category:Tr.Network,filter:c,data:l,filename:"nren_external_connections"},t.createElement(IE,null,t.createElement(dS,{dataLookup:u,columnInfo:{"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"}})))},fS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/fibre-light",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"light_description"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],d=new Map([[p[0],"nren_owns_and_operates"],[p[1],"nren_owns_outsourced_operation"],[p[2],"outsourced_ownership_and_operation"]]);return t.createElement(KC,{title:"Approaches to lighting NREN fibre networks",description:"This graphic shows the different ways NRENs can light their fibre networks. The option 'Other' is given, with extra information if you hover over the icon.",category:Tr.Network,filter:c,data:l,filename:"fibre_light_of_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d,circle:!0})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const mS=function(){var e="iru_duration",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/dark-fibre-lease",o,(function(t){return null!=t[e]})),s=i.data,a=i.nrens,l=s.filter((function(e){return r.selectedNrens.includes(e.nren)})),u=Sd(l,e),c=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(a.values())},filterSelection:r,setFilterSelection:o}),p=DE({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999});return t.createElement(KC,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:t.createElement("span",null,"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."),category:Tr.Network,filter:c,data:l,filename:"iru_duration_data"},t.createElement(IE,null,t.createElement(dd,{data:u,options:p})))},gS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/monitoring-tools",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=yd(Ed(l,"tool_descriptions"),(function(e,t){if("netflow_analysis"===e&&t.netflow_processing_description)return t.netflow_processing_description})),c=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[c[0],"looking_glass"],[c[1],"status_dashboard"],[c[2],"historical_traffic_volumes"],[c[3],"netflow_analysis"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",description:"The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.",category:Tr.Network,filter:d,data:l,filename:"monitoring_tools_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},yS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/nfv",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"nfv_specifics"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=Kt(n.selectedYears.filter((function(e){return s.has(e)}))).sort();return t.createElement(KC,{title:"Kinds of Network Function Virtualisation used by NRENs ",description:"The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"network_function_virtualisation_nrens_per_year"},t.createElement(IE,null,t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"20%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),t.createElement("th",{colSpan:2},"Routers/switches"),t.createElement("th",{colSpan:2},"Firewalls"),t.createElement("th",{colSpan:2},"Load balancers"),t.createElement("th",{colSpan:2},"VPN Concentrator Services"),t.createElement("th",{colSpan:2},"Other")),t.createElement("tr",null,t.createElement("th",null),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"))),t.createElement("tbody",null,Array.from(u.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),["routers","firewalls","load_balancers","vpn_concentrators"].map((function(e){return t.createElement(t.Fragment,null,t.createElement("td",{key:"".concat(e,"-yes")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"yes"!=i.nfv),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(e,"-planned")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"planned"!=i.nfv),tooltip:"",rounded:!0})}))))})),t.createElement("td",{key:"".concat(r,"-other-yes")},Array.from(o.keys()).filter((function(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)})).map((function(e){return t.createElement("div",{key:"".concat(e,"-yes")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"yes"!=(null==i?void 0:i.nfv)),tooltip:e,rounded:!0})})))}))),t.createElement("td",{key:"".concat(r,"-other-planned")},Array.from(o.keys()).filter((function(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)})).map((function(e){return t.createElement("div",{key:"".concat(e,"-planned")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"planned"!=(null==i?void 0:i.nfv)),tooltip:e,rounded:!0})})))}))))}))))))},vS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/network-map-urls",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:Tr.Network,filter:u,data:a,filename:"network_map_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};pp.register(ed,rd,Ip,Lp,Xp,Np);const bS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/non-re-peers",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Od(l,"nr_of_non_r_and_e_peers","Number of Peers"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=n.selectedNrens.length,d=Math.max(p*n.selectedYears.length*1.5+5,50),h=NE({title:"Number of Non-R&E Peers"});return t.createElement(KC,{title:"Number of Non-R&E Networks NRENs Peer With",description:"The graph below shows the number of non-Research and Education networks \n NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google",category:Tr.Network,filter:c,data:l,filename:"non_r_and_e_peering"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:h,plugins:[CP]}))))},CS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/ops-automation",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=yd(Ed(l,"ops_automation"),(function(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics})),c=["Yes","Planned","No"],p=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Automation of Operational Processes",description:"The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate.",category:Tr.Network,filter:d,data:l,filename:"ops_automation_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},wS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/passive-monitoring",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"method",!0),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],d=new Map([[p[0],"null"],[p[1],"span_ports"],[p[2],"taps"],[p[3],"both"]]);return t.createElement(KC,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:Tr.Network,filter:c,data:l,filename:"passive_monitoring_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d})))},xS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/pert-team",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"pert_team"),c=["Yes","Planned","No"],p=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs with Performance Enhancement Response Teams",description:"Some NRENs have an in-house Performance Enhancement Response Team, or PERT, to investigate network performance issues.",category:Tr.Network,filter:d,data:l,filename:"pert_team_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},ES=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/siem-vendors",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"vendor_names"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Vendors of SIEM/SOC systems used by NRENs",description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"siem_vendor_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],dataLookup:u,circle:!0})))};pp.register(ed,rd,Ip,Lp,Xp,Np);var PS={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.x&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(e,t){return"".concat(10*t,"%")}}},x2:{ticks:{callback:function(e){return"number"==typeof e?"".concat(e,"%"):e}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const SS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-ratio",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e,t){var n={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},r=wd(e),o=[t].sort(),i=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),s=(0,fd.o1)(["Research & Education","Commodity"],o).map((function(e){var t=Rt(e,2),o=t[0],s=t[1],a="";return"Research & Education"===o?a="rgba(40, 40, 250, 0.8)":"Commodity"===o&&(a="rgba(116, 216, 242, 0.54)"),{backgroundColor:a,label:"".concat(o," (").concat(s,")"),data:i.map((function(e){var t=r.get(e).get(s);return t?t[n[o]]:0})),stack:s,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:s,labels:i}}(l,n.selectedYears[0]),c=t.createElement(RE,{max1year:!0,filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=Array.from(new Set(l.map((function(e){return e.nren})))).map((function(e){return a.get(e)})).filter((function(e){return!!e})).length,d=Math.max(1.5*p,20);return t.createElement(KC,{title:"Types of traffic in NREN networks (Commodity v. Research & Education)",description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:Tr.Network,filter:c,data:l,filename:"types_of_traffic_in_nren_networks"},t.createElement(OP,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:PS,plugins:[VP]}))))},OS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-stats",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:Tr.Network,filter:u,data:a,filename:"traffic_stats_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const TS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-volume",r),i=o.data,s=(o.years,o.nrens),a=i.filter((function(e){return n.selectedNrens.includes(e.nren)})),l=Sd(a,"from_customers"),u=Sd(a,"to_customers"),c=Sd(a,"from_external"),p=Sd(a,"to_external"),d=DE({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform:function(e){return e?e/1e3:0}}),h=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Traffic - NREN Customers & External Networks",description:t.createElement("span",null,"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."),category:Tr.Network,filter:h,data:a,filename:"NREN_traffic_estimates_data"},t.createElement(IE,null,t.createElement(Tn,{style:{marginBottom:"30px"}},t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"}},"Traffic from NREN customer"),t.createElement(dd,{data:l,options:d})),t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"}},"Traffic to NREN customer"),t.createElement(dd,{data:u,options:d}))),t.createElement(Tn,{style:{marginTop:"30px"}},t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"}},"Traffic from external network"),t.createElement(dd,{data:c,options:d})),t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"}},"Traffic to external network"),t.createElement(dd,{data:p,options:d})))))},_S=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/weather-map",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){t.url&&(e[t.url]=t.url)})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:Tr.Network,filter:u,data:a,filename:"weather_map_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};function VS(e){return yr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(e)}const RS=function(e){var n=e.year,r=e.active,o=e.serviceInfo,i=e.tickServiceIndex,s=e.current,a="No additional information available";if(void 0!==o){var l=o.service_name,u=o.year,c=o.product_name,p=o.official_description,d=o.additional_information;""==c&&""==p&&""==d||(a=l+" ("+u+")\n"+(c=c||"N/A")+"\n\nDescription: "+(p=p||"N/A")+"\nInformation: "+(d=d||"N/A"))}var h="";return"No additional information available"!==a&&(h="pill-shadow"),t.createElement("div",{className:"d-inline-block",key:n},r&&s?t.createElement("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"}},t.createElement(VS,{className:"rounded-pill color-of-the-current-service-".concat(i%13," bottom-tooltip ").concat(h)})):r&&!s?t.createElement("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"}},t.createElement(VS,{className:"rounded-pill color-of-the-previous-service-".concat(i%13," bottom-tooltip ").concat(h)})):t.createElement("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"}}," "))};var IS={};IS[hn.network_services]="network",IS[hn.isp_support]="ISP support",IS[hn.security]="security",IS[hn.identity]="identity",IS[hn.collaboration]="collaboration",IS[hn.multimedia]="multimedia",IS[hn.storage_and_hosting]="storage and hosting",IS[hn.professional_services]="professional";const kS=function(e){var n=e.category,r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/nren-services",i),a=s.data,l=s.years,u=s.nrens,c=Math.max.apply(Math,Kt(o.selectedYears)),p=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&e.service_category==n})),d={};p.forEach((function(e){d[e.service_name]=e.service_description}));var h=Object.entries(d).sort((function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1})),f=Ed(p,"service_name"),m=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),g=Kt(o.selectedYears.filter((function(e){return l.has(e)}))).sort();return t.createElement(KC,{title:"NREN "+IS[n]+" services matrix",description:"The service matrix shows the services NRENs offer to their users. These services are grouped thematically, with navigation possible via. the side menu. NRENs are invited to give extra information about their services; where this is provided, you will see a black circle around the marker. Hover over the marker to read more.",category:Tr.Services,filter:m,data:p,filename:"nren_services"},t.createElement(IE,null,t.createElement(jE,{className:"service-table",bordered:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),h.map((function(e,n){var r=Rt(e,2),o=r[0],i=r[1];return t.createElement("th",{key:o,"data-description":i,className:"bottom-tooltip color-of-the-service-header-".concat(n%13)},o)})))),t.createElement("tbody",null,Array.from(f.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",{className:"bold-text"},r),h.map((function(e,n){var r=Rt(e,2),i=r[0];return r[1],t.createElement("td",{key:i},o.has(i)&&g.map((function(e){var r=o.get(i),s=r.get(e);return t.createElement(RS,{key:e,year:e,active:r.has(e),serviceInfo:s,tickServiceIndex:n,current:e==c})})))})))}))))))};function AS(){return DS.apply(this,arguments)}function DS(){return(DS=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function NS(){return MS.apply(this,arguments)}function MS(){return(MS=Dt(Mt().mark((function e(){var t,n,r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/active/year");case 3:return t=e.sent,e.next=6,t.json();case 6:if(!("year"in(n=e.sent))){e.next=12;break}return r=n.year,e.abrupt("return",r.toString());case 12:return console.log("Invalid response format: Failed fetching active survey year."),e.abrupt("return","");case 14:e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(0),console.error("Failed fetching active survey year:",e.t0),e.abrupt("return","");case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}const LS=function(){var e=lr().trackPageView,n=(0,t.useContext)(Ft).user,r=We(),o=!!n.id,i=!!o&&!!n.nrens.length,s=i?n.nrens[0]:"",a=!!o&&n.permissions.admin,l=!!o&&"observer"===n.role,u=Rt((0,t.useState)(null),2),c=u[0],p=u[1];(0,t.useEffect)((function(){var t=function(){var e=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,NS();case 2:t=e.sent,p(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t(),e({documentTitle:"GEANT Survey Landing Page"})}),[e]);var d=function(){var e=Rt((0,t.useState)(),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){AS().then((function(e){r(e[0])}))}),[]),t.createElement(jE,{striped:!0,bordered:!0,responsive:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"(N)REN"),t.createElement("th",null,"Link"),t.createElement("th",null,"Survey Status"))),t.createElement("tbody",null,n&&n.responses.map((function(e){return t.createElement("tr",{key:e.nren.id},t.createElement("td",null,e.nren.name),t.createElement("td",null,t.createElement(St,{to:"/survey/response/".concat(n.year,"/").concat(e.nren.name)},t.createElement("span",null,"Navigate to survey"))),t.createElement("td",null,e.status))}))))};return t.createElement(Sn,{className:"py-5 grey-container"},t.createElement(Tn,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS SURVEY"),t.createElement("div",{className:"wordwrap pt-4",style:{maxWidth:"75rem"}},t.createElement("p",{style:{textAlign:"left"}},"Hello,",t.createElement("br",null),"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",t.createElement("a",{href:"/login"},"here"),", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",t.createElement("br",null),"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",t.createElement("br",null),"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.createElement("br",null),"Thank you."),t.createElement("span",null,"Current registration status:"),t.createElement("br",null),t.createElement("br",null),a?t.createElement("ul",null,t.createElement("li",null,t.createElement("span",null,"You are logged in as a Compendium Administrator")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(St,{to:"/survey/admin/surveys"},"here")," to access the survey management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(St,{to:"/survey/admin/users"},"here")," to access the user management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement("a",{href:"#",onClick:function(){fetch("/api/data-download").then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){var t=function(e){var t=pC.book_new();e.forEach((function(e){var n=pC.json_to_sheet(e.data);e.meta&&function(e,t,n){for(var r,o=pC.decode_range(null!==(r=e["!ref"])&&void 0!==r?r:""),i=-1,s=o.s.c;s<=o.e.c;s++){var a=e[pC.encode_cell({r:o.s.r,c:s})];if(a&&"string"==typeof a.v&&a.v===t){i=s;break}}if(-1!==i)for(var l=o.s.r+1;l<=o.e.r;++l){var u=pC.encode_cell({r:l,c:i});e[u]&&"n"===e[u].t&&(e[u].z=n)}else console.error("Column '".concat(t,"' not found."))}(n,e.meta.columnName,e.meta.format),pC.book_append_sheet(t,n,e.name)}));for(var n=tC(t,{bookType:"xlsx",type:"binary"}),r=new ArrayBuffer(n.length),o=new Uint8Array(r),i=0;i<n.length;i++)o[i]=255&n.charCodeAt(i);return new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}(e),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download="data.xlsx",document.body.appendChild(n),n.click(),document.body.removeChild(n)})).catch((function(e){console.error("Error fetching data:",e)}))}},"here")," to do the full data download."))):t.createElement("ul",null,c&&!a&&!l&&i&&function(){try{return r("/survey/response/".concat(c,"/").concat(s)),t.createElement("li",null,"Redirecting to survey...")}catch(e){return console.error("Error navigating:",e),null}}(),o?t.createElement("li",null,t.createElement("span",null,"You are logged in")):t.createElement("li",null,t.createElement("span",null,"You are not logged in")),o&&!l&&!i&&t.createElement("li",null,t.createElement("span",null,"Your access to the survey has not yet been approved")),o&&!l&&!i&&t.createElement("li",null,t.createElement("span",null,"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page")),o&&l&&t.createElement("li",null,t.createElement("span",null,"You have read-only access to the following surveys:"))),o&&l&&t.createElement(d,null)))))};let jS={data:""},FS=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||jS,BS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,qS=/\/\*[^]*?\*\/| +/g,HS=/\n+/g,zS=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?zS(s,i):i+"{"+zS(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=zS(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=zS.p?zS.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},QS={},US=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+US(e[n]);return t}return e},WS=(e,t,n,r,o)=>{let i=US(e),s=QS[i]||(QS[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!QS[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=BS.exec(e.replace(qS,""));)t[4]?r.shift():t[3]?(n=t[3].replace(HS," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(HS," ").trim();return r[0]})(e);QS[s]=zS(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&QS.g?QS.g:null;return n&&(QS.g=QS[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(QS[s],t,r,a),s},$S=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":zS(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function GS(e){let t=this||{},n=e.call?e(t.p):e;return WS(n.unshift?n.raw?$S(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,FS(t.target),t.g,t.o,t.k)}GS.bind({g:1});let JS,YS,KS,XS=GS.bind({k:1});function ZS(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:YS&&YS()},a),n.o=/ *go\d+/.test(l),a.className=GS.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let u=e;return e[0]&&(u=a.as||e,delete a.as),KS&&u[0]&&KS(a),JS(u,a)}return t?t(o):o}}var eO=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,tO=(()=>{let e=0;return()=>(++e).toString()})(),nO=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),rO=new Map,oO=e=>{if(rO.has(e))return;let t=setTimeout((()=>{rO.delete(e),lO({type:4,toastId:e})}),1e3);rO.set(e,t)},iO=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=rO.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?iO(e,{type:1,toast:n}):iO(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?oO(r):e.toasts.forEach((e=>{oO(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},sO=[],aO={toasts:[],pausedAt:void 0},lO=e=>{aO=iO(aO,e),sO.forEach((e=>{e(aO)}))},uO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},cO=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||tO()}))(t,e,n);return lO({type:2,toast:r}),r.id},pO=(e,t)=>cO("blank")(e,t);pO.error=cO("error"),pO.success=cO("success"),pO.loading=cO("loading"),pO.custom=cO("custom"),pO.dismiss=e=>{lO({type:3,toastId:e})},pO.remove=e=>lO({type:4,toastId:e}),pO.promise=(e,t,n)=>{let r=pO.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(pO.success(eO(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{pO.error(eO(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var dO=(e,t)=>{lO({type:1,toast:{id:e,height:t}})},hO=()=>{lO({type:5,time:Date.now()})},fO=XS` +(()=>{var e,t,n={292:(e,t)=>{"use strict";t.o1=void 0,t.o1=function e(...t){if(!Array.isArray(t))throw new TypeError("Please, send an array.");const[n,r,...o]=t,i=function(e,t){const n=[];for(let r=0;r<e.length;r++)if(t)for(let o=0;o<t.length;o++)Array.isArray(e[r])?n.push([...e[r],t[o]]):n.push([e[r],t[o]]);else n.push([e[r]]);return n}(n,r);return o.length?e(i,...o):i}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,n)=>{"use strict";var r=n(540),o=n(982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),k=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,L=Object.assign;function j(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function q(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case S:return"Profiler";case P:return"StrictMode";case V:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ie(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ce=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Pe=null;function Se(e){if(e=Co(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Ee?Pe?Pe.push(e):Pe=[e]:Ee=e}function Te(){if(Ee){var e=Ee,t=Pe;if(Pe=Ee=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function _e(e,t){return e(t)}function Ve(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return _e(e,t,n)}finally{Re=!1,(null!==Ee||null!==Pe)&&(Ve(),Te())}}function ke(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Ae=!1}function Ne(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,je=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function qe(e,t,n,r,o,i,s,a,l){Me=!1,Le=null,Ne.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(He(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Qe(o),e;if(s===r)return Qe(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var $e=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ke=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!=(i&=s)&&(r=pt(i))}else 0!=(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function Ct(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,xt,Et,Pt,St,Ot=!1,Tt=[],_t=null,Vt=null,Rt=null,It=new Map,kt=new Map,At=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Vt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Co(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void St(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Co(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ce=r,n.target.dispatchEvent(r),Ce=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Ot=!1,null!==_t&&jt(_t)&&(_t=null),null!==Vt&&jt(Vt)&&(Vt=null),null!==Rt&&jt(Rt)&&(Rt=null),It.forEach(Ft),kt.forEach(Ft)}function qt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return qt(t,e)}if(0<Tt.length){qt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&qt(_t,e),null!==Vt&&qt(Vt,e),null!==Rt&&qt(Rt,e),It.forEach(t),kt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Lt(n),null===n.blockedOn&&At.shift()}var zt=C.ReactCurrentBatchConfig,Qt=!0;function Ut(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=o,zt.transition=i}}function Wt(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=o,zt.transition=i}}function $t(e,t,n,r){if(Qt){var o=Jt(e,t,n,r);if(null===o)Qr(e,t,r,Gt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Mt(_t,e,t,n,r,o),!0;case"dragenter":return Vt=Mt(Vt,e,t,n,r,o),!0;case"mouseover":return Rt=Mt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Mt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,kt.set(i,Mt(kt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=Co(o);if(null!==i&&wt(i),null===(i=Jt(e,t,n,r))&&Qr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Gt=null;function Jt(e,t,n,r){if(Gt=null,null!==(e=bo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=L({},un,{view:0,detail:0}),dn=on(pn),hn=L({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(hn),mn=on(L({},hn,{dataTransfer:0})),gn=on(L({},pn,{relatedTarget:0})),yn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),Cn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Sn(){return Pn}var On=L({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(On),_n=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=on(L({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Rn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kn=on(In),An=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Nn,Ln=c&&(!Dn||Nn&&8<Nn&&11>=Nn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Oe(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,$n=null;function Gn(e){jr(e,0)}function Jn(e){if($(wo(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),$n=Wn=null)}function nr(e){if("value"===e.propertyName&&Jn($n)){var t=[];Un(t,$n,e,we(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn($n)}function ir(e,t){if("click"===e)return Jn(t)}function sr(e,t){if("input"===e||"change"===e)return Jn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},Pr={};function Sr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pr)return Er[e]=n[t];return e}c&&(Pr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Sr("animationend"),Tr=Sr("animationiteration"),_r=Sr("animationstart"),Vr=Sr("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){Rr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Ir.length;Ar++){var Dr=Ir[Ar];kr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}kr(Or,"onAnimationEnd"),kr(Tr,"onAnimationIteration"),kr(_r,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(Vr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(qe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,je||(je=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var qr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[qr]){e[qr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[qr]||(t[qr]=!0,Br("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Yt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Ie((function(){var r=i,o=we(n),s=[];e:{var a=Rr.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Vn;break;case Or:case Tr:case _r:l=yn;break;case Vr:l=Rn;break;case"scroll":l=dn;break;case"wheel":l=kn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var c=!!(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=ke(f,d))&&c.push(Ur(f,m,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ce||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(m,f+"leave",l,n,o)).target=p,a.relatedTarget=h,m=null,bo(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,f=0,h=c=l;h;h=$r(h))f++;for(h=0,m=d;m;m=$r(m))h++;for(;0<f-h;)c=$r(c),f--;for(;0<h-f;)d=$r(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=$r(c),d=$r(d)}c=null}else c=null;null!==l&&Gr(s,a,l,c,!1),null!==u&&null!==p&&Gr(s,p,u,c,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Yn;else if(Qn(a))if(Kn)g=sr;else{g=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(s,g,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?wo(r):window,e){case"focusin":(Qn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Cr(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Cr(s,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=en()):(Xt="value"in(Kt=o)?Kt.value:Kt.textContent,Hn=!0)),0<(y=Wr(r,b)).length&&(b=new Cn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=qn(n)))&&(b.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Zt=Xt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}jr(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=ke(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=ke(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=ke(n,i))&&s.unshift(Ur(n,l,a)):o||null!=(l=ke(n,i))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Jr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function Co(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[fo]||null}var Eo=[],Po=-1;function So(e){return{current:e}}function Oo(e){0>Po||(e.current=Eo[Po],Eo[Po]=null,Po--)}function To(e,t){Po++,Eo[Po]=e.current,e.current=t}var _o={},Vo=So(_o),Ro=So(!1),Io=_o;function ko(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=e.childContextTypes}function Do(){Oo(Ro),Oo(Vo)}function No(e,t,n){if(Vo.current!==_o)throw Error(i(168));To(Vo,t),To(Ro,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,z(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Io=Vo.current,To(Vo,e),To(Ro,Ro.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(Ro),Oo(Vo),To(Vo,e)):Oo(Ro),To(Ro,n)}var Fo=null,Bo=!1,qo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function zo(){if(!qo&&null!==Fo){qo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),$e(Ze,zo),t}finally{bt=t,qo=!1}}return null}var Qo=[],Uo=0,Wo=null,$o=0,Go=[],Jo=0,Yo=null,Ko=1,Xo="";function Zo(e,t){Qo[Uo++]=$o,Qo[Uo++]=Wo,Wo=e,$o=t}function ei(e,t,n){Go[Jo++]=Ko,Go[Jo++]=Xo,Go[Jo++]=Yo,Yo=e;var r=Ko;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ko=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Ko=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=Qo[--Uo],Qo[Uo]=null,$o=Qo[--Uo],Qo[Uo]=null;for(;e===Yo;)Yo=Go[--Jo],Go[Jo]=null,Xo=Go[--Jo],Go[Jo]=null,Ko=Go[--Jo],Go[Jo]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Ko,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=C.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function Ci(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===E?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===k&&bi(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Nu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case x:return(t=ju(t,e.mode,n)).return=e,t;case k:return d(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Nu(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case k:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:p(e,t,n,r,null);vi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return p(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=h(o,p,a[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===a.length)return n(o,p),ii&&Zo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Zo(o,m),u}for(p=r(o,p);m<a.length;m++)null!==(g=f(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),u}function g(o,a,l,u){var c=N(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=h(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),a=s(b,a,g),null===p?c=b:p.sibling=b,p=b,m=y}if(v.done)return n(o,m),ii&&Zo(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return ii&&Zo(o,g),c}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=f(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===k&&bi(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=yi(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===E?((i=Nu(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Du(s.type,s.key,s.props,null,r.mode,l)).ref=yi(r,i,s),l.return=r,r=l)}return a(r);case x:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ju(s,r.mode,l)).return=r,r=i}return a(r);case k:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return m(r,i,s,l);if(N(s))return g(r,i,s,l);vi(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Lu(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var wi=Ci(!0),xi=Ci(!1),Ei=So(null),Pi=null,Si=null,Oi=null;function Ti(){Oi=Si=Pi=null}function _i(e){var t=Ei.current;Oo(Ei),e._currentValue=t}function Vi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Pi=e,Oi=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===Pi)throw Error(i(308));Si=e,Pi.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var ki=null;function Ai(e){null===ki?ki=[e]:ki.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_l){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function qi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zi(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(d=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:Mi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=s,e.lanes=s,e.memoizedState=p}}function Qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui={},Wi=So(Ui),$i=So(Ui),Gi=So(Ui);function Ji(e){if(e===Ui)throw Error(i(174));return e}function Yi(e,t){switch(To(Gi,t),To($i,e),To(Wi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Wi),To(Wi,t)}function Ki(){Oo(Wi),Oo($i),Oo(Gi)}function Xi(e){Ji(Gi.current);var t=Ji(Wi.current),n=le(t,e.type);t!==n&&(To($i,e),To(Wi,n))}function Zi(e){$i.current===e&&(Oo(Wi),Oo($i))}var es=So(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ns=[];function rs(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var os=C.ReactCurrentDispatcher,is=C.ReactCurrentBatchConfig,ss=0,as=null,ls=null,us=null,cs=!1,ps=!1,ds=0,hs=0;function fs(){throw Error(i(321))}function ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function gs(e,t,n,r,o,s){if(ss=s,as=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:ea,e=n(r,o),ps){s=0;do{if(ps=!1,ds=0,25<=s)throw Error(i(301));s+=1,us=ls=null,t.updateQueue=null,os.current=ta,e=n(r,o)}while(ps)}if(os.current=Xs,t=null!==ls&&null!==ls.next,ss=0,us=ls=as=null,cs=!1,t)throw Error(i(300));return e}function ys(){var e=0!==ds;return ds=0,e}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?as.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=as.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?as.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?as.memoizedState=us=e:us=us.next=e}return us}function Cs(e,t){return"function"==typeof t?t(e):t}function ws(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ls,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((ss&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,as.lanes|=p,Ml|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,as.lanes|=s,Ml|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=bs(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(ba=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Es(){}function Ps(e,t){var n=as,r=bs(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,ba=!0),r=r.queue,Ms(Ts.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==us&&1&us.memoizedState.tag){if(n.flags|=2048,Is(9,Os.bind(null,n,r,o,t),void 0,null),null===Vl)throw Error(i(349));30&ss||Ss(n,t,o)}return o}function Ss(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Os(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&Vs(e)}function Ts(e,t,n){return n((function(){_s(t)&&Vs(e)}))}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Vs(e){var t=Ni(e,1);null!==t&&nu(t,e,1,-1)}function Rs(e){var t=vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,as,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ks(){return bs().memoizedState}function As(e,t,n,r){var o=vs();as.flags|=e,o.memoizedState=Is(1|t,n,void 0,void 0===r?null:r)}function Ds(e,t,n,r){var o=bs();r=void 0===r?null:r;var i=void 0;if(null!==ls){var s=ls.memoizedState;if(i=s.destroy,null!==r&&ms(r,s.deps))return void(o.memoizedState=Is(t,n,i,r))}as.flags|=e,o.memoizedState=Is(1|t,n,i,r)}function Ns(e,t){return As(8390656,8,e,t)}function Ms(e,t){return Ds(2048,8,e,t)}function Ls(e,t){return Ds(4,2,e,t)}function js(e,t){return Ds(4,4,e,t)}function Fs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bs(e,t,n){return n=null!=n?n.concat([e]):null,Ds(4,4,Fs.bind(null,t,e),n)}function qs(){}function Hs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zs(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qs(e,t,n){return 21&ss?(ar(n,t)||(n=mt(),as.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n)}function Us(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{bt=n,is.transition=r}}function Ws(){return bs().memoizedState}function $s(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Js(e)?Ys(t,n):null!==(n=Di(e,t,n,r))&&(nu(n,e,r,eu()),Ks(n,t,r))}function Gs(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(e))Ys(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Ai(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nu(n,e,r,o=eu()),Ks(n,t,r))}}function Js(e){var t=e.alternate;return e===as||null!==t&&t===as}function Ys(e,t){ps=cs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ks(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Xs={readContext:Ii,useCallback:fs,useContext:fs,useEffect:fs,useImperativeHandle:fs,useInsertionEffect:fs,useLayoutEffect:fs,useMemo:fs,useReducer:fs,useRef:fs,useState:fs,useDebugValue:fs,useDeferredValue:fs,useTransition:fs,useMutableSource:fs,useSyncExternalStore:fs,useId:fs,unstable_isNewReconciler:!1},Zs={readContext:Ii,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Ns,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,As(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return As(4194308,4,e,t)},useInsertionEffect:function(e,t){return As(4,2,e,t)},useMemo:function(e,t){var n=vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$s.bind(null,as,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:Rs,useDebugValue:qs,useDeferredValue:function(e){return vs().memoizedState=e},useTransition:function(){var e=Rs(!1),t=e[0];return e=Us.bind(null,e[1]),vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=as,o=vs();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Vl)throw Error(i(349));30&ss||Ss(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ns(Ts.bind(null,r,s,e),[e]),r.flags|=2048,Is(9,Os.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vs(),t=Vl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Ko&~(1<<32-st(Ko)-1)).toString(32)+n),0<(n=ds++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=hs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:js,useMemo:zs,useReducer:ws,useRef:ks,useState:function(){return ws(Cs)},useDebugValue:qs,useDeferredValue:function(e){return Qs(bs(),ls.memoizedState,e)},useTransition:function(){return[ws(Cs)[0],bs().memoizedState]},useMutableSource:Es,useSyncExternalStore:Ps,useId:Ws,unstable_isNewReconciler:!1},ta={readContext:Ii,useCallback:Hs,useContext:Ii,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:js,useMemo:zs,useReducer:xs,useRef:ks,useState:function(){return xs(Cs)},useDebugValue:qs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Qs(t,ls.memoizedState,e)},useTransition:function(){return[xs(Cs)[0],bs().memoizedState]},useMutableSource:Es,useSyncExternalStore:Ps,useId:Ws,unstable_isNewReconciler:!1};function na(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oa={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),qi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),qi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),qi(t,e,r))}};function ia(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function sa(e,t,n){var r=!1,o=_o,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Ao(t)?Io:Vo.current,i=(r=null!=(r=t.contextTypes))?ko(e,o):_o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function aa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oa.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Ao(t)?Io:Vo.current,o.context=ko(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ra(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&oa.enqueueReplaceState(o,o.state,null),zi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ua(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ca(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var da="function"==typeof WeakMap?WeakMap:Map;function ha(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Ul=r),pa(0,t)},n}function fa(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pa(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){pa(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new da;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function ga(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var va=C.ReactCurrentOwner,ba=!1;function Ca(e,t,n,r){t.child=null===e?xi(t,null,n,r):wi(t,e.child,n,r)}function wa(e,t,n,r,o){n=n.render;var i=t.ref;return Ri(t,o),r=gs(e,t,n,r,i,o),n=ys(),null===e||ba?(ii&&n&&ti(t),t.flags|=1,Ca(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qa(e,t,o))}function xa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ku(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ea(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Qa(e,t,o)}return t.flags|=1,(e=Au(i,r)).ref=t.ref,e.return=t,t.child=e}function Ea(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Qa(e,t,o);131072&e.flags&&(ba=!0)}}return Oa(e,t,n,r,o)}function Pa(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Al,kl),kl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Al,kl),kl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Al,kl),kl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Al,kl),kl|=r;return Ca(e,t,o,n),t.child}function Sa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=Ao(n)?Io:Vo.current;return i=ko(t,i),Ri(t,o),n=gs(e,t,n,r,i,o),r=ys(),null===e||ba?(ii&&r&&ti(t),t.flags|=1,Ca(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qa(e,t,o))}function Ta(e,t,n,r,o){if(Ao(n)){var i=!0;Lo(t)}else i=!1;if(Ri(t,o),null===t.stateNode)za(e,t),sa(t,n,r),la(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Ii(u):ko(t,u=Ao(n)?Io:Vo.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&aa(t,s,r,u),Mi=!1;var d=t.memoizedState;s.state=d,zi(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ro.current||Mi?("function"==typeof c&&(ra(t,n,c,r),l=t.memoizedState),(a=Mi||ia(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:na(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Ii(l):ko(t,l=Ao(n)?Io:Vo.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&aa(t,s,r,l),Mi=!1,d=t.memoizedState,s.state=d,zi(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Ro.current||Mi?("function"==typeof h&&(ra(t,n,h,r),f=t.memoizedState),(u=Mi||ia(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){Sa(e,t);var s=!!(128&t.flags);if(!r&&!s)return o&&jo(t,n,!1),Qa(e,t,i);r=t.stateNode,va.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,a,i)):Ca(e,t,a,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),Yi(e,t.containerInfo)}function Ra(e,t,n,r,o){return fi(),mi(o),t.flags|=256,Ca(e,t,n,r),t.child}var Ia,ka,Aa,Da,Na={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function La(e,t,n){var r,o=t.pendingProps,s=es.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),To(es,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Mu(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Nu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ma(n),t.memoizedState=Na,e):ja(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,r=ca(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Mu({mode:"visible",children:r.children},o,0,null),(s=Nu(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&wi(t,e.child,null,a),t.child.memoizedState=Ma(a),t.memoizedState=Na,s);if(!(1&t.mode))return Fa(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fa(e,t,a,r=ca(s=Error(i(419)),r,void 0))}if(l=!!(a&e.childLanes),ba||l){if(null!==(r=Vl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ni(e,o),nu(r,e,o,-1))}return mu(),Fa(e,t,a,r=ca(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&(Go[Jo++]=Ko,Go[Jo++]=Xo,Go[Jo++]=Yo,Ko=e.id,Xo=e.overflow,Yo=t),(t=ja(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===s?(o=Au(s,u)).subtreeFlags=14680064&s.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?a=Au(r,a):(a=Nu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ma(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Na,o}return e=(a=e.child).sibling,o=Au(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ja(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=ja(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Vi(e.return,t,n)}function qa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ha(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ca(e,t,r.children,n),2&(r=es.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(es,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ts(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qa(t,!0,n,null,i);break;case"together":qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function za(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wa(t),null;case 1:case 17:return Ao(t.type)&&Do(),Wa(t),null;case 3:return r=t.stateNode,Ki(),Oo(Ro),Oo(Vo),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),ka(e,t),Wa(t),null;case 5:Zi(t);var o=Ji(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Aa(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Wa(t),null}if(e=Ji(Wi.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ho]=t,r[fo]=s,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,s),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",r);break;case"textarea":oe(r,s),Fr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),Z(r,s,!0);break;case"textarea":W(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Ia(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Y(e,r),o=J(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":W(e),Z(e,r,!1);break;case"textarea":W(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wa(t),null;case 6:if(e&&null!=t.stateNode)Da(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ji(Gi.current),Ji(Wi.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Wa(t),null;case 13:if(Oo(es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wa(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&es.current?0===Dl&&(Dl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Wa(t),null);case 4:return Ki(),ka(e,t),null===e&&Hr(t.stateNode.containerInfo),Wa(t),null;case 10:return _i(t.type._context),Wa(t),null;case 19:if(Oo(es),null===(s=t.memoizedState))return Wa(t),null;if(r=!!(128&t.flags),null===(l=s.rendering))if(r)Ua(s,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ts(e))){for(t.flags|=128,Ua(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(es,1&es.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Hl&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ts(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Wa(t),null}else 2*Ke()-s.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Ua(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=es.current,To(es,r?1&n|2:1&n),t):(Wa(t),null);case 22:case 23:return pu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&kl)&&(Wa(t),6&t.subtreeFlags&&(t.flags|=8192)):Wa(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ga(e,t){switch(ni(t),t.tag){case 1:return Ao(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),Oo(Ro),Oo(Vo),rs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Oo(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(es),null;case 4:return Ki(),null;case 10:return _i(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Ia=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ka=function(){},Aa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ji(Wi.current);var i,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Da=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ja=!1,Ya=!1,Ka="function"==typeof WeakSet?WeakSet:Set,Xa=null;function Za(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Pu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Pu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ya||Za(n,t);case 6:var r=cl,o=pl;cl=null,dl(e,t,n),pl=o,null!==(cl=r)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Ya&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(2&i||4&i)&&el(n,t,s),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Ya&&(Za(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Pu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,dl(e,t,n),Ya=r):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ka),t.forEach((function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,o),cl=null,pl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Pu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Pu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Pu(e,e.return,t)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&Za(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&Za(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Pu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Pu(e,e.return,t)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Pu(e,e.return,t)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Pu(e,e.return,t)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(ql=Ke())),4&r&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(c=Ya)||p,ml(t,e),Ya=c):ml(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&1&e.mode)for(Xa=e,p=e.child;null!==p;){for(d=Xa=p;null!==Xa;){switch(f=(h=Xa).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Za(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Pu(r,n,e)}}break;case 5:Za(h,h.return);break;case 22:if(null!==h.memoizedState){wl(d);continue}}null!==f?(f.return=h,Xa=f):wl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Pu(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Pu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),yl(e),4&r&&fl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,al(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(t){Pu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Xa=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xa;){var o=Xa,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ja;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Ja;var u=Ya;if(Ja=s,(Ya=l)&&!u)for(Xa=o;null!==Xa;)l=(s=Xa).child,22===s.tag&&null!==s.memoizedState?xl(o):null!==l?(l.return=s,Xa=l):xl(o);for(;null!==i;)Xa=i,bl(i,t,n),i=i.sibling;Xa=o,Ja=a,Ya=u}Cl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xa=i):Cl(e)}}function Cl(e){for(;null!==Xa;){var t=Xa;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ya||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Qi(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Ya||512&t.flags&&ol(t)}catch(e){Pu(t,t.return,e)}}if(t===e){Xa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xa=n;break}Xa=t.return}}function wl(e){for(;null!==Xa;){var t=Xa;if(t===e){Xa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xa=n;break}Xa=t.return}}function xl(e){for(;null!==Xa;){var t=Xa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Pu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Pu(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Pu(t,i,e)}break;case 5:var s=t.return;try{ol(t)}catch(e){Pu(t,s,e)}}}catch(e){Pu(t,t.return,e)}if(t===e){Xa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Xa=a;break}Xa=t.return}}var El,Pl=Math.ceil,Sl=C.ReactCurrentDispatcher,Ol=C.ReactCurrentOwner,Tl=C.ReactCurrentBatchConfig,_l=0,Vl=null,Rl=null,Il=0,kl=0,Al=So(0),Dl=0,Nl=null,Ml=0,Ll=0,jl=0,Fl=null,Bl=null,ql=0,Hl=1/0,zl=null,Ql=!1,Ul=null,Wl=null,$l=!1,Gl=null,Jl=0,Yl=0,Kl=null,Xl=-1,Zl=0;function eu(){return 6&_l?Ke():-1!==Xl?Xl:Xl=Ke()}function tu(e){return 1&e.mode?2&_l&&0!==Il?Il&-Il:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Kl=null,Error(i(185));yt(e,n,r),2&_l&&e===Vl||(e===Vl&&(!(2&_l)&&(Ll|=n),4===Dl&&au(e,Il)),ru(e,r),1===n&&0===_l&&!(1&t.mode)&&(Hl=Ke()+500,Bo&&zo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?a&n&&!(a&r)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Vl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),so((function(){!(6&_l)&&zo()})),n=null;else{switch(Ct(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Vu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&_l)throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Vl?Il:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gu(e,r);else{t=r;var o=_l;_l|=2;var s=fu();for(Vl===e&&Il===t||(zl=null,Hl=Ke()+500,du(e,t));;)try{vu();break}catch(t){hu(e,t)}Ti(),Sl.current=s,_l=o,null!==Rl?t=0:(Vl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=iu(e,o)),1===t)throw n=Nl,du(e,0),au(e,r),ru(e,Ke()),n;if(6===t)au(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gu(e,r),2===t&&(s=ft(e),0!==s&&(r=s,t=iu(e,s))),1!==t)))throw n=Nl,du(e,0),au(e,r),ru(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Bl,zl);break;case 3:if(au(e,r),(130023424&r)===r&&10<(t=ql+500-Ke())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,Bl,zl),t);break}wu(e,Bl,zl);break;case 4:if(au(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pl(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,Bl,zl),r);break}wu(e,Bl,zl);break;default:throw Error(i(329))}}}return ru(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&su(t)),e}function su(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function au(e,t){for(t&=~jl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&_l)throw Error(i(327));xu();var t=dt(e,0);if(!(1&t))return ru(e,Ke()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Nl,du(e,0),au(e,t),ru(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bl,zl),ru(e,Ke()),null}function uu(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(Hl=Ke()+500,Bo&&zo())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&_l)&&xu();var t=_l;_l|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(_l=t))&&zo()}}function pu(){kl=Al.current,Oo(Al)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Ki(),Oo(Ro),Oo(Vo),rs();break;case 5:Zi(r);break;case 4:Ki();break;case 13:case 19:Oo(es);break;case 10:_i(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Vl=e,Rl=e=Au(e.current,null),Il=kl=t,Dl=0,Nl=null,jl=Ll=Ml=0,Bl=Fl=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(r=(n=ki[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}ki=null}return e}function hu(e,t){for(;;){var n=Rl;try{if(Ti(),os.current=Xs,cs){for(var r=as.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}cs=!1}if(ss=0,us=ls=as=null,ps=!1,ds=0,Ol.current=null,null===n||null===n.return){Dl=1,Nl=t,Rl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(!(1&p.mode||0!==d&&11!==d&&15!==d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ga(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ma(s,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ga(a);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ya(y,a,l,0,t),mi(ua(u,l));break e}}s=u=ua(u,l),4!==Dl&&(Dl=2),null===Fl?Fl=[s]:Fl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,ha(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(!(128&s.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Hi(s,fa(s,l,t));break e}}s=s.return}while(null!==s)}Cu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function fu(){var e=Sl.current;return Sl.current=Xs,null===e?Xs:e}function mu(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Vl||!(268435455&Ml)&&!(268435455&Ll)||au(Vl,Il)}function gu(e,t){var n=_l;_l|=2;var r=fu();for(Vl===e&&Il===t||(zl=null,du(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Ti(),_l=n,Sl.current=r,null!==Rl)throw Error(i(261));return Vl=null,Il=0,Dl}function yu(){for(;null!==Rl;)bu(Rl)}function vu(){for(;null!==Rl&&!Je();)bu(Rl)}function bu(e){var t=El(e.alternate,e,kl);e.memoizedProps=e.pendingProps,null===t?Cu(e):Rl=t,Ol.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ga(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Dl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$a(n,t,kl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Dl&&(Dl=5)}function wu(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Gl);if(6&_l)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Vl&&(Rl=Vl=null,Il=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Vu(tt,(function(){return xu(),null}))),s=!!(15990&n.flags),15990&n.subtreeFlags||s){s=Tl.transition,Tl.transition=null;var a=bt;bt=1;var l=_l;_l|=4,Ol.current=null,function(e,t){if(eo=Qt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=a),h===s&&++p===r&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Qt=!1,Xa=t;null!==Xa;)if(e=(t=Xa).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xa=e;else for(;null!==Xa;){t=Xa;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:na(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;default:throw Error(i(163))}}catch(e){Pu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xa=e;break}Xa=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(to),Qt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ye(),_l=l,bt=a,Tl.transition=s}else e.current=n;if($l&&($l=!1,Gl=e,Jl=o),0===(s=e.pendingLanes)&&(Wl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ql)throw Ql=!1,e=Ul,Ul=null,e;!!(1&Jl)&&0!==e.tag&&xu(),1&(s=e.pendingLanes)?e===Kl?Yl++:(Yl=0,Kl=e):Yl=0,zo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function xu(){if(null!==Gl){var e=Ct(Jl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Jl=0,6&_l)throw Error(i(331));var o=_l;for(_l|=4,Xa=e.current;null!==Xa;){var s=Xa,a=s.child;if(16&Xa.flags){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xa=c;null!==Xa;){var p=Xa;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Xa=d;else for(;null!==Xa;){var h=(p=Xa).sibling,f=p.return;if(il(p),p===c){Xa=null;break}if(null!==h){h.return=f,Xa=h;break}Xa=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Xa=s}}if(2064&s.subtreeFlags&&null!==a)a.return=s,Xa=a;else e:for(;null!==Xa;){if(2048&(s=Xa).flags)switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Xa=v;break e}Xa=s.return}}var b=e.current;for(Xa=b;null!==Xa;){var C=(a=Xa).child;if(2064&a.subtreeFlags&&null!==C)C.return=a,Xa=C;else e:for(a=b;null!==Xa;){if(2048&(l=Xa).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Pu(l,l.return,e)}if(l===a){Xa=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xa=w;break e}Xa=l.return}}if(_l=o,zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Eu(e,t,n){e=Bi(e,t=ha(0,t=ua(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Pu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Bi(t,e=fa(t,e=ua(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Vl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Ke()-ql?du(e,0):jl|=n),ru(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Ni(e,t))&&(yt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Vu(e,t){return $e(e,t)}function Ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Ru(e,t,n,r)}function ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)ku(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case E:return Nu(n.children,o,s,t);case P:a=8,o|=8;break;case S:return(e=Iu(12,n,t,2|o)).elementType=S,e.lanes=s,e;case V:return(e=Iu(13,n,t,o)).elementType=V,e.lanes=s,e;case R:return(e=Iu(19,n,t,o)).elementType=R,e.lanes=s,e;case A:return Mu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case _:a=11;break e;case I:a=14;break e;case k:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Iu(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Nu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,s,a,l){return e=new Fu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function qu(e){if(!e)return _o;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ao(n))return Mo(e,n,t)}return t}function Hu(e,t,n,r,o,i,s,a,l){return(e=Bu(n,r,!0,e,0,i,0,a,l)).context=qu(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function zu(e,t,n,r){var o=t.current,i=eu(),s=tu(o);return n=qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,s))&&(nu(e,o,s,i),qi(e,o,s)),s}function Qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)ba=!0;else{if(!(e.lanes&n||128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:Va(t),fi();break;case 5:Xi(t);break;case 1:Ao(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(es,1&es.current),t.flags|=128,null):n&t.child.childLanes?La(e,t,n):(To(es,1&es.current),null!==(e=Qa(e,t,n))?e.sibling:null);To(es,1&es.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ha(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(es,es.current),r)break;return null;case 22:case 23:return t.lanes=0,Pa(e,t,n)}return Qa(e,t,n)}(e,t,n);ba=!!(131072&e.flags)}else ba=!1,ii&&1048576&t.flags&&ei(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=ko(t,Vo.current);Ri(t,n),o=gs(null,t,r,e,o,n);var s=ys();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(r)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=oa,t.stateNode=o,o._reactInternals=t,la(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),Ca(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===I)return 14}return 2}(r),e=na(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Ta(null,t,r,e,n);break e;case 11:t=wa(null,t,r,e,n);break e;case 14:t=xa(null,t,r,na(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ta(e,t,r,o=t.elementType===r?o:na(r,o),n);case 3:e:{if(Va(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),zi(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ra(e,t,r,n,o=ua(Error(i(423)),t));break e}if(r!==o){t=Ra(e,t,r,n,o=ua(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Qa(e,t,n);break e}Ca(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Sa(e,t),Ca(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return La(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):Ca(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wa(e,t,r,o=t.elementType===r?o:na(r,o),n);case 7:return Ca(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ca(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,To(Ei,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Ro.current){t=Qa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=Fi(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Vi(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Vi(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}Ca(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ri(t,n),r=r(o=Ii(o)),t.flags|=1,Ca(e,t,r,n),t.child;case 14:return o=na(r=t.type,t.pendingProps),xa(e,t,r,o=na(r.type,o),n);case 15:return Ea(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),za(e,t),t.tag=1,Ao(r)?(e=!0,Lo(t)):e=!1,Ri(t,n),sa(t,r,o),la(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Ha(e,t,n);case 22:return Pa(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ju(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Qu(s);a.call(e)}}zu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Qu(s);i.call(e)}}var s=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=s,e[mo]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Qu(l);a.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){zu(t,l,n,r)})),l}(n,t,e,o,r);return Qu(s)}Ju.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));zu(e,t,null,null)},Ju.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){zu(null,e,null,null)})),t[mo]=null}},Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),ru(t,Ke()),!(6&_l)&&(Hl=Ke()+500,zo()))}break;case 13:cu((function(){var t=Ni(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Wu(e,1)}},xt=function(e){if(13===e.tag){var t=Ni(e,134217728);null!==t&&nu(t,e,134217728,eu()),Wu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Ni(e,t);null!==n&&nu(n,e,t,eu()),Wu(e,t)}},Pt=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));$(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=uu,Ve=cu;var ec={usingClientEntryPoint:!1,Events:[Co,wo,xo,Oe,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(i(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,s,a),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ju(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(i(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=b.prototype=new v;C.constructor=b,m(C,y.prototype),C.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,o)&&!P.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function V(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+_(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),V(s,t,o,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+_(a=e[u],u);l+=V(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=V(a=a.value,t,o,c=i+_(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],o=0;return V(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k={current:null},A={transition:null},D={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:A,ReactCurrentOwner:E};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=N,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!P.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return k.current.useCallback(e,t)},t.useContext=function(e){return k.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return k.current.useDeferredValue(e)},t.useEffect=function(e,t){return k.current.useEffect(e,t)},t.useId=function(){return k.current.useId()},t.useImperativeHandle=function(e,t,n){return k.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.current.useMemo(e,t)},t.useReducer=function(e,t,n){return k.current.useReducer(e,t,n)},t.useRef=function(e){return k.current.useRef(e)},t.useState=function(e){return k.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)},463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,C(e),!m)if(null!==r(u))m=!0,A(x);else{var t=r(c);null!==t&&D(w,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(O),O=-1),f=!0;var i=h;try{for(C(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!V());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),C(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&D(w,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,P=!1,S=null,O=-1,T=5,_=-1;function V(){return!(t.unstable_now()-_<T)}function R(){if(null!==S){var e=t.unstable_now();_=e;var n=!0;try{n=S(!0,e)}finally{n?E():(P=!1,S=null)}}else P=!1}if("function"==typeof b)E=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,k=I.port2;I.port1.onmessage=R,E=function(){k.postMessage(null)}}else E=function(){y(R,0)};function A(e){S=e,P||(P=!0,E())}function D(e,n){O=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,A(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(O),O=-1):g=!0,D(w,i-s))):(e.sortIndex=a,n(u,e),m||f||(m=!0,A(x))),e},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},522:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));class r{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const o=e.x-t.x,i=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,p=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),m=c+(l-c)*f,g=p+(u-p)*f,y=t.x-m,v=t.y-g;return{c1:new r(l+y,u+v),c2:new r(c+y,p+v)}}constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=s-t;n+=Math.sqrt(r*r+o*o)}e=i,t=s}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class i{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends i{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,s=null;const a=()=>{i=Date.now(),s=null,n=e.apply(r,o),s||(r=null,o=[])};return function(...l){const u=Date.now(),c=t-(u-i);return r=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,n=e.apply(r,o),s||(r=null,o=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!a||!l){const e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const o=this.canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=o.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l;let p=c*e.startPoint.x;p+=3*u*i*e.control1.x,p+=3*l*s*e.control2.x,p+=a*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*l*s*e.control2.y,d+=a*e.endPoint.y;const h=Math.min(e.startWidth+a*r,t.maxWidth);this._drawCurveSegment(p,d,h)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const o of e){const{points:e}=o,i=this._getPointGroupOptions(o);if(e.length>1)for(let n=0;n<e.length;n+=1){const o=e[n],s=new r(o.x,o.y,o.pressure,o.time);0===n&&this._reset(i);const a=this._addPoint(s,i);a&&t(a,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const s=document.createElement("circle"),a=n>0?n:(r+o)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)})),i.outerHTML}}},"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"createPopupModelWithListModel",(function(){return m})),n.d(t,"getActionDropdownButtonTarget",(function(){return g})),n.d(t,"BaseAction",(function(){return y})),n.d(t,"Action",(function(){return v})),n.d(t,"ActionDropdownViewModel",(function(){return b}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return t.locOwner=n,f(e,t,t)}function f(e,t,n){var r,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.hasTitle&&(a.title=e.title),o&&o(e,t)};var i=m(t,n),s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!n,i.show()}}),a=new v(s);return a.data=null===(r=i.contentComponentData)||void 0===r?void 0:r.model,a}function m(e,t){var n=new a.ListModel(e);n.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var r=t||{};r.onDispose=function(){n.dispose()};var o=new l.PopupModel("sv-list",{model:n},r);return o.isFocusedContent=n.showFilter,o.onShow=function(){r.onShow&&r.onShow(),n.scrollToSelectedItem()},o}function g(e){return null==e?void 0:e.previousElementSibling}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.rendredIdValue=t.getNextRendredId(),n.markerIconSize=16,n}return p(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout((function(){t.clearPopupTimeouts(),t.showPopup()}),e)},t.prototype.hidePopupDelayed=function(e){var t,n=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout((function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1}),e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)({defaultValue:24})],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"markerIconName",void 0),d([Object(s.property)()],t.prototype,"markerIconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isPressed",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(o.Base),v=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)"locTitle"===r||"title"===r&&n.locTitle&&n.title||(n[r]=t[r]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var n=m(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});n.cssClass="sv-popup-inner",this.popupModel=n},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose(),this.locTitleValue&&(this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0)},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(y),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",n.push(t.innerItem))),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter((function(e){return!e.disableHide})).sort((function(e,t){return e.removePriority||0-t.removePriority||0}))},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.getActionsToHide().map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e,t){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){"small"==e&&t.disableShrink||(t.mode=e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach((function(n){n===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))}))},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return m})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),m=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRenderedEvent=!0,this.onElementRenderedEventEnabled=!1,this._onElementRerendered=new v,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&i.Helpers.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach((function(t){return e.dependencies[t].dispose()}))},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return a.settings.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return(new s.JsonObject).toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){(new s.JsonObject).toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultPropertyValue(e);if(void 0!==o)return o}return n},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[e]:void 0;return r&&r.localizationName?this.getLocalizationString(r.localizationName):"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(r,t)||this.setArrayPropertyDirectly(e,t):(this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t))},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n,r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r)};if(this.isInternal)i(this);else{o||(o=this);var s=this.getSurvey();s||(s=this),i(s),s!==this&&i(this)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.doBeforeAsynRun=function(e){this.asynExpressionHash||(this.asynExpressionHash=[]);var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,n=new l.ExpressionRunner(e);return n.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},n.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},n},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return a.settings.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!0},e.prototype.disableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRenderedEvent&&this.onElementRenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,void 0)},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/calculatedValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CalculatedValue",(function(){return u}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=n("./src/jsonobject.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ChoicesRestful",(function(){return p})),n.d(t,"ChoicesRestfull",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t.registerPropertyChangedHandlers(["url"],(function(){t.owner&&t.owner.setPropertyValue("isUsingRestful",!!t.url)})),t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.web.encodeUrlParams},set:function(e){l.settings.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return l.settings.web.onBeforeRequestChoices},set:function(e){l.settings.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.settings.web.encodeUrlParams),o=e.processTextEx(this.path,!1,l.settings.web.encodeUrlParams);r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var t=this,n=this.objHash;e.onload=function(){t.beforeLoadRequest(),200===e.status?t.onLoad(t.parseResponse(e.response),n):t.onError(e.statusText,e.responseText)};var r={request:e};l.settings.web.onBeforeRequestChoices&&l.settings.web.onBeforeRequestChoices(this,r),this.beforeSendRequest(),r.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url=void 0,this.path=void 0,this.valueName=void 0,this.titleName=void 0,this.imageLinkName=void 0;for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),r.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new a.WebRequestError(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return l.settings.web.onBeforeRequestChoices},set:function(e){l.settings.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];if(o){var i=o.toLowerCase();if(e.hasOwnProperty(o))return!0;if(o!==i&&e.hasOwnProperty(i))return!0;var s=this.getFirstName(o);if(e.hasOwnProperty(s)){if(o===s)return!0;var a=e[s];if(null!=a){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(o,l);l[s]=a.newValue;var c=this.getValue(o,l);if(!r.Helpers.isTwoValueEquals(u,c,!1,!1,!1))return!0}}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var r=new Array,o=0,i=this.getNonNestedObjectCore(e,t,n,r);!i&&o<r.length;)o=r.length,i=this.getNonNestedObjectCore(e,t,n,r);return i},e.prototype.getNonNestedObjectCore=function(e,t,n,o){var i=this.getFirstPropertyName(t,e,n,o);i&&o.push(i);for(var s=i?[i]:null;t!=i&&e;){if("["==t[0]){var a=this.getObjInArray(e,t);if(!a)return null;e=a.value,t=a.text,s.push(a.index)}else{if(!i&&t==this.getFirstName(t))return{value:e,text:t,path:s};if(e=this.getObjectValue(e,i),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(i.length)}t&&"."==t[0]&&(t=t.substring(1)),(i=this.getFirstPropertyName(t,e,n,o))&&s.push(i)}return{value:e,text:t,path:s}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=void 0),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),i=o[0],s=i.toUpperCase();for(var a in t)if(!(Array.isArray(r)&&r.indexOf(a)>-1)){var l=a[0];if(l===s||l===i){var u=a.toLowerCase();if(u==o)return a;if(o.length<=u.length)continue;var c=o[u.length];if("."!=c&&"["!=c)continue;if(u==o.substring(0,u.length))return a}}if(n&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return l})),n.d(t,"ExpressionRunnerBase",(function(){return u})),n.d(t,"ConditionRunner",(function(){return c})),n.d(t,"ExpressionRunner",(function(){return p}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditionsParser.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new s.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return this.expression&&i.ConsoleWarnings.warn("Invalid expression: "+this.expression),null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),u=function(){function e(t){this._id=e.IdCounter++,this.expression=t}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=l.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(this.id),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(this.id)},e.IdCounter=1,e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(1==t),e.prototype.doOnComplete.call(this,t)},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t)},t}(u)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e.error=function(e){console.error(e)},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};r.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultStandardCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};r.surveyCss.default=o,r.surveyCss.orange=o,r.surveyCss.darkblue=o,r.surveyCss.darkrose=o,r.surveyCss.stone=o,r.surveyCss.winter=o,r.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyCss",(function(){return r})),n.d(t,"defaultV2Css",(function(){return o})),n.d(t,"defaultV2ThemeName",(function(){return i}));var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentFadeIn:"sd-element__content--fade-in",contentFadeOut:"sd-element__content--fade-out",fadeIn:"sd-element-wrapper--fade-in",fadeOut:"sd-element-wrapper--fade-out",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperFadeIn:"sd-paneldynamic__panel-wrapper--fade-in",panelWrapperFadeOut:"sd-paneldynamic__panel-wrapper--fade-out",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowFadeIn:"sd-row--fade-in",rowDelayedFadeIn:"sd-row--delayed-fade-in",rowFadeOut:"sd-row--fade-out",pageRow:"sd-page__row",question:{contentFadeIn:"sd-element__content--fade-in",contentFadeOut:"sd-element__content--fade-out",fadeIn:"sd-element-wrapper--fade-in",fadeOut:"sd-element-wrapper--fade-out",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-v2check",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-v2check",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowFadeIn:"sd-table__row--fade-in",rowFadeOut:"sd-table__row--fade-out",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowFadeIn:"sd-table__row--fade-in",rowFadeOut:"sd-table__row--fade-out",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-v2check",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";r[i]=o},"./src/defaultTitle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultTitleModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new r.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropInfo",(function(){return r}));var r=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}},"./src/drag-drop-page-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPageHelperV1",(function(){return o}));var r=n("./src/drag-drop-helper-v1.ts"),o=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new r.DragDropInfo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(t),i=this.dragDropGetElementIndex(t,o);this.page.updateRowsRemoveElementFromRow(t,o);var s=[],a=[];if(!e&&o){if(this.page.isDesignModeV2){var l=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[i]&&o.panel.elements[i].startWithNewLine&&o.elements.length>1&&o.panel.elements[i]===r&&(s.push(t),a.push(o.panel.elements[i])),!(t.startWithNewLine&&o.elements.length>1)||o.panel.elements[i]&&o.panel.elements[i].startWithNewLine||a.push(t),l&&l.elements[0]===n&&l.elements[1]&&s.push(l.elements[1]),o.elements.length<=1&&s.push(t),t.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&a.push(t)}this.page.survey.startMovingQuestion(),n&&n.parent&&(o.panel==n.parent?(o.panel.dragDropMoveElement(n,t,i),i=-1):n.parent.removeElement(n)),i>-1&&o.panel.addElement(t,i),this.page.survey.stopMovingQuestion()}return s.map((function(e){e.startWithNewLine=!0})),a.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignModeV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPanelHelperV1",(function(){return o}));var r=n("./src/drag-drop-helper-v1.ts"),o=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,o){n||((n=new r.DragDropInfo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=o:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignModeV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var o=-1;n==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&r++;var i=this.panel.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=r)&&r!=o&&(o>-1&&(t.elements.splice(o,1),o<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),o<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var o=t.index;if(e.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var i=this.panel.findRowByElement(e.source);return!(i&&i.panel==r.panel&&1==i.elements.length&&i.index==o||(t.panel.rows.splice(o,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}()},"./src/dragdrop/choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropChoices",(function(){return a}));var r,o=n("./src/dragdrop/core.ts"),i=n("./src/global_variables_utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return s(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=i.DomDocumentHelper.createElement("div");if(r){r.className="sv-drag-drop-choices-shortcut";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.classList.add("sv-drag-drop-choices-shortcut__content"),o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(o);var s=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-s.x,r.shortcutYOffset=n.clientY-s.y,this.isBottom=null,"function"==typeof this.onShortcutCreated&&this.onShortcutCreated(r),r}},t.prototype.createImagePickerShortcut=function(e,t,n,r){var o=i.DomDocumentHelper.createElement("div");if(o){o.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n ";var s=n.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=s.querySelector(".svc-image-item-value-controls");var a=s.querySelector(".sd-imagepicker__image-container"),l=s.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);n.splice(o,1),n.splice(r,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropCore",(function(){return s}));var r=n("./src/base.ts"),o=n("./src/dragdrop/dom-adapter.ts"),i=n("./src/global_variables_utils.ts"),s=function(){function e(e,t,n,i){var s,a=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new r.EventBase,this.onDragStart=new r.EventBase,this.onDragEnd=new r.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){a.allowDropHere=!1,a.doBanDropHere(),a.dropTarget=null,a.domAdapter.draggedElementShortcut.style.cursor="not-allowed",a.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,n,null===(s=this.survey)||void 0===s?void 0:s.fitToContainer)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){var e;return this.surveyValue||(null===(e=this.creator)||void 0===e?void 0:e.survey)},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){void 0===o&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.getRootElement=function(e,t){return t?t.rootElement:e.rootElement},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag(e)},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return null==e?void 0:e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=i.DomDocumentHelper.createElement("div");return r&&(r.innerText=e,r.className=this.getDraggedElementClass()),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!i.DomDocumentHelper.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.style.display=n||"block",r?this.findDropTargetNodeByDragOverNode(r):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropDOMAdapter",(function(){return s}));var r=n("./src/utils/utils.ts"),o=n("./src/utils/devices.ts"),i=n("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,n,r){var i=this;void 0===n&&(n=!0),void 0===r&&(r=!1),this.dd=t,this.longTap=n,this.fitToContainer=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),i.currentX=e.pageX,i.currentY=e.pageY,i.isMicroMovement||(i.returnUserSelectBack(),i.stopLongTap())},this.stopLongTap=function(e){clearTimeout(i.timeoutID),i.timeoutID=null,document.removeEventListener("pointerup",i.stopLongTap),document.removeEventListener("pointermove",i.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){i.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&i.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){i.moveShortcutElement(e),i.draggedElementShortcut.style.cursor="grabbing",i.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(i.scrollIntervalId),document.removeEventListener("pointermove",i.dragOver),document.removeEventListener("pointercancel",i.handlePointerCancel),document.removeEventListener("keydown",i.handleEscapeButton),document.removeEventListener("pointerup",i.drop),i.draggedElementShortcut.removeEventListener("pointerup",i.drop),o.IsTouch&&i.draggedElementShortcut.removeEventListener("contextmenu",i.onContextMenu),i.draggedElementShortcut.parentElement.removeChild(i.draggedElementShortcut),i.dd.clear(),i.draggedElementShortcut=null,i.scrollIntervalId=null,o.IsTouch&&(i.savedTargetNode.style.cssText=null,i.savedTargetNode&&i.savedTargetNode.parentElement.removeChild(i.savedTargetNode),i.insertNodeToParentAtIndex(i.savedTargetNodeParent,i.savedTargetNode,i.savedTargetNodeIndex),e.PreventScrolling=!1),i.savedTargetNode=null,i.savedTargetNodeParent=null,i.savedTargetNodeIndex=null,i.returnUserSelectBack()},this.drop=function(){i.dd.drop(),i.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"documentOrShadowRoot",{get:function(){return i.settings.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootElement",{get:function(){return Object(r.isShadowDOM)(i.settings.environment.root)?this.rootContainer||i.settings.environment.root.host:this.rootContainer||i.settings.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout((function(){i.doStartDrag(e,t,n,r),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n position: absolute;\n height: 1px!important;\n width: 1px!important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n ",i.savedTargetNodeParent=i.savedTargetNode.parentElement,i.savedTargetNodeIndex=i.getNodeIndexInParent(i.savedTargetNode),i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(e.clientY,e.clientX);var i=this.draggedElementShortcut.offsetHeight,s=this.draggedElementShortcut.offsetWidth,a=this.draggedElementShortcut.shortcutXOffset||s/2,l=this.draggedElementShortcut.shortcutYOffset||i/2;0!==document.querySelectorAll("[dir='rtl']").length&&(a=s/2,l=i/2);var u=document.documentElement.clientHeight,c=document.documentElement.clientWidth,p=e.pageX,d=e.pageY,h=e.clientX,f=e.clientY;t-=r,n-=o;var m=this.getShortcutBottomCoordinate(f,i,l);return this.getShortcutRightCoordinate(h,s,a)>=c?(this.draggedElementShortcut.style.left=c-s-t+"px",void(this.draggedElementShortcut.style.top=f-l-n+"px")):h-a<=0?(this.draggedElementShortcut.style.left=p-h-t+"px",void(this.draggedElementShortcut.style.top=f-n-l+"px")):m>=u?(this.draggedElementShortcut.style.left=h-a-t+"px",void(this.draggedElementShortcut.style.top=u-i-n+"px")):f-l<=0?(this.draggedElementShortcut.style.left=h-a-t+"px",void(this.draggedElementShortcut.style.top=d-f-n+"px")):(this.draggedElementShortcut.style.left=h-t-a+"px",void(this.draggedElementShortcut.style.top=f-n-l+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.requestAnimationFrame=function(e){return requestAnimationFrame(e)},e.prototype.scrollByDrag=function(e,t,n){var r,o,i,s,a=this,l=100;"HTML"===e.tagName?(r=0,o=document.documentElement.clientHeight,i=0,s=document.documentElement.clientWidth):(r=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().left,s=e.getBoundingClientRect().right);var u=function(){var c=t-r<=l,p=o-t<=l,d=n-i<=l,h=s-n<=l;!c||d||h?!p||d||h?!h||c||p?!d||c||p||(e.scrollLeft-=15):e.scrollLeft+=15:e.scrollTop+=15:e.scrollTop-=15,a.scrollIntervalId=a.requestAnimationFrame(u)};this.scrollIntervalId=this.requestAnimationFrame(u)},e.prototype.doScroll=function(e,t){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var o=this.documentOrShadowRoot.elementFromPoint(t,e);this.draggedElementShortcut.style.display=n||"block";var i=Object(r.findScrollableParent)(o);this.scrollByDrag(i,e,t)},e.prototype.doStartDrag=function(t,n,r,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,i),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},e.prototype.startDrag=function(e,t,n,r,i){void 0===i&&(i=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),o.IsTouch?this.startLongTapProcessing(e,t,n,r,i):this.doStartDrag(e,t,n,r)},e.prototype.getNodeIndexInParent=function(e){return function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.parentElement.childNodes).indexOf(e)},e.prototype.insertNodeToParentAtIndex=function(e,t,n){e.insertBefore(t,e.childNodes[n])},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropMatrixRows",(function(){return a}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/dragdrop/core.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return s(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=o.DomDocumentHelper.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,i=o.DomDocumentHelper.createElement("div");if(i){if(i.style.cssText=" \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));\n ",t){var s=t.closest("[data-sv-drop-target-matrix-row]"),a=s.cloneNode(!0);a.style.cssText="\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: "+s.offsetWidth+"px;\n ",a.classList.remove("sv-matrix__drag-drop--moveup"),a.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,i.appendChild(a);var l=t.getBoundingClientRect();i.shortcutXOffset=n.clientX-l.x,i.shortcutYOffset=n.clientY-l.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),i}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row&&t.row.id===e}))[0].row},t.prototype.canInsertIntoThisRow=function(e){var t=this.parentElement.lockedRowCount;return t<=0||e.rowIndex>t},t.prototype.isDropTargetValid=function(e,t){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(r,0,i),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var t=o.DomDocumentHelper.getBody();t&&(t.style.userSelect=this.restoreUserSelectValue||"initial"),e.prototype.clear.call(this)},t}(i.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingChoices",(function(){return c}));var r,o=n("./src/itemvalue.ts"),i=n("./src/dragdrop/choices.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/utils/devices.ts"),l=n("./src/global_variables_utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.reorderRankedItem=function(e,n,r){if(n!=r){var o=e.rankingChoices,i=o[n];e.isValueSetByUser=!0,o.splice(n,1),o.splice(r,0,i),t.updateDraggedElementShortcut(r+1)}},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t}return u(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=l.DomDocumentHelper.createElement("div");if(r){r.className=this.shortcutClass+" sv-ranking-shortcut";var o=t.cloneNode(!0);r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new s.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,a.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){return-1!==this.parentElement.rankingChoices.indexOf(e)},t.prototype.calculateIsBottom=function(t,n){if(this.dropTarget instanceof o.ItemValue&&this.draggedElement!==this.dropTarget){var r=n.getBoundingClientRect();return t>=r.y+r.height/2}return e.prototype.calculateIsBottom.call(this,t)},t.prototype.getIndices=function(e,t,n){var r=t.indexOf(this.draggedElement),i=n.indexOf(this.dropTarget);return r<0&&this.draggedElement&&(this.draggedElement=o.ItemValue.getItemByValue(t,this.draggedElement.value)||this.draggedElement,r=t.indexOf(this.draggedElement)),-1===i?i=e.value.length:t==n?(!this.isBottom&&r<i&&i--,this.isBottom&&r>i&&i++):t!=n&&this.isBottom&&i++,{fromIndex:r,toIndex:i}},t.prototype.afterDragOver=function(e){var t=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),n=t.fromIndex,r=t.toIndex;this.reorderRankedItem(this.parentElement,n,r)},t.prototype.updateDraggedElementShortcut=function(e){var t;if(null===(t=this.domAdapter)||void 0===t?void 0:t.draggedElementShortcut){var n=null!==e?e+"":"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=n}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(i.DragDropChoices)},"./src/dragdrop/ranking-select-to-rank.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingSelectToRank",(function(){return s}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectToRank=function(e,n,r){var o=[].concat(e.rankingChoices),i=e.unRankingChoices[n];o.splice(r,0,i),t.updateChoices(e,o)},t.unselectFromRank=function(e,n,r){var o=[].concat(e.rankingChoices);o.splice(n,1),t.updateChoices(e,o)},t}return i(t,e),t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;var n=t.closest("[data-ranking='to-container']"),r=t.closest("[data-ranking='from-container']");return 0===this.parentElement.unRankingChoices.length&&r?r:0===this.parentElement.rankingChoices.length&&n?n:e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,n){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,n)},t.prototype.isDropTargetValid=function(t,n){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,n)},t.prototype.afterDragOver=function(e){var t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;this.isDraggedElementUnranked&&this.isDropTargetRanked?this.doRankBetween(e,r,n,this.selectToRank):this.isDraggedElementRanked&&this.isDropTargetRanked?this.doRankBetween(e,n,n,this.reorderRankedItem):!this.isDraggedElementRanked||this.isDropTargetRanked||this.doRankBetween(e,n,r,this.unselectFromRank)},t.prototype.doRankBetween=function(e,t,n,r){var o=this.parentElement,i=this.getIndices(o,t,n);r(o,i.fromIndex,i.toIndex,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return-1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,t){e.isValueSetByUser=!0,e.rankingChoices=t,e.updateUnRankingChoices(t)},t}(o.DragDropRankingChoices)},"./src/dropdownListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownListModel",(function(){return y}));var r,o=n("./src/base.ts"),i=n("./src/global_variables_utils.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/list.ts"),u=n("./src/popup.ts"),c=n("./src/question_dropdown.ts"),p=n("./src/settings.ts"),d=n("./src/utils/cssClassBuilder.ts"),h=n("./src/utils/devices.ts"),f=n("./src/utils/utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(t,n){var r=e.call(this)||this;return r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.isRunningLoadQuestionChoices=!1,r.popupCssClasses="sv-single-select-list",r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},r.qustionPropertyChangedHandler=function(e,t){r.onPropertyChangedHandler(e,t)},r.htmlCleanerElement=i.DomDocumentHelper.createElement("div"),t.onPropertyChanged.add(r.qustionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings(),r}return m(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return h.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var t=this;this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.isRunningLoadQuestionChoices=!1,t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.filterString&&p.settings.dropdownSearchDelay>0?(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.timer=setTimeout((function(){t.loadQuestionChoices(e)}),p.settings.dropdownSearchDelay)):this.loadQuestionChoices(e))}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new u.PopupModel("sv-list",{model:this.listModel},{verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1}),this._popupModel.displayMode=h.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=h.IsTouch,this._popupModel.setWidthByTarget=!h.IsTouch,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,n){n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),n.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.processPopupVisiblilityChanged(e.popupModel,n.isVisible)}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var t=this;e.setOnTextSearchCallback((function(e,n){if(t.filteredItems)return t.filteredItems.indexOf(e)>=0;var r=e.text.toLocaleLowerCase(),o=(r=p.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(n.toLocaleLowerCase());return"startsWith"==t.question.searchMode?0==o:o>-1}))},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e.popupModel.hide()});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new l.ListModel(r);return this.setOnTextSearchCallbackForListModel(o),o.renderElements=!1,o.forceShowFilter=!0,o.areSameItemsCallback=function(e,t){return e===t},o},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.onPropertyChanged.add((function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach((function(e){return e.disableTabStop=!0}))},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new d.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,this.filterString||this.popupModel.isVisible){var t={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,t),this.filteredItems=t.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var n=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(n)):n()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(null==e?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return h.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=h.IsTouch,this.listModel.showSearchClearButton=h.IsTouch,this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focus())},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent),"textWrapEnabled"==t.name&&this.setTextWrapEnabled(t.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;!n&&this.question.selectedItem?s.ItemValue.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.hide();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(f.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof c.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else 32===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),13===e.keyCode&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.focused=!1,this.popupModel.isVisible&&h.IsTouch?this._popupModel.show():(Object(f.doKey2ClickBlur)(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation())},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.qustionPropertyChangedHandler),this.qustionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},g([Object(a.property)({defaultValue:!1})],t.prototype,"focused",void 0),g([Object(a.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),g([Object(a.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),g([Object(a.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),g([Object(a.property)({})],t.prototype,"showInputFieldComponent",void 0),g([Object(a.property)()],t.prototype,"ariaActivedescendant",void 0),g([Object(a.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),g([Object(a.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownMultiSelectListModel",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/dropdownListModel.ts"),s=n("./src/jsonobject.ts"),a=n("./src/multiSelectListModel.ts"),l=n("./src/settings.ts"),u=n("./src/utils/devices.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupCssClasses="sv-multi-select-list",r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return c(t,e),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.id?e.selectAllItems():"added"===n&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r={items:t,onSelectionChanged:n,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},o=new a.MultiSelectListModel(r);return o.actions.forEach((function(e){return e.disableTabStop=!0})),this.setOnTextSearchCallbackForListModel(o),o.forceShowFilter=!0,o},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,n){e.prototype.onPropertyChangedHandler.call(this,t,n),"value"!==n.name&&"renderedValue"!==n.name&&"placeholder"!==n.name||this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dxSurveyService",(function(){return i}));var r=n("./src/settings.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.settings.web.surveyServiceUrl},set:function(e){r.settings.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(e,t){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+e),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);t(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+e+"&clientId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response),t=e?e.survey:null,o=e?e.isCompleted:null;n(200==r.status,t,o,r.response)},r.send()},e.prototype.canSendResult=function(e){return!this.isSurveJSIOService||JSON.stringify(e).length<65536},Object.defineProperty(e.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf("surveyjs.io")>=0},enumerable:!1,configurable:!0}),e.prototype.sendResult=function(e,t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=!1),this.canSendResult(t)?this.sendResultCore(e,t,n,r,i):n(!1,o.surveyLocalization.getString("savingExceedSize",this.locale),void 0)},e.prototype.sendResultCore=function(e,t,n,r,o){void 0===r&&(r=null),void 0===o&&(o=!1);var i=new XMLHttpRequest;i.open("POST",this.serviceUrl+"/post/"),i.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:e,surveyResult:JSON.stringify(t)};r&&(s.clientId=r),o&&(s.isPartialCompleted=!0);var a=JSON.stringify(s);i.onload=i.onerror=function(){n&&n(200===i.status,i.response,i)},i.send(a)},e.prototype.sendFile=function(e,t,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(200==r.status,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",t),o.append("postId",e),r.send(o)},e.prototype.getResult=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&name="+t;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null,t=null;if(200==r.status)for(var o in t=[],(e=JSON.parse(r.response)).QuestionResult){var i={name:o,value:e.QuestionResult[o]};t.push(i)}n(200==r.status,e,t,r.response)},r.send()},e.prototype.isCompleted=function(e,t,n){var r=new XMLHttpRequest,o="resultId="+e+"&clientId="+t;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=null;200==r.status&&(e=JSON.parse(r.response)),n(200==r.status,e,r.response)},r.send()},Object.defineProperty(e.prototype,"serviceUrl",{get:function(){return e.serviceUrl||""},enumerable:!1,configurable:!0}),e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return o}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=r.DomDocumentHelper.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return Be})),n.d(t,"ReleaseDate",(function(){return qe})),n.d(t,"checkLibraryVersion",(function(){return ze})),n.d(t,"setLicenseKey",(function(){return Qe})),n.d(t,"slk",(function(){return Ue})),n.d(t,"hasLicense",(function(){return We}));var r=n("./src/global_variables_utils.ts"),o=n("./src/settings.ts");n.d(t,"settings",(function(){return o.settings}));var i=n("./src/helpers.ts");n.d(t,"Helpers",(function(){return i.Helpers}));var s=n("./src/validator.ts");n.d(t,"AnswerCountValidator",(function(){return s.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return s.EmailValidator})),n.d(t,"NumericValidator",(function(){return s.NumericValidator})),n.d(t,"RegexValidator",(function(){return s.RegexValidator})),n.d(t,"SurveyValidator",(function(){return s.SurveyValidator})),n.d(t,"TextValidator",(function(){return s.TextValidator})),n.d(t,"ValidatorResult",(function(){return s.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return s.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return s.ValidatorRunner}));var a=n("./src/itemvalue.ts");n.d(t,"ItemValue",(function(){return a.ItemValue}));var l=n("./src/base.ts");n.d(t,"Base",(function(){return l.Base})),n.d(t,"Event",(function(){return l.Event})),n.d(t,"EventBase",(function(){return l.EventBase})),n.d(t,"ArrayChanges",(function(){return l.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return l.ComputedUpdater}));var u=n("./src/survey-error.ts");n.d(t,"SurveyError",(function(){return u.SurveyError}));var c=n("./src/survey-element.ts");n.d(t,"SurveyElementCore",(function(){return c.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return c.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return c.DragTypeOverMeEnum}));var p=n("./src/calculatedValue.ts");n.d(t,"CalculatedValue",(function(){return p.CalculatedValue}));var d=n("./src/error.ts");n.d(t,"CustomError",(function(){return d.CustomError})),n.d(t,"AnswerRequiredError",(function(){return d.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return d.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return d.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return d.ExceedSizeError}));var h=n("./src/localizablestring.ts");n.d(t,"LocalizableString",(function(){return h.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return h.LocalizableStrings}));var f=n("./src/expressionItems.ts");n.d(t,"HtmlConditionItem",(function(){return f.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return f.UrlConditionItem}));var m=n("./src/choicesRestful.ts");n.d(t,"ChoicesRestful",(function(){return m.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return m.ChoicesRestfull}));var g=n("./src/functionsfactory.ts");n.d(t,"FunctionFactory",(function(){return g.FunctionFactory})),n.d(t,"registerFunction",(function(){return g.registerFunction}));var y=n("./src/conditions.ts");n.d(t,"ConditionRunner",(function(){return y.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return y.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return y.ExpressionExecutor}));var v=n("./src/expressions/expressions.ts");n.d(t,"Operand",(function(){return v.Operand})),n.d(t,"Const",(function(){return v.Const})),n.d(t,"BinaryOperand",(function(){return v.BinaryOperand})),n.d(t,"Variable",(function(){return v.Variable})),n.d(t,"FunctionOperand",(function(){return v.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return v.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return v.UnaryOperand}));var b=n("./src/conditionsParser.ts");n.d(t,"ConditionsParser",(function(){return b.ConditionsParser}));var C=n("./src/conditionProcessValue.ts");n.d(t,"ProcessValue",(function(){return C.ProcessValue}));var w=n("./src/jsonobject.ts");n.d(t,"JsonError",(function(){return w.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return w.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return w.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return w.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return w.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return w.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return w.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return w.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return w.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return w.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return w.Serializer})),n.d(t,"property",(function(){return w.property})),n.d(t,"propertyArray",(function(){return w.propertyArray}));var x=n("./src/question_matrixdropdownbase.ts");n.d(t,"MatrixDropdownCell",(function(){return x.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return x.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return x.QuestionMatrixDropdownModelBase}));var E=n("./src/question_matrixdropdowncolumn.ts");n.d(t,"MatrixDropdownColumn",(function(){return E.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return E.matrixDropdownColumnTypes}));var P=n("./src/question_matrixdropdownrendered.ts");n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return P.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var S=n("./src/question_matrixdropdown.ts");n.d(t,"MatrixDropdownRowModel",(function(){return S.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return S.QuestionMatrixDropdownModel}));var O=n("./src/question_matrixdynamic.ts");n.d(t,"MatrixDynamicRowModel",(function(){return O.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return O.QuestionMatrixDynamicModel}));var T=n("./src/question_matrix.ts");n.d(t,"MatrixRowModel",(function(){return T.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return T.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return T.QuestionMatrixModel}));var _=n("./src/martixBase.ts");n.d(t,"QuestionMatrixBaseModel",(function(){return _.QuestionMatrixBaseModel}));var V=n("./src/question_multipletext.ts");n.d(t,"MultipleTextItemModel",(function(){return V.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return V.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return V.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return V.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return V.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return V.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return V.MultipleTextEditorModel}));var R=n("./src/panel.ts");n.d(t,"PanelModel",(function(){return R.PanelModel})),n.d(t,"PanelModelBase",(function(){return R.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return R.QuestionRowModel}));var I=n("./src/flowpanel.ts");n.d(t,"FlowPanelModel",(function(){return I.FlowPanelModel}));var k=n("./src/page.ts");n.d(t,"PageModel",(function(){return k.PageModel})),n("./src/template-renderer.ts");var A=n("./src/defaultTitle.ts");n.d(t,"DefaultTitleModel",(function(){return A.DefaultTitleModel}));var D=n("./src/question.ts");n.d(t,"Question",(function(){return D.Question}));var N=n("./src/questionnonvalue.ts");n.d(t,"QuestionNonValue",(function(){return N.QuestionNonValue}));var M=n("./src/question_empty.ts");n.d(t,"QuestionEmptyModel",(function(){return M.QuestionEmptyModel}));var L=n("./src/question_baseselect.ts");n.d(t,"QuestionCheckboxBase",(function(){return L.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return L.QuestionSelectBase}));var j=n("./src/question_checkbox.ts");n.d(t,"QuestionCheckboxModel",(function(){return j.QuestionCheckboxModel}));var F=n("./src/question_tagbox.ts");n.d(t,"QuestionTagboxModel",(function(){return F.QuestionTagboxModel}));var B=n("./src/question_ranking.ts");n.d(t,"QuestionRankingModel",(function(){return B.QuestionRankingModel}));var q=n("./src/question_comment.ts");n.d(t,"QuestionCommentModel",(function(){return q.QuestionCommentModel}));var H=n("./src/question_dropdown.ts");n.d(t,"QuestionDropdownModel",(function(){return H.QuestionDropdownModel}));var z=n("./src/questionfactory.ts");n.d(t,"QuestionFactory",(function(){return z.QuestionFactory})),n.d(t,"ElementFactory",(function(){return z.ElementFactory}));var Q=n("./src/question_file.ts");n.d(t,"QuestionFileModel",(function(){return Q.QuestionFileModel}));var U=n("./src/question_html.ts");n.d(t,"QuestionHtmlModel",(function(){return U.QuestionHtmlModel}));var W=n("./src/question_radiogroup.ts");n.d(t,"QuestionRadiogroupModel",(function(){return W.QuestionRadiogroupModel}));var $=n("./src/question_rating.ts");n.d(t,"QuestionRatingModel",(function(){return $.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return $.RenderedRatingItem}));var G=n("./src/question_expression.ts");n.d(t,"QuestionExpressionModel",(function(){return G.QuestionExpressionModel}));var J=n("./src/question_textbase.ts");n.d(t,"QuestionTextBase",(function(){return J.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return J.CharacterCounter}));var Y=n("./src/question_text.ts");n.d(t,"QuestionTextModel",(function(){return Y.QuestionTextModel}));var K=n("./src/question_boolean.ts");n.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var X=n("./src/question_imagepicker.ts");n.d(t,"QuestionImagePickerModel",(function(){return X.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return X.ImageItemValue}));var Z=n("./src/question_image.ts");n.d(t,"QuestionImageModel",(function(){return Z.QuestionImageModel}));var ee=n("./src/question_signaturepad.ts");n.d(t,"QuestionSignaturePadModel",(function(){return ee.QuestionSignaturePadModel}));var te=n("./src/question_paneldynamic.ts");n.d(t,"QuestionPanelDynamicModel",(function(){return te.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return te.QuestionPanelDynamicItem}));var ne=n("./src/surveytimer.ts");n.d(t,"SurveyTimer",(function(){return ne.SurveyTimer}));var re=n("./src/surveyTimerModel.ts");n.d(t,"SurveyTimerModel",(function(){return re.SurveyTimerModel}));var oe=n("./src/surveyToc.ts");n.d(t,"tryFocusPage",(function(){return oe.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return oe.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return oe.getTocRootCss})),n.d(t,"TOCModel",(function(){return oe.TOCModel}));var ie=n("./src/surveyProgress.ts");n.d(t,"SurveyProgressModel",(function(){return ie.SurveyProgressModel}));var se=n("./src/progress-buttons.ts");n.d(t,"ProgressButtons",(function(){return se.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return se.ProgressButtonsResponsivityManager})),n("./src/themes.ts");var ae=n("./src/survey.ts");n.d(t,"SurveyModel",(function(){return ae.SurveyModel})),n("./src/survey-events-api.ts");var le=n("./src/trigger.ts");n.d(t,"SurveyTrigger",(function(){return le.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return le.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return le.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return le.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return le.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return le.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return le.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return le.Trigger}));var ue=n("./src/popup-survey.ts");n.d(t,"PopupSurveyModel",(function(){return ue.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return ue.SurveyWindowModel}));var ce=n("./src/textPreProcessor.ts");n.d(t,"TextPreProcessor",(function(){return ce.TextPreProcessor}));var pe=n("./src/notifier.ts");n.d(t,"Notifier",(function(){return pe.Notifier}));var de=n("./src/header.ts");n.d(t,"Cover",(function(){return de.Cover})),n.d(t,"CoverCell",(function(){return de.CoverCell}));var he=n("./src/dxSurveyService.ts");n.d(t,"dxSurveyService",(function(){return he.dxSurveyService}));var fe=n("./src/localization/english.ts");n.d(t,"englishStrings",(function(){return fe.englishStrings}));var me=n("./src/surveyStrings.ts");n.d(t,"surveyLocalization",(function(){return me.surveyLocalization})),n.d(t,"surveyStrings",(function(){return me.surveyStrings}));var ge=n("./src/questionCustomWidgets.ts");n.d(t,"QuestionCustomWidget",(function(){return ge.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return ge.CustomWidgetCollection}));var ye=n("./src/question_custom.ts");n.d(t,"QuestionCustomModel",(function(){return ye.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return ye.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return ye.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return ye.ComponentCollection}));var ve=n("./src/stylesmanager.ts");n.d(t,"StylesManager",(function(){return ve.StylesManager}));var be=n("./src/list.ts");n.d(t,"ListModel",(function(){return be.ListModel}));var Ce=n("./src/multiSelectListModel.ts");n.d(t,"MultiSelectListModel",(function(){return Ce.MultiSelectListModel}));var we=n("./src/popup.ts");n.d(t,"PopupModel",(function(){return we.PopupModel})),n.d(t,"createDialogOptions",(function(){return we.createDialogOptions}));var xe=n("./src/popup-view-model.ts");n.d(t,"PopupBaseViewModel",(function(){return xe.PopupBaseViewModel}));var Ee=n("./src/popup-dropdown-view-model.ts");n.d(t,"PopupDropdownViewModel",(function(){return Ee.PopupDropdownViewModel}));var Pe=n("./src/popup-modal-view-model.ts");n.d(t,"PopupModalViewModel",(function(){return Pe.PopupModalViewModel}));var Se=n("./src/popup-utils.ts");n.d(t,"createPopupViewModel",(function(){return Se.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return Se.createPopupModalViewModel}));var Oe=n("./src/dropdownListModel.ts");n.d(t,"DropdownListModel",(function(){return Oe.DropdownListModel}));var Te=n("./src/dropdownMultiSelectListModel.ts");n.d(t,"DropdownMultiSelectListModel",(function(){return Te.DropdownMultiSelectListModel}));var _e=n("./src/question_buttongroup.ts");n.d(t,"QuestionButtonGroupModel",(function(){return _e.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return _e.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return _e.ButtonGroupItemValue}));var Ve=n("./src/utils/devices.ts");n.d(t,"IsMobile",(function(){return Ve.IsMobile})),n.d(t,"IsTouch",(function(){return Ve.IsTouch})),n.d(t,"_setIsTouch",(function(){return Ve._setIsTouch}));var Re=n("./src/utils/utils.ts");n.d(t,"confirmAction",(function(){return Re.confirmAction})),n.d(t,"confirmActionAsync",(function(){return Re.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return Re.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return Re.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return Re.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return Re.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return Re.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return Re.increaseHeightByContent})),n.d(t,"createSvg",(function(){return Re.createSvg})),n.d(t,"chooseFiles",(function(){return Re.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return Re.sanitizeEditableContent}));var Ie=n("./src/mask/mask_base.ts");n.d(t,"InputMaskBase",(function(){return Ie.InputMaskBase}));var ke=n("./src/mask/mask_pattern.ts");n.d(t,"InputMaskPattern",(function(){return ke.InputMaskPattern}));var Ae=n("./src/mask/mask_numeric.ts");n.d(t,"InputMaskNumeric",(function(){return Ae.InputMaskNumeric}));var De=n("./src/mask/mask_datetime.ts");n.d(t,"InputMaskDateTime",(function(){return De.InputMaskDateTime}));var Ne=n("./src/mask/mask_currency.ts");n.d(t,"InputMaskCurrency",(function(){return Ne.InputMaskCurrency}));var Me=n("./src/utils/cssClassBuilder.ts");n.d(t,"CssClassBuilder",(function(){return Me.CssClassBuilder}));var Le=n("./src/defaultCss/defaultV2Css.ts");n.d(t,"surveyCss",(function(){return Le.surveyCss})),n.d(t,"defaultV2Css",(function(){return Le.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return Le.defaultV2ThemeName}));var je=n("./src/dragdrop/core.ts");n.d(t,"DragDropCore",(function(){return je.DragDropCore}));var Fe=n("./src/dragdrop/choices.ts");n.d(t,"DragDropChoices",(function(){return Fe.DragDropChoices}));var Be,qe,He=n("./src/dragdrop/ranking-select-to-rank.ts");function ze(e,t){if(Be!=e){var n="survey-core has version '"+Be+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}function Qe(e){Ue(e)}function Ue(e){!function(e,t,n){if(e){var o=function(e){var t,n,r,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<u;n++)for(i=(i<<6)+o[e.charAt(n)],s+=6;s>=8;)((r=i>>>(s-=8)&255)||n<u-2)&&(a+=l(r));return a}(e);if(o){var i=o.indexOf(";");i<0||function(e){if(!e)return!0;var t="domains:",n=e.indexOf(t);if(n<0)return!0;var o=e.substring(n+8).toLowerCase().split(",");if(!Array.isArray(o)||0===o.length)return!0;var i=r.DomWindowHelper.getLocation();if(i&&i.hostname){var s=i.hostname.toLowerCase();o.push("localhost");for(var a=0;a<o.length;a++)if(s.indexOf(o[a])>-1)return!0;return!1}return!0}(o.substring(0,i))&&(o=o.substring(i+1)).split(",").forEach((function(e){var r=e.indexOf("=");r>0&&(t[e.substring(0,r)]=new Date(n)<=new Date(e.substring(r+1)))}))}}}(e,$e,qe)}function We(e){return!0===$e[e.toString()]}n.d(t,"DragDropRankingSelectToRank",(function(){return He.DragDropRankingSelectToRank})),Be="1.11.5",qe="2024-07-03";var $e={}},"./src/entries/core-wo-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/chunks/model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"slk",(function(){return r.slk})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return r.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return r.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return r.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return r.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return r.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"ProgressButtons",(function(){return r.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return r.ProgressButtonsResponsivityManager})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return r.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"Cover",(function(){return r.Cover})),n.d(t,"CoverCell",(function(){return r.CoverCell})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"confirmActionAsync",(function(){return r.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"chooseFiles",(function(){return r.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"InputMaskBase",(function(){return r.InputMaskBase})),n.d(t,"InputMaskPattern",(function(){return r.InputMaskPattern})),n.d(t,"InputMaskNumeric",(function(){return r.InputMaskNumeric})),n.d(t,"InputMaskDateTime",(function(){return r.InputMaskDateTime})),n.d(t,"InputMaskCurrency",(function(){return r.InputMaskCurrency})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank}));var o=n("./src/defaultCss/cssstandard.ts");n.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=n("./src/defaultCss/cssmodern.ts");n.d(t,"modernCss",(function(){return i.modernCss}));var s=n("./src/svgbundle.ts");n.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=n("./src/rendererFactory.ts");n.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return u.unwrap})),n.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),n.d(t,"getElement",(function(){return u.getElement}));var c=n("./src/actions/action.ts");n.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),n.d(t,"createPopupModelWithListModel",(function(){return c.createPopupModelWithListModel})),n.d(t,"getActionDropdownButtonTarget",(function(){return c.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return c.BaseAction})),n.d(t,"Action",(function(){return c.Action})),n.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=n("./src/utils/animation.ts");n.d(t,"AnimationUtils",(function(){return p.AnimationUtils})),n.d(t,"AnimationPropertyUtils",(function(){return p.AnimationPropertyUtils})),n.d(t,"AnimationGroupUtils",(function(){return p.AnimationGroupUtils})),n.d(t,"AnimationProperty",(function(){return p.AnimationProperty})),n.d(t,"AnimationBoolean",(function(){return p.AnimationBoolean})),n.d(t,"AnimationGroup",(function(){return p.AnimationGroup})),n.d(t,"AnimationTab",(function(){return p.AnimationTab}));var d=n("./src/actions/adaptive-container.ts");n.d(t,"AdaptiveActionContainer",(function(){return d.AdaptiveActionContainer}));var h=n("./src/actions/container.ts");n.d(t,"defaultActionBarCss",(function(){return h.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return h.ActionContainer}));var f=n("./src/utils/dragOrClickHelper.ts");n.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/core-wo-model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"slk",(function(){return r.slk})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return r.QuestionMatrixDropdownRenderedErrorRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"MultipleTextCell",(function(){return r.MultipleTextCell})),n.d(t,"MultipleTextErrorCell",(function(){return r.MultipleTextErrorCell})),n.d(t,"MutlipleTextErrorRow",(function(){return r.MutlipleTextErrorRow})),n.d(t,"MutlipleTextRow",(function(){return r.MutlipleTextRow})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"ProgressButtons",(function(){return r.ProgressButtons})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return r.ProgressButtonsResponsivityManager})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"SurveyTriggerSkip",(function(){return r.SurveyTriggerSkip})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"Cover",(function(){return r.Cover})),n.d(t,"CoverCell",(function(){return r.CoverCell})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"confirmActionAsync",(function(){return r.confirmActionAsync})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"chooseFiles",(function(){return r.chooseFiles})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"InputMaskBase",(function(){return r.InputMaskBase})),n.d(t,"InputMaskPattern",(function(){return r.InputMaskPattern})),n.d(t,"InputMaskNumeric",(function(){return r.InputMaskNumeric})),n.d(t,"InputMaskDateTime",(function(){return r.InputMaskDateTime})),n.d(t,"InputMaskCurrency",(function(){return r.InputMaskCurrency})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank})),n.d(t,"defaultStandardCss",(function(){return r.defaultStandardCss})),n.d(t,"modernCss",(function(){return r.modernCss})),n.d(t,"SvgIconRegistry",(function(){return r.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return r.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return r.SvgBundleViewModel})),n.d(t,"RendererFactory",(function(){return r.RendererFactory})),n.d(t,"ResponsivityManager",(function(){return r.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return r.VerticalResponsivityManager})),n.d(t,"unwrap",(function(){return r.unwrap})),n.d(t,"getOriginalEvent",(function(){return r.getOriginalEvent})),n.d(t,"getElement",(function(){return r.getElement})),n.d(t,"createDropdownActionModel",(function(){return r.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return r.createDropdownActionModelAdvanced})),n.d(t,"createPopupModelWithListModel",(function(){return r.createPopupModelWithListModel})),n.d(t,"getActionDropdownButtonTarget",(function(){return r.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return r.BaseAction})),n.d(t,"Action",(function(){return r.Action})),n.d(t,"ActionDropdownViewModel",(function(){return r.ActionDropdownViewModel})),n.d(t,"AnimationUtils",(function(){return r.AnimationUtils})),n.d(t,"AnimationPropertyUtils",(function(){return r.AnimationPropertyUtils})),n.d(t,"AnimationGroupUtils",(function(){return r.AnimationGroupUtils})),n.d(t,"AnimationProperty",(function(){return r.AnimationProperty})),n.d(t,"AnimationBoolean",(function(){return r.AnimationBoolean})),n.d(t,"AnimationGroup",(function(){return r.AnimationGroup})),n.d(t,"AnimationTab",(function(){return r.AnimationTab})),n.d(t,"AdaptiveActionContainer",(function(){return r.AdaptiveActionContainer})),n.d(t,"defaultActionBarCss",(function(){return r.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return r.ActionContainer})),n.d(t,"DragOrClickHelper",(function(){return r.DragOrClickHelper}));var o=n("./src/survey.ts");n.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnswerRequiredError",(function(){return a})),n.d(t,"OneAnswerRequiredError",(function(){return l})),n.d(t,"RequreNumericError",(function(){return u})),n.d(t,"ExceedSizeError",(function(){return c})),n.d(t,"WebRequestError",(function(){return p})),n.d(t,"WebRequestEmptyError",(function(){return d})),n.d(t,"OtherEmptyError",(function(){return h})),n.d(t,"UploadingFileError",(function(){return f})),n.d(t,"RequiredInAllRowsError",(function(){return m})),n.d(t,"EachRowUniqueError",(function(){return g})),n.d(t,"MinRowCountError",(function(){return y})),n.d(t,"KeyDuplicationError",(function(){return v})),n.d(t,"CustomError",(function(){return b}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/survey-error.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(i.SurveyError),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),b=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionItem",(function(){return l})),n.d(t,"HtmlConditionItem",(function(){return u})),n.d(t,"UrlConditionItem",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:An},c=An,p=function(e,t){return rr(e,t,!0)},d="||",h=_n("||",!1),f="or",m=_n("or",!0),g=function(){return"or"},y="&&",v=_n("&&",!1),b="and",C=_n("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},E="<=",P=_n("<=",!1),S="lessorequal",O=_n("lessorequal",!0),T=function(){return"lessorequal"},_=">=",V=_n(">=",!1),R="greaterorequal",I=_n("greaterorequal",!0),k=function(){return"greaterorequal"},A="==",D=_n("==",!1),N="equal",M=_n("equal",!0),L=function(){return"equal"},j="=",F=_n("=",!1),B="!=",q=_n("!=",!1),H="notequal",z=_n("notequal",!0),Q=function(){return"notequal"},U="<",W=_n("<",!1),$="less",G=_n("less",!0),J=function(){return"less"},Y=">",K=_n(">",!1),X="greater",Z=_n("greater",!0),ee=function(){return"greater"},te="+",ne=_n("+",!1),re=function(){return"plus"},oe="-",ie=_n("-",!1),se=function(){return"minus"},ae="*",le=_n("*",!1),ue=function(){return"mul"},ce="/",pe=_n("/",!1),de=function(){return"div"},he="%",fe=_n("%",!1),me=function(){return"mod"},ge="^",ye=_n("^",!1),ve="power",be=_n("power",!0),Ce=function(){return"power"},we="*=",xe=_n("*=",!1),Ee="contains",Pe=_n("contains",!0),Se="contain",Oe=_n("contain",!0),Te=function(){return"contains"},_e="notcontains",Ve=_n("notcontains",!0),Re="notcontain",Ie=_n("notcontain",!0),ke=function(){return"notcontains"},Ae="anyof",De=_n("anyof",!0),Ne=function(){return"anyof"},Me="allof",Le=_n("allof",!0),je=function(){return"allof"},Fe="(",Be=_n("(",!1),qe=")",He=_n(")",!1),ze=function(e){return e},Qe=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=_n("!",!1),$e="negate",Ge=_n("negate",!0),Je=function(e){return new o.UnaryOperand(e,"negate")},Ye=function(e,t){return new o.UnaryOperand(e,t)},Ke="empty",Xe=_n("empty",!0),Ze=function(){return"empty"},et="notempty",tt=_n("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=_n("undefined",!1),it="null",st=_n("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=_n("{",!1),pt="}",dt=_n("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=_n("''",!1),yt=function(){return""},vt='""',bt=_n('""',!1),Ct="'",wt=_n("'",!1),xt=function(e){return"'"+e+"'"},Et='"',Pt=_n('"',!1),St="[",Ot=_n("[",!1),Tt="]",_t=_n("]",!1),Vt=function(e){return e},Rt=",",It=_n(",",!1),kt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},At="true",Dt=_n("true",!0),Nt=function(){return!0},Mt="false",Lt=_n("false",!0),jt=function(){return!1},Ft="0x",Bt=_n("0x",!1),qt=function(){return parseInt(Tn(),16)},Ht=/^[\-]/,zt=Vn(["-"],!1,!1),Qt=function(e,t){return null==e?t:-t},Ut=".",Wt=_n(".",!1),$t=function(){return parseFloat(Tn())},Gt=function(){return parseInt(Tn(),10)},Jt="0",Yt=_n("0",!1),Kt=function(){return 0},Xt=function(e){return e.join("")},Zt="\\'",en=_n("\\'",!1),tn=function(){return"'"},nn='\\"',rn=_n('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=Vn(['"',"'"],!0,!1),ln=function(){return Tn()},un=/^[^{}]/,cn=Vn(["{","}"],!0,!1),pn=/^[0-9]/,dn=Vn([["0","9"]],!1,!1),hn=/^[1-9]/,fn=Vn([["1","9"]],!1,!1),mn=/^[a-zA-Z_]/,gn=Vn([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=Vn([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],En=0,Pn=[],Sn=0,On={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Tn(){return e.substring(wn,Cn)}function _n(e,t){return{type:"literal",text:e,ignoreCase:t}}function Vn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function kn(e){Cn<En||(Cn>En&&(En=Cn,Pn=[]),Pn.push(e))}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Nn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Dn(){var t,n,r=34*Cn+1,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Sn&&kn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Sn&&kn(m))),n!==l&&(wn=t,n=g()),t=n,On[r]={nextPos:Cn,result:t},t)}function Nn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Mn(){var t,n,r=34*Cn+3,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Sn&&kn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Sn&&kn(C))),n!==l&&(wn=t,n=w()),t=n,On[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function jn(){var t,n,r=34*Cn+5,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===E?(n=E,Cn+=2):(n=l,0===Sn&&kn(P)),n===l&&(e.substr(Cn,11).toLowerCase()===S?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(O))),n!==l&&(wn=t,n=T()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===_?(n=_,Cn+=2):(n=l,0===Sn&&kn(V)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Sn&&kn(I))),n!==l&&(wn=t,n=k()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===A?(n=A,Cn+=2):(n=l,0===Sn&&kn(D)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=j,Cn++):(n=l,0===Sn&&kn(F)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Sn&&kn(q)),n===l&&(e.substr(Cn,8).toLowerCase()===H?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(z))),n!==l&&(wn=t,n=Q()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Sn&&kn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===$?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(G))),n!==l&&(wn=t,n=J()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=Y,Cn++):(n=l,0===Sn&&kn(K)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Z))),n!==l&&(wn=t,n=ee()),t=n)))))),On[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Sn&&kn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Sn&&kn(ie)),n!==l&&(wn=t,n=se()),t=n),On[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+9,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Sn&&kn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Sn&&kn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Sn&&kn(fe)),n!==l&&(wn=t,n=me()),t=n)),On[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+11,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=ge,Cn++):(n=l,0===Sn&&kn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(be))),n!==l&&(wn=t,n=Ce()),t=n,On[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=$n())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Sn&&kn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Ee?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(Pe)),n===l&&(e.substr(Cn,7).toLowerCase()===Se?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Oe)))),n!==l&&(wn=t,n=Te()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===_e?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(Ve)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Sn&&kn(Ie))),n!==l&&(wn=t,n=ke()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ae?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(De)),n!==l&&(wn=t,n=Ne()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Me?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Le)),n!==l&&(wn=t,n=je()),t=n))),On[r]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+14,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Fe,Cn++):(n=l,0===Sn&&kn(Be)),n!==l&&nr()!==l&&(r=An())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=qe,Cn++):(o=l,0===Sn&&kn(He)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=On[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Zn())!==l?(40===e.charCodeAt(Cn)?(r=Fe,Cn++):(r=l,0===Sn&&kn(Be)),r!==l&&(o=Jn())!==l?(41===e.charCodeAt(Cn)?(i=qe,Cn++):(i=l,0===Sn&&kn(He)),i===l&&(i=null),i!==l?(wn=t,t=n=Qe(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),On[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Sn&&kn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===$e?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Sn&&kn(Ge))),n!==l&&nr()!==l&&(r=An())!==l?(wn=t,t=n=Je(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=Gn())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ke?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Xe)),n!==l&&(wn=t,n=Ze()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(tt)),n!==l&&(wn=t,n=nt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ye(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=Gn())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=St,Cn++):(n=l,0===Sn&&kn(Ot)),n!==l&&(r=Jn())!==l?(93===e.charCodeAt(Cn)?(o=Tt,Cn++):(o=l,0===Sn&&kn(_t)),o!==l?(wn=t,t=n=Vt(r)):(Cn=t,t=l)):(Cn=t,t=l),On[i]={nextPos:Cn,result:t},t)}()))),On[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+18,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Sn&&kn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Sn&&kn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===At?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(Dt)),n!==l&&(wn=t,n=Nt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Mt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Lt)),n!==l&&(wn=t,n=jt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===Ft?(n=Ft,Cn+=2):(n=l,0===Sn&&kn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=qt()):(Cn=t,t=l),t===l&&(t=Cn,Ht.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Sn&&kn(Wt)),r!==l&&er()!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn));else t=l;return On[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Jt,Cn++):(n=l,0===Sn&&kn(Yt)),n!==l&&(wn=t,n=Kt()),t=n)),On[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Qt(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Zn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===mt?(n=mt,Cn+=2):(n=l,0===Sn&&kn(gt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Sn&&kn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Sn&&kn(wt)),n!==l&&(r=Yn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Sn&&kn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Et,Cn++):(n=l,0===Sn&&kn(Pt)),n!==l&&(r=Yn())!==l?(34===e.charCodeAt(Cn)?(o=Et,Cn++):(o=l,0===Sn&&kn(Pt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),On[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Sn&&kn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Sn&&kn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),On[i]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=On[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=An())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=kt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return On[c]={nextPos:Cn,result:t},t}function Yn(){var e,t,n,r=34*Cn+26,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Kn())!==l)for(;n!==l;)t.push(n),n=Kn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}function Kn(){var t,n,r=34*Cn+27,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Zt?(n=Zt,Cn+=2):(n=l,0===Sn&&kn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Sn&&kn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(an)),n!==l&&(wn=t,n=ln()),t=n)),On[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(cn)),n!==l&&(wn=t,n=ln()),t=n,On[r]={nextPos:Cn,result:t},t)}function Zn(){var e,t,n,r,o,i,s=34*Cn+29,a=On[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return On[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn));else t=l;return On[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn)),n!==l)for(;n!==l;)t.push(n),mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn));else t=l;return On[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=On[r];if(o)return Cn=o.nextPos,o.result;for(Sn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));return Sn--,t===l&&(n=l,0===Sn&&kn(yn)),On[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&kn({type:"end"}),r=Pn,i=En<e.length?e.charAt(En):null,a=En<e.length?In(En,En+1):In(En,En),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return m})),n.d(t,"OperandMaker",(function(){return g}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=g.unaryFunctions[n],null==r.consumer&&g.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]&&(e.length<2||"."!==e[1]&&","!==e[1])?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n,r){return!e.binaryFunctions.equal(t,n,r)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FlowPanelModel",(function(){return l}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],(function(){n.onContentChanged()})),n}return a(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!s.DomWindowHelper.isAvailable())return!1;var n=s.DomWindowHelper.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);r.deleteContents();var o=new Text(e);if(r.insertNode(o),this.getContent){var i=this.getContent(t);this.content=i}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new l}),"panel")},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return a})),n.d(t,"registerFunction",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditions.ts"),a=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n,r){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return i.ConsoleWarnings.warn("Unknown function name: "+e),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(t,r)},e.Instance=new e,e}(),l=a.Instance.register;function u(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)u(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function c(e){var t=[];u(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function p(e,t){var n=[];u(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function d(e,t,n,o,i,s){return!e||r.Helpers.isValueEmpty(e[t])||s&&!s.run(e)?n:o(n,i?"string"==typeof(a=e[t])?r.Helpers.isNumber(a)?r.Helpers.getNumber(a):void 0:a:1);var a}function h(e,t,n,r){void 0===r&&(r=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var n=e[0];if(!n)return null;if(!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;var r=e[1];if("string"!=typeof r&&!(r instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"==typeof o||o instanceof String||(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:n,name:r,expression:o}}(e,t);if(o){var i=o.expression?new s.ConditionRunner(o.expression):void 0;i&&i.isAsync&&(i=void 0);var a=void 0;if(Array.isArray(o.data))for(var l=0;l<o.data.length;l++)a=d(o.data[l],o.name,a,n,r,i);else for(var u in o.data)a=d(o.data[u],o.name,a,n,r,i);return a}}function f(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==n?n:0}function m(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==n?n:0}function g(e,t,n){if("days"===n)return b([e,t]);var r=e?new Date(e):new Date,o=t?new Date(t):new Date;n=n||"years";var i=12*(o.getFullYear()-r.getFullYear())+o.getMonth()-r.getMonth();return o.getDate()<r.getDate()&&(i-=1),"months"===n?i:~~(i/12)}function y(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function v(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function b(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}function C(e){var t=v(void 0);return e&&e[0]&&(t=new Date(e[0])),t}function w(e,t){if(e&&t){for(var n=["row","panel","survey"],r=0;r<n.length;r++){var o=e[n[r]];if(o&&o.getQuestionByName){var i=o.getQuestionByName(t);if(i)return i}}return null}}a.Instance.register("sum",c),a.Instance.register("min",(function(e){return p(e,!0)})),a.Instance.register("max",(function(e){return p(e,!1)})),a.Instance.register("count",(function(e){var t=[];return u(e,t),t.length})),a.Instance.register("avg",(function(e){var t=[];u(e,t);var n=c(e);return t.length>0?n/t.length:0})),a.Instance.register("sumInArray",f),a.Instance.register("minInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),a.Instance.register("maxInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),a.Instance.register("countInArray",m),a.Instance.register("avgInArray",(function(e,t){var n=m(e,t);return 0==n?0:f(e,t)/n})),a.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),a.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),a.Instance.register("age",(function(e){return!Array.isArray(e)||e.length<1||!e[0]?null:g(e[0],void 0,(e.length>1?e[1]:"")||"years")})),a.Instance.register("dateDiff",(function(e){return!Array.isArray(e)||e.length<2||!e[0]||!e[1]?null:g(e[0],e[1],(e.length>2?e[2]:"")||"days")})),a.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!y(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return y(n)})),a.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),a.Instance.register("currentDate",(function(){return new Date})),a.Instance.register("today",v),a.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),a.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),a.Instance.register("diffDays",b),a.Instance.register("year",(function(e){return C(e).getFullYear()})),a.Instance.register("month",(function(e){return C(e).getMonth()+1})),a.Instance.register("day",(function(e){return C(e).getDate()})),a.Instance.register("weekday",(function(e){return C(e).getDay()})),a.Instance.register("displayValue",(function(e){var t=w(this,e[0]);return t?t.displayValue:""})),a.Instance.register("propertyValue",(function(e){if(2===e.length&&e[0]&&e[1]){var t=w(this,e[0]);return t?t[e[1]]:void 0}})),a.Instance.register("substring",(function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var n=e[1];if(!r.Helpers.isNumber(n))return"";var o=e.length>2?e[2]:void 0;return r.Helpers.isNumber(o)?t.substring(n,o):t.substring(n)}))},"./src/global_variables_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DomWindowHelper",(function(){return r})),n.d(t,"DomDocumentHelper",(function(){return o}));var r=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}()},"./src/header.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CoverCell",(function(){return c})),n.d(t,"Cover",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/utils/utils.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(){function e(e,t,n){this.cover=e,this.positionX=t,this.positionY=n}return e.prototype.calcRow=function(e){return"top"===e?1:"middle"===e?2:3},e.prototype.calcColumn=function(e){return"left"===e?1:"center"===e?2:3},e.prototype.calcAlignItems=function(e){return"left"===e?"flex-start":"center"===e?"center":"flex-end"},e.prototype.calcAlignText=function(e){return"left"===e?"start":"center"===e?"center":"end"},e.prototype.calcJustifyContent=function(e){return"top"===e?"flex-start":"middle"===e?"center":"flex-end"},Object.defineProperty(e.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return e.CLASSNAME+" "+e.CLASSNAME+"--"+this.positionX+" "+e.CLASSNAME+"--"+this.positionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e={};return e.gridColumn=this.calcColumn(this.positionX),e.gridRow=this.calcRow(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e={};return e.textAlign=this.calcAlignText(this.positionX),e.alignItems=this.calcAlignItems(this.positionX),e.justifyContent=this.calcJustifyContent(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),e.CLASSNAME="sv-header__cell",e}(),p=function(e){function t(){var t=e.call(this)||this;return t.cells=[],["top","middle","bottom"].forEach((function(e){return["left","center","right"].forEach((function(n){return t.cells.push(new c(t,n,e))}))})),t.init(),t}return l(t,e),t.prototype.calcBackgroundSize=function(e){return"fill"===e?"100% 100%":"tile"===e?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=(new s.CssClassBuilder).append("sv-header").append("sv-header__without-background","transparent"===this.backgroundColor&&!this.backgroundImage).append("sv-header__background-color--none","transparent"===this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&"transparent"!==this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth="survey"===this.inheritWidthFrom&&!!e&&"static"===e&&this.survey.renderedWidth,this.contentClasses=(new s.CssClassBuilder).append("sv-header__content").append("sv-header__content--static","survey"===this.inheritWidthFrom&&!!e&&"static"===e).append("sv-header__content--responsive","container"===this.inheritWidthFrom||!!e&&"responsive"===e).toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=(new s.CssClassBuilder).append("sv-header__background-image").append("sv-header__background-image--contain","contain"===this.backgroundImageFit).append("sv-header__background-image--tile","tile"===this.backgroundImageFit).toString()},t.prototype.fromTheme=function(t){e.prototype.fromJSON.call(this,t.header||{}),t.cssVariables&&(this.backgroundColor=t.cssVariables["--sjs-header-backcolor"],this.titleColor=t.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=t.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=Object(a.wrapUrlForBackgroundImage)(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.height&&(this.survey&&!this.survey.isMobile||!this.survey)?Math.max(this.height,this.actualHeight+40)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var t=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add((function(e,n){"widthMode"!=n.name&&"width"!=n.name||t.updateContentClasses()}))))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"backgroundColor"!==t&&"backgroundImage"!==t&&"overlapEnabled"!==t||this.updateHeaderClasses(),"inheritWidthFrom"===t&&this.updateContentClasses(),"backgroundImageFit"===t&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,t,n){var r=["top","middle","bottom"],o=r.indexOf(this.logoPositionY),i=r.indexOf(this.titlePositionY),s=r.indexOf(this.descriptionPositionY),a=["left","center","right"],l=a.indexOf(this.logoPositionX),u=a.indexOf(this.titlePositionX),c=a.indexOf(this.descriptionPositionX),p=[[0,0,0],[0,0,0],[0,0,0]];return p[o][l]=e,p[i][u]+=t,p[s][c]+=n,p.reduce((function(e,t){return e+Math.max.apply(Math,t)}),0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement){var t=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],n=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],o=t?t.getBoundingClientRect().height:0,i=n?n.getBoundingClientRect().height:0,s=r?r.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(o,i,s)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||"transparent"!==this.backgroundColor},enumerable:!1,configurable:!0}),u([Object(i.property)({defaultValue:0})],t.prototype,"actualHeight",void 0),u([Object(i.property)()],t.prototype,"height",void 0),u([Object(i.property)()],t.prototype,"inheritWidthFrom",void 0),u([Object(i.property)()],t.prototype,"textAreaWidth",void 0),u([Object(i.property)()],t.prototype,"textGlowEnabled",void 0),u([Object(i.property)()],t.prototype,"overlapEnabled",void 0),u([Object(i.property)()],t.prototype,"backgroundColor",void 0),u([Object(i.property)()],t.prototype,"titleColor",void 0),u([Object(i.property)()],t.prototype,"descriptionColor",void 0),u([Object(i.property)({onSet:function(e,t){t.renderBackgroundImage=Object(a.wrapUrlForBackgroundImage)(e)}})],t.prototype,"backgroundImage",void 0),u([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),u([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),u([Object(i.property)()],t.prototype,"backgroundImageOpacity",void 0),u([Object(i.property)()],t.prototype,"logoPositionX",void 0),u([Object(i.property)()],t.prototype,"logoPositionY",void 0),u([Object(i.property)()],t.prototype,"titlePositionX",void 0),u([Object(i.property)()],t.prototype,"titlePositionY",void 0),u([Object(i.property)()],t.prototype,"descriptionPositionX",void 0),u([Object(i.property)()],t.prototype,"descriptionPositionY",void 0),u([Object(i.property)()],t.prototype,"logoStyle",void 0),u([Object(i.property)()],t.prototype,"titleStyle",void 0),u([Object(i.property)()],t.prototype,"descriptionStyle",void 0),u([Object(i.property)()],t.prototype,"headerClasses",void 0),u([Object(i.property)()],t.prototype,"contentClasses",void 0),u([Object(i.property)()],t.prototype,"maxWidth",void 0),u([Object(i.property)()],t.prototype,"backgroundImageClasses",void 0),t}(o.Base);i.Serializer.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],(function(){return new p}))},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),r=t.split("."),o=n.length,i=r.length,s=0;s<o&&s<i;s++){var a=n[s],l=r[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/images sync \\.svg$":function(e,t,n){var r={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChangeCamera.svg":"./src/images/ChangeCamera.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./CloseCamera.svg":"./src/images/CloseCamera.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./NavMenu_24x24.svg":"./src/images/NavMenu_24x24.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./ShowCamera.svg":"./src/images/ShowCamera.svg","./TakePicture.svg":"./src/images/TakePicture.svg","./TakePicture_24x24.svg":"./src/images/TakePicture_24x24.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./back-to-panel_16x16.svg":"./src/images/back-to-panel_16x16.svg","./chevron.svg":"./src/images/chevron.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./close_16x16.svg":"./src/images/close_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./drag-n-drop.svg":"./src/images/drag-n-drop.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./full-screen_16x16.svg":"./src/images/full-screen_16x16.svg","./loading.svg":"./src/images/loading.svg","./minimize_16x16.svg":"./src/images/minimize_16x16.svg","./next_16x16.svg":"./src/images/next_16x16.svg","./no-image.svg":"./src/images/no-image.svg","./ranking-arrows.svg":"./src/images/ranking-arrows.svg","./ranking-dash.svg":"./src/images/ranking-dash.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./restore_16x16.svg":"./src/images/restore_16x16.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChangeCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/CloseCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.41 12L20.7 4.71C21.09 4.32 21.09 3.69 20.7 3.3C20.31 2.91 19.68 2.91 19.29 3.3L12 10.59L4.71 3.29C4.32 2.9 3.68 2.9 3.29 3.29C2.9 3.68 2.9 4.32 3.29 4.71L10.58 12L3.29 19.29C2.9 19.68 2.9 20.31 3.29 20.7C3.49 20.9 3.74 20.99 4 20.99C4.26 20.99 4.51 20.89 4.71 20.7L12 13.41L19.29 20.7C19.49 20.9 19.74 20.99 20 20.99C20.26 20.99 20.51 20.89 20.71 20.7C21.1 20.31 21.1 19.68 20.71 19.29L13.42 12H13.41Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/NavMenu_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/ShowCamera.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/TakePicture.svg":function(e,t){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./src/images/TakePicture_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/back-to-panel_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15.0001 6C15.0001 6.55 14.5501 7 14.0001 7H10.0001C9.45006 7 9.00006 6.55 9.00006 6V2C9.00006 1.45 9.45006 1 10.0001 1C10.5501 1 11.0001 1.45 11.0001 2V3.59L13.2901 1.29C13.4901 1.09 13.7401 1 14.0001 1C14.2601 1 14.5101 1.1 14.7101 1.29C15.1001 1.68 15.1001 2.31 14.7101 2.7L12.4201 4.99H14.0101C14.5601 4.99 15.0101 5.44 15.0101 5.99L15.0001 6ZM6.00006 9H2.00006C1.45006 9 1.00006 9.45 1.00006 10C1.00006 10.55 1.45006 11 2.00006 11H3.59006L1.29006 13.29C0.900059 13.68 0.900059 14.31 1.29006 14.7C1.68006 15.09 2.31006 15.09 2.70006 14.7L4.99006 12.41V14C4.99006 14.55 5.44006 15 5.99006 15C6.54006 15 6.99006 14.55 6.99006 14V10C6.99006 9.45 6.54006 9 5.99006 9H6.00006Z"></path></svg>'},"./src/images/chevron.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/close_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/drag-n-drop.svg":function(e,t){e.exports='<svg viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/full-screen_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./src/images/loading.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_885_24957)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_885_24957"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./src/images/minimize_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./src/images/next_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/ranking-arrows.svg":function(e,t){e.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./src/images/ranking-dash.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./src/images/restore_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,n){var r={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ItemValue",(function(){return f}));var r,o=n("./src/localizablestring.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/conditions.ts"),l=n("./src/base.ts"),u=n("./src/settings.ts"),c=n("./src/actions/action.ts"),p=n("./src/question.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return d(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],s=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.Helpers.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.Helpers.isValueEmpty(e[r].value))return e[r];if(s.Helpers.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(r,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var n=e.toString(),r=n.indexOf(u.settings.itemValueSeparator);r>-1&&(e=n.slice(0,r),t=n.slice(r+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.serialization.itemValueSerializeAsObject||u.settings.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(u.settings.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var n=new i.JsonObject,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof p.Question&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return t.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof p.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},h([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),h([Object(i.property)()],t.prototype,"selectedValue",void 0),h([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var n=null;return(n=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new f(null,void 0,e.getType()):new f(null)).setData(e),n},l.Base.itemValueLocStrChanged=function(e){f.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var n=new Array;return f.setData(n,Array.isArray(e)?e:[],t),n},i.Serializer.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new f(e)}))},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return m})),n.d(t,"JsonMetadata",(function(){return g})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonRequiredArrayPropertyError",(function(){return E})),n.d(t,"JsonIncorrectPropertyValueError",(function(){return P})),n.d(t,"JsonObject",(function(){return S})),n.d(t,"Serializer",(function(){return O}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);if(!r){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),r=e.createLocalizableString(n,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback)}}function c(e){return void 0===e&&(e={}),function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&O.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){var n=this.getDefaultValue(e);return s.Helpers.isValueEmpty(n)?this.isLocalizable?null==t:!1===t&&("boolean"==this.type||"switch"==this.type)||""===t||s.Helpers.isValueEmpty(t):s.Helpers.isTwoValueEquals(t,n,!1,!0,!1)},e.prototype.getSerializableValue=function(e){return this.onSerializeValue?this.onSerializeValue(e):this.getValue(e)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&O.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?O.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||s.Helpers.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.defaultValue;var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(O.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=O.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?O.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!O.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=O.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=O.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),r=O.findProperty(n.getType(),t);if(r)return this.getObjPropertyValueCore(n,r)}var o=O.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new m(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e),o=r.length-1;o>=0;o--)this.findProperty(t,r[o].name)&&r.splice(o,1);return 0===r.length?n:[].concat(n).concat(r)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var r=this;n.forEach((function(n){r.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&r.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&r.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)}))},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,r){var o={configurable:!0,get:function(){return t[n]}};r||(o.set=function(e){t[n]=e}),Object.defineProperty(e,n,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var r=t+"-"+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<o.length;u++){var c=o[u];!i[c.name]&&n.indexOf(c.name)<0&&l.push(c)}return this.dynamicPropsCache[r]=l,l},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=O.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&O.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=new Array;return e.forEach((function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)})),t},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+t+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.baseClassName=t,o.type=n,o.message=r,o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),E=function(e){function t(t,n){var r=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(e){function t(t,n){var r=e.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+t.name+"'.")||this;return r.property=t,r.value=n,r}return a(t,e),t}(y),S=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)},e.prototype.toObjectCore=function(t,n,r){if(t){var o=null,i=void 0,s=!0;if(n.getType&&(i=n.getType(),o=O.getProperties(i),s=!!i&&!O.isDescendantOf(i,"itemvalue")),o){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(t),o=this.addDynamicProperties(n,t,o),this.options=r,t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var l=this.findProperty(o,a);l?this.valueToObj(t[a],n,l,t,r):s&&this.addNewError(new v(a.toString(),i),t,n)}else n[a]=t[a];this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType()));var i=!0===r;return r&&!0!==r||(r={}),i&&(r.storeDefaults=i),this.propertiesToJson(t,O.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return O.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){var r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}var o=this.getDynamicProperties(e);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.propertiesToJson=function(e,t,n,r){for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){r||(r={}),!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r)},e.prototype.valueToJsonCore=function(e,t,n,r){var o=n.getSerializedProperty(e,r.version);if(o&&o!==n)this.valueToJsonCore(e,t,o,r);else{var i=n.getSerializableValue(e);if(r.storeDefaults||!n.isDefaultValueByObj(e,i)){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],n,r));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,n,r);if(null!=i){var l=n.getSerializedName(r.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(r.storeDefaults&&u||!n.isDefaultValueByObj(e,i))&&(O.onSerializingProperty&&O.onSerializingProperty(e,n,i,t)||(t[l]=this.removePosOnValueToJson(n,i)))}}}},e.prototype.valueToObj=function(e,t,n,r,o){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else{if(n.isArray&&!Array.isArray(e)&&e){e=[e];var i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new E(i,t.getType()),r||e,t)}if(this.isValueArray(e))this.valueToArray(e,t,n.name,n,o);else{var s=this.createNewObj(e,n);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),s.error||(null!=n?(n.setValue(t,e,this),o&&o.validatePropertyValues&&(n.validateValue(e)||this.addNewError(new P(n,e),r,t))):t[n.name]=e)}}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if("object"==typeof t)for(var r in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[r])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(e,t){var n={newObj:null,error:null},r=this.getClassNameForNewObj(e,t);return n.newObj=r?O.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var n=O.findClass(e.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var i=r[o];if(s.Helpers.isValueEmpty(i.defaultValue)&&!t[i.name])return new x(i.name,e.getType())}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r,o){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r,o),t[n]||(t[n]=i)}},e.prototype.addValuesIntoArray=function(e,t,n,r){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,r)):i.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),O=S.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s){var l=e.call(this)||this;if(l.onSelectionChanged=r,l.allowSelection=o,l.elementId=s,l.onItemClick=function(e){if(!l.isItemDisabled(e)){l.isExpanded=!1,l.allowSelection&&(l.selectedItem=e),l.onSelectionChanged&&l.onSelectionChanged(e);var t=e.action;t&&t(e)}},l.onItemHover=function(e){l.mouseOverHandler(e)},l.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},l.isItemSelected=function(e){return l.areSameItems(l.selectedItem,e)},l.isItemFocused=function(e){return l.areSameItems(l.focusedItem,e)},l.getListClass=function(){return(new a.CssClassBuilder).append(l.cssClasses.itemsContainer).append(l.cssClasses.itemsContainerFiltering,!!l.filterString&&l.visibleActions.length!==l.visibleItems.length).toString()},l.getItemClass=function(e){return(new a.CssClassBuilder).append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!e.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(e)).append(l.cssClasses.itemFocused,l.isItemFocused(e)).append(l.cssClasses.itemSelected,l.isItemSelected(e)).append(l.cssClasses.itemGroup,e.hasSubItems).append(l.cssClasses.itemHovered,e.isHovered).append(l.cssClasses.itemTextWrap,l.textWrapEnabled).append(e.css).toString()},l.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},-1!==Object.keys(n).indexOf("items")){var u=n;Object.keys(u).forEach((function(e){switch(e){case"items":l.setItems(u.items);break;case"onFilterStringChangedCallback":l.setOnFilterStringChangedCallback(u.onFilterStringChangedCallback);break;case"onTextSearchCallback":l.setOnTextSearchCallback(u.onTextSearchCallback);break;default:l[e]=u[e]}}))}else l.setItems(n),l.selectedItem=i;return l}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var r=n.toLocaleLowerCase();return(r=c.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return t.forEach((function(e){n.push(e),e.items&&e.items.forEach((function(t){var r=new s.Action(t);r.iconName||(r.iconName=e.iconName),n.push(r)}))})),n}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener((function(){e.hidePopup()}))},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return u})),n.d(t,"LocalizableStrings",(function(){return c}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=n("./src/jsonobject.ts"),l=n("./src/survey-element.ts"),u=function(){function e(e,t,n){var r;void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this._allowLineBreaks=!1,this.onStringChanged=new s.EventBase,e instanceof l.SurveyElementCore&&(this._allowLineBreaks="text"==(null===(r=a.Serializer.findProperty(e.getType(),n))||void 0===r?void 0:r.type)),this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){return this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(o.surveyLocalization.defaultLocale)),this.isValueEmpty(t)){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return this.getLocaleTextCore(e)||""},e.prototype.getLocaleTextCore=function(e){return e||(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||!this.isLocaleTextEqualsWithDefault(e,t)){if(i.settings.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,r)}}else{if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&!this.isValueEmpty(a)&&(this.setValue(s,t),this.fireStrChanged(s,a))}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length)return null;if(1==e.length&&e[0]==i.settings.localization.defaultLocaleName&&!i.settings.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var t={};for(var n in this.values)t[n]=this.values[n];return t},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},null!=e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return this.setHtmlValue(e,""),!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),c=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"}},"./src/martixBase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixBaseModel",(function(){return d}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);return t&&this.hideIfRowsEmpty?this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0):t},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return o.ItemValue.runEnabledConditionsForItems(this.rows,void 0,e,t),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==n&&(n={}),n[a]=t[a]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),i=!1;for(var s in n)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==r&&(r={}),r[s]=n[s],i=!0);i&&(this.value=r)},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some((function(e){return!!e.width}))},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(null===(e=this.renderedTable)||void 0===e?void 0:e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,t){return(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase()+" "+e+", "+(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase()+" "+t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),p([Object(s.property)()],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/mask/input_element_adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputElementAdapter",(function(){return r}));var r=function(){function e(e,t,n){var r=this;this.inputMaskInstance=e,this.inputElement=t,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(e,t){if("saveMaskedValue"!==t.name){var n=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=n}},this.clickHandler=function(e){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&(r.inputElement.setSelectionRange(0,0),e.preventDefault())},this.beforeInputHandler=function(e){var t=r.createArgs(e),n=r.inputMaskInstance.processInput(t);r.inputElement.value=n.value,r.inputElement.setSelectionRange(n.caretPosition,n.caretPosition),n.cancelPreventDefault||e.preventDefault()};var o=n;null==o&&(o=""),this.inputElement.value=e.getMaskedValue(o),this.prevUnmaskedValue=o,e.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return e.prototype.createArgs=function(e){var t={insertedChars:e.data,selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd,prevValue:e.target.value,inputDirection:"forward"};return"deleteContentBackward"===e.inputType&&(t.inputDirection="backward",t.selectionStart===t.selectionEnd&&(t.selectionStart=Math.max(t.selectionStart-1,0))),"deleteContentForward"===e.inputType&&t.selectionStart===t.selectionEnd&&(t.selectionEnd+=1),t},e.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler))},e.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler))},e.prototype.dispose=function(){this.removeInputEventListener(),this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},e}()},"./src/mask/mask_base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputMaskBase",(function(){return a}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var t=this;i.Serializer.getProperties(this.getType()).forEach((function(n){var r=e[n.name];t[n.name]=void 0!==r?r:n.defaultValue}))},t.prototype.getData=function(){var e=this,t={};return i.Serializer.getProperties(this.getType()).forEach((function(n){var r=e[n.name];n.isDefaultValue(r)||(t[n.name]=r)})),t},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)()],t.prototype,"saveMaskedValue",void 0),t}(o.Base);i.Serializer.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(e){return!!e&&"masksettings"!==e.getType()}}],(function(){return new a}))},"./src/mask/mask_currency.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"InputMaskCurrency",(function(){return l}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_numeric.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var t=this.prefix||"",n=this.suffix||"",r=e;return r?(-1===r.indexOf(t)&&(r=t+r),-1===r.indexOf(n)&&(r+=n),r):r},t.prototype.unwrapInputArgs=function(e){var t=e.prevValue;if(t){if(this.prefix&&-1!==t.indexOf(this.prefix)){t=t.slice(t.indexOf(this.prefix)+this.prefix.length);var n=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-n,0),e.selectionEnd-=n}this.suffix&&-1!==t.indexOf(this.suffix)&&(t=t.slice(0,t.indexOf(this.suffix))),e.prevValue=t}},t.prototype.processInput=function(t){this.unwrapInputArgs(t);var n=e.prototype.processInput.call(this,t),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(t){var n=e.prototype.getMaskedValue.call(this,t);return this.wrapText(n)},a([Object(o.property)()],t.prototype,"prefix",void 0),a([Object(o.property)()],t.prototype,"suffix",void 0),t}(i.InputMaskNumeric);o.Serializer.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],(function(){return new l}),"numericmask")},"./src/mask/mask_datetime.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"getDateTimeLexems",(function(){return d})),n.d(t,"InputMaskDateTime",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_pattern.ts"),s=n("./src/mask/mask_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function c(e,t){switch(e){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function p(e,t){var n=2e3;if(n>t&&(n=100*parseInt(t.toString().slice(0,t.toString().length-2))),n<e){var r=(t-e)/2+e;n=10*parseInt(r.toString().slice(0,r.toString().length-1))}return n>=e&&n<=t?n:e}function d(e){for(var t,n=[],r=function(e,r,o){if(void 0===o&&(o=!1),t&&t===e){n[n.length-1].count++;var i=c(e,n[n.length-1].count);n[n.length-1].maxCount=i}else i=c(e,1),n.push({type:e,value:r,count:1,maxCount:i,upperCase:o})},o=0;o<e.length;o++){var i=e[o];switch(i){case"m":r("month",i);break;case"d":r("day",i);break;case"y":r("year",i);break;case"h":r("hour",i,!1);break;case"H":r("hour",i,!0);break;case"M":r("minute",i);break;case"s":r("second",i);break;case"t":r("timeMarker",i);break;case"T":r("timeMarker",i,!0);break;default:n.push({type:"separator",value:i,count:1,maxCount:1,upperCase:!1})}t=n[n.length-1].type}return n}var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultDate="1970-01-01T",t.turnOfTheCentury=68,t.twelve=12,t.lexems=[],t.inputDateTimeData=[],t.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},t}return a(t,e),Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some((function(e){return"day"===e.type||"month"===e.type||"year"===e.type}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some((function(e){return"hour"===e.type||"minute"===e.type||"second"===e.type}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter((function(e){return"hour"===e.type&&!e.upperCase})).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.updateLiterals=function(){this.lexems=d(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var t="",n=0;n<e.length;n++)e[n].match(s.numberDefinition)&&(t+=e[n]);return t},t.prototype.getMaskedStrFromISO=function(e){var t=this,n=new Date(e);return this.initInputDateTimeData(),this.hasDatePart||(n=new Date(this.defaultDate+e)),isNaN(n)||this.lexems.forEach((function(e,r){var o=t.inputDateTimeData[r];switch(o.isCompleted=!0,e.type){case"hour":t.is12Hours?o.value=((n.getHours()-1)%t.twelve+1).toString():o.value=n.getHours().toString();break;case"minute":o.value=n.getMinutes().toString();break;case"second":o.value=n.getSeconds().toString();break;case"timeMarker":var i=n.getHours()>=t.twelve?"pm":"am";o.value=e.upperCase?i.toUpperCase():i;break;case"day":o.value=n.getDate().toString();break;case"month":o.value=(n.getMonth()+1).toString();break;case"year":var s=n.getFullYear();2==e.count&&(s%=100),o.value=s.toString()}})),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach((function(t){e.inputDateTimeData.push({lexem:t,isCompleted:!1,value:void 0})}))},t.prototype.getISO_8601Format=function(e){var t=[],n=[];if(void 0!==e.year){var r=this.getPlaceholder(4,e.year.toString(),"0")+e.year;t.push(r)}if(void 0!==e.month&&void 0!==e.year){var o=this.getPlaceholder(2,e.month.toString(),"0")+e.month;t.push(o)}if(void 0!==e.day&&void 0!==e.month&&void 0!==e.year){var i=this.getPlaceholder(2,e.day.toString(),"0")+e.day;t.push(i)}if(void 0!==e.hour){var s=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;n.push(s)}if(void 0!==e.minute&&void 0!==e.hour){var a=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;n.push(a)}if(void 0!==e.second&&void 0!==e.minute&&void 0!==e.hour){var l=this.getPlaceholder(2,e.second.toString(),"0")+e.second;n.push(l)}var u=[];return t.length>0&&u.push(t.join("-")),n.length>1&&u.push(n.join(":")),u.join("T")},t.prototype.isYearValid=function(e){if(void 0===e.min&&void 0===e.max)return!1;var t=e.year.toString(),n=e.min.toISOString().slice(0,t.length),r=e.max.toISOString().slice(0,t.length);return e.year>=parseInt(n)&&e.year<=parseInt(r)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,t){var n=e.min,r=e.max,o=void 0!==e.year?e.year:p(n.getFullYear(),r.getFullYear()),i=void 0!==e.month?e.month:t&&this.hasDatePart?12:1;return{year:o,month:i,day:void 0!==e.day?e.day:t&&this.hasDatePart?this.getMaxDateForMonth(o,i):1,hour:void 0!==e.hour?e.hour:t?23:0,minute:void 0!==e.minute?e.minute:t?59:0,second:void 0!==e.second?e.second:t?59:0}},t.prototype.getMaxDateForMonth=function(e,t){return 2==t?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]},t.prototype.isDateValid=function(e){var t=e.min,n=e.max,r=void 0!==e.year?e.year:p(t.getFullYear(),n.getFullYear()),o=void 0!==e.month?e.month:1,i=void 0!==e.day?e.day:1,s=o-1,a=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),l=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(a)&&a.getDate()===i&&a.getMonth()===s&&a.getFullYear()===r&&l>=e.min&&a<=e.max},t.prototype.getPlaceholder=function(e,t,n){var r=e-(t||"").length;return r>0?n.repeat(r):""},t.prototype.isDateValid12=function(e){return this.is12Hours?!(this.is12Hours&&e.hour>this.twelve)&&(e.timeMarker?"p"===e.timeMarker[0].toLowerCase()?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):!!this.isDateValid(e)||(e.hour+=this.twelve,this.isDateValid(e))):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,t){var n=e.value;if(n){var r="timeMarker",o=l({},t);o[r]=n,this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1),e.value=n||void 0,t[r]=n||void 0}},t.prototype.updateInputDateTimeData=function(e,t){var n=e.value;if(n){var r=e.lexem.type,o=l({},t);if(o[r]=parseInt(n),n.length===e.lexem.maxCount){if(this.isDateValid12(o))return e.isCompleted=!0,e.value=n||void 0,void(t[r]=parseInt(n)>0?parseInt(n):void 0);n=n.slice(0,n.length-1)}o[r]=parseInt(n);var i=parseInt(n[0]),s=this.validBeginningOfNumbers[r+(e.lexem.upperCase?"U":"")];"year"!==r||this.isYearValid(o)?void 0!==s&&i>s?this.isDateValid12(o)?e.isCompleted=!0:n=n.slice(0,n.length-1):void 0!==s&&0!==i&&i<=s&&(this.checkValidationDateTimePart(o,r,e),e.isCompleted&&!this.isDateValid12(o)&&(n=n.slice(0,n.length-1))):(n=n.slice(0,n.length-1),e.isCompleted=!1),e.value=n||void 0,t[r]=parseInt(n)>0?parseInt(n):void 0}},t.prototype.checkValidationDateTimePart=function(e,t,n){var r=e[t],o=10*r,i=10;"month"===t&&(i=3),"hour"===t&&(i=this.is12Hours?3:5),n.isCompleted=!0;for(var s=0;s<i;s++)if(e[t]=o+s,this.isDateValid12(e)){n.isCompleted=!1;break}e[t]=r},t.prototype.getCorrectDatePartFormat=function(e,t){var n=e.lexem,r=e.value||"";return r&&"timeMarker"===n.type?(t&&(r+=this.getPlaceholder(n.count,r,n.value)),r):(r&&e.isCompleted&&(r=parseInt(r).toString()),r&&e.isCompleted?r=this.getPlaceholder(n.count,r,"0")+r:(r=function(e,t){var n=t;return e.count<e.maxCount&&("day"===e.type&&0===parseInt(t[0])||"month"===e.type&&0===parseInt(t[0]))&&(n=t.slice(1,t.length)),n}(n,r),t&&(r+=this.getPlaceholder(n.count,r,n.value))),r)},t.prototype.createIDateTimeComposition=function(){var e,t;return this.hasDatePart?(e=this.min||"0001-01-01",t=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),t=this.defaultDate+(this.max||"23:59:59")),{hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(t)}},t.prototype.parseTwoDigitYear=function(e){var t=e.value;return"year"!==e.lexem.type||e.lexem.count>2?t:(this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4))),(parseInt(t)>this.turnOfTheCentury?"19":"20")+t)},t.prototype.getFormatedString=function(e){var t="",n="",r=!1,o=this.inputDateTimeData.length-1;if(!e){var i=this.inputDateTimeData.filter((function(e){return!!e.value}));o=this.inputDateTimeData.indexOf(i[i.length-1])}for(var s=0;s<this.inputDateTimeData.length;s++){var a=this.inputDateTimeData[s];switch(a.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(void 0===a.value&&!e)return t+(r?n:"");var l=e||o>s;t+=n+this.getCorrectDatePartFormat(a,l),r=a.isCompleted;break;case"separator":n=a.lexem.value}}return t},t.prototype.cleanTimeMarker=function(e,t){var n="";e=e.toUpperCase();for(var r=0;r<e.length;r++)(!n&&("P"==e[r]||"A"==e[r])||n&&"M"==e[r])&&(n+=e[r]);return t?n.toUpperCase():n.toLowerCase()},t.prototype.setInputDateTimeData=function(e){var t=this,n=0;this.initInputDateTimeData(),this.lexems.forEach((function(r,o){if(e.length>0&&n<e.length){if("separator"===r.type)return;var i=t.inputDateTimeData[o],s=e[n],a=void 0;a="timeMarker"===r.type?t.cleanTimeMarker(s,r.upperCase):t.leaveOnlyNumbers(s),i.value=a.slice(0,r.maxCount),n++}}))},t.prototype._getMaskedValue=function(e,t){var n=this;void 0===t&&(t=!0);var r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=this.createIDateTimeComposition();return this.inputDateTimeData.forEach((function(e){"timeMarker"===e.lexem.type?n.updateTimeMarkerInputDateTimeData(e,i):n.updateInputDateTimeData(e,i)})),this.getFormatedString(t)},t.prototype.getParts=function(e){for(var t=[],n=this.lexems.filter((function(e){return"separator"!==e.type})),r=this.lexems.filter((function(e){return"separator"===e.type})).map((function(e){return e.value})),o="",i=!1,a=!1,l=0;l<e.length;l++){var u=e[l];if(u.match(s.numberDefinition)||u===n[t.length].value||"timeMarker"===n[t.length].type?(i=!1,a=!1,o+=u):-1!==r.indexOf(u)?a||(i=!0,t.push(o),o=""):i||(a=!0,t.push(o),o=""),t.length>=n.length){i=!1;break}}return(""!=o||i)&&t.push(o),t},t.prototype.getUnmaskedValue=function(e){var t,n=this,r=null==e?"":e.toString(),o=this.getParts(r);this.setInputDateTimeData(o);var i=null===(t=this.inputDateTimeData.filter((function(e){return"timeMarker"===e.lexem.type}))[0])||void 0===t?void 0:t.value.toLowerCase()[0],s=this.createIDateTimeComposition(),a=!1;return this.inputDateTimeData.forEach((function(e){var t=e.value;if("timeMarker"!=e.lexem.type&&"separator"!=e.lexem.type)if(!t||t.length<e.lexem.count)a=!0;else{var r=parseInt(n.parseTwoDigitYear(e));"hour"==e.lexem.type&&"p"===i&&r!=n.twelve&&(r+=n.twelve),s[e.lexem.type]=r}})),a?"":this.getISO_8601Format(s)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart),r=e.prevValue.slice(e.selectionEnd);return t.value=this._getMaskedValue(n+(e.insertedChars||"")+r),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n+(e.insertedChars||""),!1).length:t.caretPosition=e.selectionStart,t},u([Object(o.property)()],t.prototype,"min",void 0),u([Object(o.property)()],t.prototype,"max",void 0),t}(i.InputMaskPattern);o.Serializer.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(e){return!!e.pattern}},{name:"max",type:"datetime",enableIf:function(e){return!!e.pattern}}],(function(){return new h}),"patternmask")},"./src/mask/mask_numeric.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"splitString",(function(){return u})),n.d(t,"InputMaskNumeric",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/mask/mask_base.ts"),s=n("./src/mask/mask_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function u(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3);var r=[];if(t){for(var o=e.length-n;o>-n;o-=n)r.push(e.substring(o,o+n));r=r.reverse()}else for(o=0;o<e.length;o+=n)r.push(e.substring(o,o+n));return r}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.calccaretPosition=function(e,t,n){for(var r=e?this.displayNumber(this.parseNumber(e),!1).length:0,o=0,i=t.selectionStart,s=!t.insertedChars&&"forward"===t.inputDirection,a=0;a<n.length;a++)if(n[a]!==this.thousandsSeparator&&o++,o===r+(s?1:0)){i=s?a:a+1;break}return i},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.integralPart;t&&r&&(r=u(r).join(this.thousandsSeparator));var o=e.fractionalPart,i=e.isNegative?"-":"";if(""===o){if(n)return r&&"0"!==r?i+r:r;var s=r+(e.hasDecimalSeparator&&!n?this.decimalSeparator:"");return"0"===s?s:i+s}return[i+(r=r||"0"),o=o.substring(0,this.precision)].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var t=e.isNegative?"-":"";return e.fractionalPart?parseFloat(t+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):parseInt(t+e.integralPart||"0")},t.prototype.validateNumber=function(e,t){var n=this.min||Number.MIN_SAFE_INTEGER,r=this.max||Number.MAX_SAFE_INTEGER;if(void 0!==this.min||void 0!==this.max){var o=this.convertNumber(e);if(Number.isNaN(o))return!0;if(o>=n&&o<=r)return!0;if(!t){if(e.hasDecimalSeparator||0==o){var i=Math.pow(.1,(e.fractionalPart||"").length);if(o>=0)return o+i>n&&o<=r;if(o<0)return o>=n&&o-i<r}else{var s=o,a=o;if(o>0){if(o+1>n&&o<=r)return!0;for(;s=10*s+9,!((a*=10)>r);)if(s>n)return!0;return!1}if(o<0){if(o>=n&&o-1<r)return!0;for(;a=10*a-9,!((s*=10)<n);)if(a<r)return!0;return!1}}return o>=0&&o<=r||o<0&&o>=n}return!1}return!0},t.prototype.parseNumber=function(e){for(var t={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},n=null==e?"":e.toString(),r=0,o=0;o<n.length;o++){var i=n[o];switch(i){case"-":this.allowNegativeValues&&(void 0===this.min||this.min<0)&&r++;break;case this.decimalSeparator:this.precision>0&&(t.hasDecimalSeparator=!0);break;case this.thousandsSeparator:break;default:i.match(s.numberDefinition)&&(t.hasDecimalSeparator?t.fractionalPart+=i:t.integralPart+=i)}}return t.isNegative=r%2!=0,t.integralPart.length>1&&"0"===t.integralPart[0]&&(t.integralPart=t.integralPart.slice(1)),t},t.prototype.getNumberMaskedValue=function(e,t){void 0===t&&(t=!1);var n=this.parseNumber(e);return this.validateNumber(n,t)?this.displayNumber(n,!0,t):null},t.prototype.getNumberUnmaskedValue=function(e){var t=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(t))return this.convertNumber(t)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var t=null==e?"":e.toString();return t=t.replace(".",this.decimalSeparator),this.getNumberMaskedValue(t,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=n+e.prevValue.slice(e.selectionEnd),o=this.parseNumber(r);if(!this.validateNumber(o,!1))return t;var i=this.getNumberMaskedValue(r),s=this.calccaretPosition(n,e,i);return t.value=i,t.caretPosition=s,t},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return""===e||null==e},l([Object(o.property)()],t.prototype,"allowNegativeValues",void 0),l([Object(o.property)()],t.prototype,"decimalSeparator",void 0),l([Object(o.property)()],t.prototype,"precision",void 0),l([Object(o.property)()],t.prototype,"thousandsSeparator",void 0),l([Object(o.property)()],t.prototype,"min",void 0),l([Object(o.property)()],t.prototype,"max",void 0),t}(i.InputMaskBase);o.Serializer.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],(function(){return new c}),"masksettings")},"./src/mask/mask_pattern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"getLiterals",(function(){return l})),n.d(t,"getMaskedValueByPattern",(function(){return c})),n.d(t,"getUnmaskedValueByPattern",(function(){return p})),n.d(t,"InputMaskPattern",(function(){return d}));var r,o=n("./src/settings.ts"),i=n("./src/jsonobject.ts"),s=n("./src/mask/mask_base.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e){for(var t=[],n=!1,r=Object.keys(o.settings.maskSettings.patternDefinitions),i=0;i<e.length;i++){var s=e[i];s===o.settings.maskSettings.patternEscapeChar?n=!0:n?(n=!1,t.push({type:"fixed",value:s})):t.push({type:-1!==r.indexOf(s)?"regex":"const",value:s})}return t}function u(e,t,n){for(var r=o.settings.maskSettings.patternDefinitions[n.value];t<e.length;){if(e[t].match(r))return t;t++}return t}function c(e,t,n){for(var r=null==e?"":e,i="",s=0,a="string"==typeof t?l(t):t,c=0;c<a.length;c++)switch(a[c].type){case"regex":if(s<r.length&&(s=u(r,s,a[c])),s<r.length)i+=r[s];else{if(!n)return i;i+=o.settings.maskSettings.patternPlaceholderChar}s++;break;case"const":case"fixed":i+=a[c].value,a[c].value===r[s]&&s++}return i}function p(e,t,n,r){void 0===r&&(r=!1);var i="";if(!e)return i;for(var s="string"==typeof t?l(t):t,a=0;a<s.length;a++)if("fixed"!==s[a].type||r||(i+=s[a].value),"regex"===s[a].type){var u=o.settings.maskSettings.patternDefinitions[s[a].value];if(!e[a]||!e[a].match(u)){if(n){i="";break}break}i+=e[a]}return i}var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.literals=[],t}return a(t,e),t.prototype.updateLiterals=function(){this.literals=l(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,t,n){"pattern"===e&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(t,n){e.prototype.fromJSON.call(this,t,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,t){return void 0===t&&(t=!1),c(null==e?"":e,this.literals,t)},t.prototype._getUnmaskedValue=function(e,t){return void 0===t&&(t=!1),p(null==e?"":e,this.literals,t)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return t;var n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),r=p(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),o=p(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return t.value=this._getMaskedValue(r+(e.insertedChars||"")+o,!0),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(n).length:t.caretPosition=e.selectionStart,t},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)()],t.prototype,"pattern",void 0),t}(s.InputMaskBase);i.Serializer.addClass("patternmask",[{name:"pattern"}],(function(){return new d}),"masksettings")},"./src/mask/mask_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"numberDefinition",(function(){return r}));var r=/[0-9]/},"./src/multiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultiSelectListModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/list.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.onItemClick=function(e){n.isItemDisabled(e)||(n.isExpanded=!1,n.isItemSelected(e)?(n.selectedItems.splice(n.selectedItems.indexOf(e),1)[0],n.onSelectionChanged&&n.onSelectionChanged(e,"removed")):(n.selectedItems.push(e),n.onSelectionChanged&&n.onSelectionChanged(e,"added")))},n.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},n.isItemSelected=function(e){return!!n.allowSelection&&n.selectedItems.filter((function(t){return n.areSameItems(t,e)})).length>0},n.setSelectedItems(t.selectedItems||[]),n}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Notifier",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/settings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/actions/container.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=i.settings.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new l.ActionContainer,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},n.css=n.cssClasses.root,n}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(n){return n.visible=t.showActions&&t.actionsVisibility[n.id]===e}))},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout((function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout((function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)}),r.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PageModel",(function(){return u}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/drag-drop-page-helper-v1.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n.locTitle.onGetTextCallback=function(e){return n.canShowPageNumber()&&e?n.num+". "+e:e},n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new a.DragDropPageHelperV1(n),n}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowFadeIn:"",rowFadeOut:"",rowDelayedFadeIn:""};return this.copyCssClasses(t.page,e.page),this.copyCssClasses(t.error,e.error),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),e.rowFadeIn&&(t.rowFadeIn=e.rowFadeIn),e.rowDelayedFadeIn&&(t.rowDelayedFadeIn=e.rowDelayedFadeIn),e.rowFadeOut&&(t.rowFadeOut=e.rowFadeOut),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){return(new s.CssClassBuilder).append(e.prototype.getCssError.call(this,t)).append(t.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRowModel",(function(){return w})),n.d(t,"PanelModelBase",(function(){return x})),n.d(t,"PanelModel",(function(){return E}));var r,o=n("./src/jsonobject.ts"),i=n("./src/helpers.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/question.ts"),u=n("./src/questionfactory.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=n("./src/utils/utils.ts"),h=n("./src/utils/cssClassBuilder.ts"),f=n("./src/drag-drop-panel-helper-v1.ts"),m=n("./src/utils/animation.ts"),g=n("./src/global_variables_utils.ts"),y=n("./src/page.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},w=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.visibleElementsAnimation=new m.AnimationGroup(r.getVisibleElementsAnimationOptions(),(function(e){r.setWidth(e),r.setPropertyValue("visibleElements",e)}),(function(){return r.visibleElements})),r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return v(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;if(void 0===t&&(t=d.findScrollableParent),g.DomDocumentHelper.isAvailable()){this._scrollableParent=t(e),this._scrollableParent===g.DomDocumentHelper.getDocumentElement()&&(this._scrollableParent=g.DomWindowHelper.getWindow());var r=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!r,r&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var t;return e.prototype.getIsAnimationAllowed.call(this)&&this.visible&&(null===(t=this.panel)||void 0===t?void 0:t.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,t=function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px"),e.style.setProperty("--animation-width",Object(d.getElementWidth)(e)+"px")};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(e){return e.getWrapperElement()},getLeaveOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).fadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(e){var n=e;return{cssClass:(e.isPanel?n.cssClasses.panel:n.cssClasses).fadeIn,onBeforeRunAnimation:t}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(!e.length)return this.visible=!1,void this.visibleElementsAnimation.cancel();this.visible=!0,this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var t,n=e.length;if(0!=n){for(var r=1===e.length,o=0,i=[],s=0;s<this.elements.length;s++)if((l=this.elements[s]).isVisible){l.isSingleInRow=r;var a=this.getElementWidth(l);a&&(l.renderWidth=this.getRenderedWidthFromWidth(a),i.push(l)),o<n-1&&!this.panel.isDefaultV2Theme&&!(null===(t=this.panel.parentQuestion)||void 0===t?void 0:t.isDefaultV2Theme)?l.rightIndent=1:l.rightIndent=0,o++}else l.renderWidth="";for(s=0;s<this.elements.length;s++){var l;!(l=this.elements[s]).isVisible||i.indexOf(l)>-1||(0==i.length?l.renderWidth=Number.parseFloat((100/n).toFixed(6))+"%":l.renderWidth=this.getRenderedCalcWidth(l,i,n))}}},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,b([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),x=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r.rowsAnimation=new m.AnimationGroup(r.getRowsAnimationOptions(),(function(e){r.setPropertyValue("visibleRows",e)}),(function(){return r.visibleRows})),r.isRandomizing=!1,r.locCountRowUpdates=0,r.createNewArray("rows",(function(e,t){r.onAddRow(e)}),(function(e){r.onRemoveRow(e)})),r.createNewArray("visibleRows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("requiredErrorText",r),r.createLocalizableString("navigationTitle",r,!0).onGetTextCallback=function(e){return e||r.title||r.name},r.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)})),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){r.updateVisibleIndexes()})),r.dragDropPanelHelper=new f.DragDropPanelHelperV1(r),r}return v(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var t=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return t.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this,t=function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(n){return{cssClass:e.cssClasses.rowFadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:(new h.CssClassBuilder).append(o.rowFadeIn).append(o.rowDelayedFadeIn,r.isDeletingRunning).toString(),onBeforeRunAnimation:t}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter((function(e){return e.visible})),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter((function(e){return e.visible}))},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){this.blockAnimations(),e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.locTitle.textOrHtml.length>0||this.isDesignMode&&this.showTitle&&p.settings.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){void 0===e&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,t=0;t<e.length;t++){var n=e[t];n.isPanel&&n.deletePanel(),this.onRemoveElementNotifySurvey(n)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!(!this.hasTitle&&this.isDesignMode)&&(this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.designMode.showEmptyDescriptions)},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},t.prototype.getMarkdownHtml=function(t,n){return"navigationTitle"===n&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:e.prototype.getMarkdownHtml.call(this,t,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowFadeIn:"",rowFadeOut:"",rowDelayedFadeIn:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowFadeIn&&(t.rowFadeIn=e.rowFadeIn),e.rowFadeOut&&(t.rowFadeOut=e.rowFadeOut),e.rowDelayedFadeIn&&(t.rowDelayedFadeIn=e.rowDelayedFadeIn),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var n=[];return t.forEach((function(e){n.push(e),e.getNestedQuestions().forEach((function(e){return n.push(e)}))})),n},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),!n.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=null,o=0;o<t.length;o++)if((n=t[o]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var i=n;i.validate(e.fireCallback,e)||(r||(r=i),e.firstErrorQuestion||(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!r&&this.errors.length>0&&(r=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=r)),e.fireCallback&&r&&(r===e.firstErrorQuestion&&e.focusOnFirstError?r.focus(!0):r.expandAllParents())},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){return"left"===this.getQuestionTitleLocation()||this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){return this.elements.some((function(e){return e instanceof t?e.hasElementWithTitleLocationLeft():e instanceof l.Question?"left"===e.getTitleLocation():void 0}))},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new w(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var t=this,n=this.findRowByElement(e),r=this.rows.indexOf(n),o=n.elements.indexOf(e);n.elements.splice(o,1),0==n.elements.length?this.rows.splice(r,1):!n.elements[0].startWithNewLine&&this.rows[r-1]?(n.elements.forEach((function(e){return t.rows[r-1].addElement(e)})),this.rows.splice(r,1)):n.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var t=this,n=this.elements.indexOf(e),r=this.elements[n+1],o=function(e){var n=t.createRowAndSetLazy(e);return t.isDesignModeV2&&n.setIsLazyRendering(!1),t.rows.splice(e,0,n),n},i=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=(r=e.elements).splice.apply(r,C([t,n],o));return e.updateVisible(),s};if(r){var s=this.findRowByElement(r);if(s){var a=this.rows.indexOf(s),l=s.elements.indexOf(r);0==l?r.startWithNewLine?e.startWithNewLine||a<1?o(a).addElement(e):this.rows[a-1].addElement(e):i(s,0,0,e):e.startWithNewLine?i.apply(void 0,C([o(a+1),0,0],[e].concat(i(s,l,s.elements.length)))):i(s,l,0,e)}}else 0==n||e.startWithNewLine?i(o(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e)},t.prototype.onAddElement=function(e,t){var n=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),e.isPanel){var r=e;this.survey&&this.survey.panelAdded(r,t,this,this.root)}else if(this.survey){var o=e;this.survey.questionAdded(o,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){n.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){n.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onRemoveElementNotifySurvey=function(e){this.survey&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e))},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,o=r?this.createRowAndSetLazy(e.length):e[e.length-1];r&&e.push(o),o.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(this.blockRowsUpdates(),t.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach((function(e){return e.onHidingContent()}))},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&"none"!==this.survey.getQuestionClearIfInvisible("default")&&!this.isLoadingFromJson))for(var e=this.questions,t=this.isVisible,n=0;n<e.length;n++){var r=e[n];t?r.updateValueWithDefaults():(r.clearValueIfInvisible("onHiddenContainer"),r.onHidingContent())}},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.questions.forEach((function(e){return e.onHidingContent()}))},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),this.wasRendered&&e.onFirstRendering(),!0)},t.prototype.insertElement=function(e,t,n){if(void 0===n&&(n="bottom"),t){this.blockRowsUpdates();var r=this.elements.indexOf(t),o=this.findRowByElement(t);"left"==n||"right"==n?"right"==n?(e.startWithNewLine=!1,r++):0==o.elements.indexOf(t)?(t.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r="top"==n?this.elements.indexOf(o.elements[0]):this.elements.indexOf(o.elements[o.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,r)}else this.addElement(e)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.questionErrorLocation?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return(new h.CssClassBuilder).append(e.error.root).toString()},t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,b([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),b([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),b([Object(o.property)()],t.prototype,"questionTitleWidth",void 0),t}(a.SurveyElement),E=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],(function(){n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),n}return v(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.notifyStateChanged=function(t){this.isLoadingFromJson||this.locTitle.strChanged(),e.prototype.notifyStateChanged.call(this,t)},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||"default"===t.state||(e=t.name),e},n},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t,n=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){n.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var o=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";o||(o=null===(t=this.cssClasses.panel)||void 0===t?void 0:t.footer),o&&(this.footerToolbarValue.containerCss=o),this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&this.parent&&this.parent instanceof y.PageModel},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){var n=(new h.CssClassBuilder).append(e.prototype.getCssError.call(this,t)).append(t.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){var e=this;return!!e.originalPage||e.survey.isShowingPreview&&e.survey.isSinglePage&&!!e.parent&&!!e.parent.originalPage},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){var t=this;if(null!=this.survey&&!this.isLoadingFromJson){var n=this.getFirstQuestionToFocus(!1);n&&setTimeout((function(){!t.isDisposed&&t.survey&&t.survey.scrollElementToTop(n,n,null,n.inputId,!1,{behavior:"smooth"})}),e?0:15)}},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,this.showPanelAsPage).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(x);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(e){return!!e&&e.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],(function(){return new x})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new E}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new E(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupDropdownViewModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/utils/popup.ts"),s=n("./src/popup-view-model.ts"),a=n("./src/utils/devices.ts"),l=n("./src/settings.ts"),u=n("./src/survey.ts"),c=n("./src/global_variables_utils.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.targetElement=n,o.areaElement=r,o.scrollEventCallBack=function(e){if(o.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();o.hidePopup()},o.resizeEventCallback=function(){if(c.DomWindowHelper.isAvailable()){var e=c.DomWindowHelper.getVisualViewport(),t=c.DomDocumentHelper.getDocumentElement();t&&e&&t.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")}},o.resizeWindowCallback=function(){o.isOverlay||o.updatePosition(!0,"vue"===u.SurveyModel.platform||"vue3"===u.SurveyModel.platform||"react"==u.SurveyModel.platform)},o.clientY=0,o.isTablet=!1,o.touchStartEventCallback=function(e){o.clientY=e.touches[0].clientY},o.touchMoveEventCallback=function(e){o.preventScrollOuside(e,o.clientY-e.changedTouches[0].clientY)},o.model.onRecalculatePosition.add(o.recalculatePositionHandler),o}return p(t,e),t.prototype.calculateIsTablet=function(e,n){var r=Math.min(e,n);this.isTablet=r>=t.tabletSizeBreakpoint},t.prototype.getAvailableAreaRect=function(){if(this.areaElement){var e=this.areaElement.getBoundingClientRect();return new i.Rect(e.x,e.y,e.width,e.height)}return new i.Rect(0,0,c.DomWindowHelper.getInnerWidth(),c.DomWindowHelper.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.targetElement.getBoundingClientRect(),t=this.getAvailableAreaRect();return new i.Rect(e.left-t.left,e.top-t.top,e.width,e.height)},t.prototype._updatePosition=function(){var e,t,n;if(this.targetElement){var r=this.getTargetElementRect(),o=this.getAvailableAreaRect(),s=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(s){var a=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),l=s.querySelector(this.scrollingContentSelector),u=c.DomDocumentHelper.getComputedStyle(s),p=parseFloat(u.marginLeft)||0,d=parseFloat(u.marginRight)||0,h=s.offsetHeight-l.offsetHeight+l.scrollHeight,f=s.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=r.width+"px");var m=this.model.verticalPosition,g=this.getActualHorizontalPosition();if(c.DomWindowHelper.isAvailable()){var y=[h,.9*c.DomWindowHelper.getInnerHeight(),null===(n=c.DomWindowHelper.getVisualViewport())||void 0===n?void 0:n.height];h=Math.ceil(Math.min.apply(Math,y.filter((function(e){return"number"==typeof e})))),m=i.PopupUtils.updateVerticalPosition(r,h,this.model.horizontalPosition,this.model.verticalPosition,o.height),g=i.PopupUtils.updateHorizontalPosition(r,f,this.model.horizontalPosition,o.width)}this.popupDirection=i.PopupUtils.calculatePopupDirection(m,g);var v=i.PopupUtils.calculatePosition(r,h,f+p+d,m,g,this.model.positionMode);if(c.DomWindowHelper.isAvailable()){var b=i.PopupUtils.getCorrectedVerticalDimensions(v.top,h,o.height,m,this.model.canShrink);if(b&&(this.height=b.height+"px",v.top=b.top),this.model.setWidthByTarget)this.width=r.width+"px",v.left=r.left;else{var C=i.PopupUtils.updateHorizontalDimensions(v.left,f,c.DomWindowHelper.getInnerWidth(),g,this.model.positionMode,{left:p,right:d});C&&(this.width=C.width?C.width+"px":void 0,v.left=C.left)}}if(a){var w=a.getBoundingClientRect();v.top-=w.top,v.left-=w.left}v.left+=o.left,v.top+=o.top,this.left=v.left+"px",this.top=v.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(r,v.top,v.left,m,g,p,d),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return c.DomDocumentHelper.isAvailable()&&"rtl"==c.DomDocumentHelper.getComputedStyle(c.DomDocumentHelper.getBody()).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&"overlay"!==this.model.overlayDisplayMode).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||"top"==this.popupDirection||"bottom"==this.popupDirection))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t,n,r){e.prototype.setComponentElement.call(this,t),t&&t.parentElement&&!this.isModal&&(this.targetElement=n||t.parentElement,this.areaElement=r)},t.prototype.resetComponentElement=function(){e.prototype.resetComponentElement.call(this),this.targetElement=void 0},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),c.DomWindowHelper.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(c.DomWindowHelper.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(c.DomWindowHelper.getInnerWidth(),c.DomWindowHelper.getInnerHeight()),this.resizeEventCallback()),c.DomWindowHelper.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!c.DomWindowHelper.getVisualViewport()&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){n._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),c.DomWindowHelper.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(c.DomWindowHelper.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),c.DomWindowHelper.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(t){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(e,t){n.isOverlay||n.updatePosition(t.isResetHeight)}),e.prototype.onModelChanging.call(this,t),t.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,d([Object(o.property)()],t.prototype,"isTablet",void 0),d([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),d([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModalViewModel",(function(){return s}));var r,o=n("./src/popup-view-model.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.onScrollOutsideCallback=function(e){n.preventScrollOuside(e,e.deltaY)},n}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurveyModel",(function(){return u})),n.d(t,"SurveyWindowModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/survey.ts"),s=n("./src/jsonobject.ts"),a=n("./src/global_variables_utils.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.fitToContainer=!0,r.windowElement=a.DomDocumentHelper.createElement("div"),r.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),r.registerPropertyChangedHandlers(["isShowing"],(function(){r.showingChangedCallback&&r.showingChangedCallback()})),r.registerPropertyChangedHandlers(["isExpanded"],(function(){r.onExpandedChanged()})),r.width=new o.ComputedUpdater((function(){return r.survey.width})),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return l(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitleCollapsed",t.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",t.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",t.collapseButton),this.setPropertyValue("cssHeaderCloseButton",t.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",t.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t=setInterval((function(){e.hide(),clearInterval(t)}),1e3*this.closeOnCompleteTimeout)}},t.prototype.onScroll=function(){this.survey.onScroll()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/popup-utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createPopupModalViewModel",(function(){return l})),n.d(t,"createPopupViewModel",(function(){return u}));var r=n("./src/global_variables_utils.ts"),o=n("./src/popup.ts"),i=n("./src/popup-dropdown-view-model.ts"),s=n("./src/popup-modal-view-model.ts"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function l(e,t){var n,i=a({},e);i.verticalPosition="top",i.horizontalPosition="left",i.showPointer=!1,i.isModal=!0,i.displayMode=e.displayMode||"popup";var l=new o.PopupModel(e.componentName,e.data,i);l.isFocusedContent=null===(n=e.isFocusedContent)||void 0===n||n;var u=new s.PopupModalViewModel(l);if(t&&t.appendChild){var c=r.DomDocumentHelper.createElement("div");t.appendChild(c),u.setComponentElement(c)}u.container||u.initializePopupContainer();var p=function(e,t){t.isVisible||c&&u.resetComponentElement(),u.onVisibilityChanged.remove(p)};return u.onVisibilityChanged.add(p),u}function u(e,t){return e.isModal?new s.PopupModalViewModel(e):new i.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FOCUS_INPUT_SELECTOR",(function(){return f})),n.d(t,"PopupBaseViewModel",(function(){return m}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/actions/container.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/utils/animation.ts"),p=n("./src/global_variables_utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',m=function(e){function t(t){var n=e.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new c.AnimationBoolean(n,(function(e){n._isVisible!==e&&(e?(n.updateBeforeShowing(),n.updateIsVisible(e)):(n.updateOnHiding(),n.updateIsVisible(e),n.updateAfterHiding(),n._isPositionSetValue=!1))}),(function(){return n._isVisible})),n.onVisibilityChanged=new o.EventBase,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=t,n.locale=n.model.locale,n}return d(t,e),t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--animate-leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--animate-enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return"overlay"!==this.model.displayMode&&l.settings.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return null===(e=this.container)||void 0===e?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(f),n=t[0],r=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||f);t?t.focus():e.focusContainer()}}),100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=p.DomDocumentHelper.createElement("div");this.createdContainer=e,Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e,t,n){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var n=e.target;n!==this.container;){if("auto"===p.DomDocumentHelper.getComputedStyle(n).overflowY&&n.scrollHeight!==n.offsetHeight){var r=n.scrollHeight,o=n.scrollTop,i=n.clientHeight;if(!(t>0&&Math.abs(r-i-o)<1||t<0&&o<=0))return}n=n.parentElement}e.cancelable&&e.preventDefault()},h([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),h([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),h([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"_isVisible",void 0),h([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return u})),n.d(t,"createDialogOptions",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/console-warnings.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},u=function(e){function t(t,n,r,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=n,r&&"string"==typeof r)i.verticalPosition=r,i.horizontalPosition=o;else if(r){var s=r;for(var a in s)i[a]=s[a]}return i}return a(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},l([Object(i.property)()],t.prototype,"contentComponentName",void 0),l([Object(i.property)()],t.prototype,"contentComponentData",void 0),l([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),l([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"showPointer",void 0),l([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"canShrink",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),l([Object(i.property)({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),l([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),l([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function c(e,t,n,r,o,i,a,l,u){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===u&&(u="popup"),s.ConsoleWarnings.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:a,title:l,displayMode:u}}},"./src/progress-buttons.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProgressButtons",(function(){return u})),n.d(t,"ProgressButtonsResponsivityManager",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/defaultCss/defaultV2Css.ts"),s=n("./src/page.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;return n.survey=t,n.onResize=n.addEvent(),n}return l(t,e),t.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){void 0===e&&(e="center");var t=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(t+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(-1!==["footer","contentBottom"].indexOf(e)?"bottom":"top"),t+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(t+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(t+=" "+this.survey.css.progressButtonsFitSurveyWidth),t},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new a.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,t){return(new a.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof s.PageModel||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var t=e.querySelector("."+this.survey.css.progressButtonsListContainer);return!!t&&t.scrollWidth>t.offsetWidth},t.prototype.isCanShowItemTitles=function(e){var t=e.querySelector("ul");if(!t||t.children.length<2)return!0;if(t.clientWidth>t.parentElement.clientWidth)return!1;for(var n=t.children[0].clientWidth,r=0;r<t.children.length;r++)if(Math.abs(t.children[r].clientWidth-n)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var t=e.querySelectorAll(".sd-progress-buttons__connector"),n=0;n<t.length;n++)t[n].style.width=""},t.prototype.adjustConnectors=function(e){var t=e.querySelector("ul");if(t)for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=this.showItemNumbers?17:5,o=this.survey.isMobile?0:t.children[0].clientWidth,i=(t.clientWidth-o)/(t.children.length-1)-r,s=0;s<n.length;s++)n[s].style.width=i+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return"defaultV2"===i.surveyCss.currentType&&"survey"===this.survey.progressBarInheritWidthFrom&&"static"==this.survey.widthMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return"defaultV2"===i.surveyCss.currentType&&this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return"defaultV2"!==i.surveyCss.currentType||this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var t="";return this.showItemNumbers&&(t+=this.survey.visiblePages.indexOf(e)+1),t},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(o.Base),c=function(){function e(e,t,n){var r=this;this.model=e,this.element=t,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(e,t){if(r.viewModel.onUpdateScroller(e.isListContainerHasScroller(r.element)),e.showItemTitles){if(e.survey.isMobile)return r.prevWidth=t.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),void r.viewModel.onResize(r.canShowItemTitles);r.model.clearConnectorsWidth(r.element),void 0!==r.timer&&clearTimeout(r.timer),r.timer=setTimeout((function(){(void 0===r.prevWidth||r.prevWidth<t.width&&!r.canShowItemTitles||r.prevWidth>t.width&&r.canShowItemTitles)&&(r.prevWidth=t.width,r.canShowItemTitles=e.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)}),10)}else r.model.adjustConnectors(r.element)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,(function(){return r.forceUpdate()}),"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return e.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},e.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},e}()},"./src/question.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Question",(function(){return E}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/error.ts"),l=n("./src/validator.ts"),u=n("./src/localizablestring.ts"),c=n("./src/conditions.ts"),p=n("./src/questionCustomWidgets.ts"),d=n("./src/settings.ts"),h=n("./src/rendererFactory.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=n("./src/console-warnings.ts"),y=n("./src/conditionProcessValue.ts"),v=n("./src/global_variables_utils.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},w=function(e,t,n){this.name=e,this.canRun=t,this.doComplete=n,this.runSecondCheck=function(e){return!1}};function x(e,t){return e.querySelector(t)||e!=v.DomWindowHelper.getWindow()&&e.matches(t)&&e}var E=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.hasCssErrorCallback=function(){return!1},r.isReadyValue=!0,r.dependedQuestions=[],r.onReadyChanged=r.addEvent(),r.triggersInfo=[],r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",(function(e){e.errorOwner=r})),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.createLocalizableString("requiredErrorText",r),r.addTriggerInfo("resetValueIf",(function(){return!r.isEmpty()}),(function(){r.clearValue(),r.updateValueWithDefaults()})),r.addTriggerInfo("setValueIf",(function(){return!0}),(function(){return r.runSetValueExpression()})).runSecondCheck=function(e){return r.checkExpressionIf(e)},r.registerPropertyChangedHandlers(["width"],(function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["isRequired"],(function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()})),r.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){r.onIndentChanged()})),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){r.initCommentFromSurvey()})),r.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],(function(){r.updateQuestionCss()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.onMobileChanged()})),r}return b(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnly.commentRenderMode},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){this.isMobile=e&&(this.allowMobileInDesignMode()||!this.isDesignMode)},t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(e){return e||(e=t.getDefaultTitle()),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e)for(var t=this.getIsReadyDependsOn(),n=0;n<t.length;n++)if(!t[n].getIsQuestionReady()){e=!1;break}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!e[t].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&(this.getIsReadyDependends().forEach((function(e){return e.updateIsReady()})),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var t=this;if(!this.survey)return[];var n=this.survey.questionsByValueName(this.getValueName()),r=new Array;return n.forEach((function(e){e!==t&&r.push(e)})),e||(this.parentQuestion&&r.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach((function(e){return r.push(e)}))),r},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){void 0===e&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.onHidingContent()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),t=this.isVisible;e!==t&&(this.setPropertyValue("isVisible",t),t||this.onHidingContent())},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new c.ExpressionRunner(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(t){e.runExpressionSetValue(t)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),!!this.setValueExpressionRunner&&(new y.ProcessValue).isAnyKeyChanged(e,this.setValueExpressionRunner.getVariables())},t.prototype.addTriggerInfo=function(e,t,n){var r=new w(e,t,n);return this.triggersInfo.push(r),r},t.prototype.runTriggerInfo=function(e,t,n){var r=this[e.name],o={};o[t]=n,r&&!e.isRunning&&e.canRun()?(e.runner?e.runner.expression=r:(e.runner=new c.ExpressionRunner(r),e.runner.onRunComplete=function(t){!0===t&&e.doComplete(),e.isRunning=!1}),((new y.ProcessValue).isAnyKeyChanged(o,e.runner.getVariables())||e.runSecondCheck(o))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))):e.runSecondCheck(o)&&e.doComplete()},t.prototype.runTriggers=function(e,t){var n=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||this.triggersInfo.forEach((function(r){n.runTriggerInfo(r,e,t)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions(),this.calcRenderedCommentPlaceholder(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if("left"===this.getTitleLocation()&&this.parent)return this.parent.getQuestionTitleWidth()},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return"default"!==this.errorLocation?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){return this.getPropertyValue("renderedCommentPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.calcRenderedCommentPlaceholder=function(){var e=this.isReadOnly?void 0:this.commentPlaceHolder;this.setPropertyValue("renderedCommentPlaceholder",e)},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(m.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var n=d.settings.environment.root.getElementById(e);n&&t.commentElements.push(n)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){var n=this.hasCssError();return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(t.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(t.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(t.hasError,n).append(t.hasErrorTop,n&&"top"==this.getErrorLocation()).append(t.hasErrorBottom,n&&"bottom"==this.getErrorLocation()).append(t.small,!this.width).append(t.answered,this.isAnswered).append(t.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(t.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new f.CssClassBuilder).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var n=this.page;n&&this.survey.activePage!==n?this.survey.focusQuestionByInstance(this,e):this.focuscore(e,t)}},t.prototype.focuscore=function(e,t){void 0===e&&(e=!1),this.survey&&(this.expandAllParents(),this.survey.scrollElementToTop(this,this,null,this.id,t));var n=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(n)&&this.fireCallback(this.focusCallback)},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode,r=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||n||t||r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return void 0!==this.forceIsInputReadOnly?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.calcRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||this.isClearValueOnHidden&&!this.isVisibleInSurvey||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.calcRenderedCommentPlaceholder(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){void 0!==this.value&&(this.value=void 0),this.comment&&!0!==e&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return!(("onHiddenContainer"!==e||this.isParentVisible)&&(this.isVisibleInSurvey||this.page&&this.page.isStartPage||this.survey&&this.survey.hasVisibleQuestionByValueName(this.getValueName())))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();"none"!==t&&("onHidden"===e&&"onComplete"===t||"onHiddenContainer"===e&&t!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&(this.clearValue(),this.setValueChangedDirectly(void 0))},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t.getPlainDataCalculatedValue(e.propertyName)})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=o.Helpers.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),d.settings.comparator.caseSensitive,!0),t=e?1:0,n={result:e,correctAnswer:t,correctAnswers:t,incorrectAnswers:this.quizQuestionCount-t};return this.survey&&this.survey.onCorrectQuestionAnswer(this,n),n.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=this.createExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore((function(t){e.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){return e(t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValueCore(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var t=this;this.runExpressionSetValueCore(e,(function(e){t.isTwoValueEquals(t.value,e)||(t.value=e)}))},t.prototype.runDefaultValueExpression=function(e,t,n,r){var o=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){o.runExpressionSetValue(e)}),t||(t=this.defaultValueExpression?this.data.getFilteredValues():{}),n||(n=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,r(e),o.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=d.settings.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){void 0===e&&(e=!1);var t=[];return this.collectNestedQuestions(t,e),1===t.length&&t[0]===this?[]:t},t.prototype.collectNestedQuestions=function(e,t){void 0===t&&(t=!1),t&&!this.isVisible||this.collectNestedQuestionsCore(e,t)},t.prototype.collectNestedQuestionsCore=function(e,t){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.JsonObject).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n,this.errors!==n&&this.errors.forEach((function(e){return e.locText.strChanged()}))),this.updateContainsErrors(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?this.addCustomError(e):e,this.errors.push(t)}},t.prototype.addCustomError=function(e){return new a.CustomError(e,this.survey)},t.prototype.removeError=function(e){if(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)}},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly||d.settings.readOnly.enableValidation},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var n=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var r=new a.AnswerRequiredError(this.requiredErrorText,this);r.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(r)}if(!this.isEmpty()&&this.customWidget){var o=this.customWidget.validate(this);o&&e.push(this.addCustomError(o))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0)},t.prototype.checkIsValueCorrect=function(e){var t=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return t||g.ConsoleWarnings.inCorrectQuestionValue(this.name,e),t},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!(!this.isTwoValueEquals(e,t,!1,!1)||e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.getIsInputTextUpdate()&&"text")},t.prototype.getValidName=function(e){return P(e)},t.prototype.updateValueFromSurvey=function(e,t){var n=this;if(void 0===t&&(t=!1),e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.checkIsValueCorrect(e)){var r=this.isValueEmpty(e);!r&&this.defaultValueExpression?this.setDefaultValueCore((function(t){n.updateValueFromSurveyCore(e,n.isTwoValueEquals(e,t))})):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),t&&r&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,t){this.isChangingViaDefaultValue=t,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),e=this.convertToCorrectValue(e);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.isParentChangingViaDefaultValue||this.setValueChangedDirectly(!0),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return!0===(null===(e=this.data)||void 0===e?void 0:e.isChangingViaDefaultValue)},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!d.settings.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,t){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.onTextKeyDownHandler=function(e){13===e.keyCode&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!x(e,n))return;var r=!1,o=void 0;this.triggerResponsivenessCallback=function(i){i&&(o=void 0,t.renderAs="default",r=!1);var s=function(){var i=x(e,n);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),r=!(r||!Object(m.isContainerVisible)(i))&&t.processResponsiveness(o,Object(m.getElementWidth)(i))};i?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver((function(e){v.DomWindowHelper.requestAnimationFrame((function(){t.triggerResponsiveness(!1)}))})),this.onMobileChangedCallback=function(){setTimeout((function(){var r=x(e,n);r&&t.processResponsiveness(o,Object(m.getElementWidth)(r))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return e>t?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,C([Object(i.property)({defaultValue:!1})],t.prototype,"isMobile",void 0),C([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),C([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),C([Object(i.property)()],t.prototype,"renderAs",void 0),C([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function P(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return P(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return P(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCustomWidget",(function(){return o})),n.d(t,"CustomWidgetCollection",(function(){return i}));var r=n("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.validate=function(e){if(this.widgetJson.validate)return this.widgetJson.validate(e)},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new o(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSelectBase",(function(){return v})),n.d(t,"QuestionCheckboxBase",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/survey.ts"),s=n("./src/question.ts"),a=n("./src/itemvalue.ts"),l=n("./src/surveyStrings.ts"),u=n("./src/error.ts"),c=n("./src/choicesRestful.ts"),p=n("./src/conditions.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new a.ItemValue("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n.headItemsCount=0,n.footItemsCount=0,n.allowMultiColumns=!0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(h.settings.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(h.settings.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(h.settings.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){n.onVisibleChanged()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return g(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=o.Serializer.createClass(this.getItemValueType(),{value:e});return n.locOwner=this,t&&(n.text=t),n},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){var n=e?"select":t?"array":void 0;this.setPropertyValue("carryForwardQuestionType",n)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&a.ItemValue.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var t=this.otherValue;e!==t&&(this.prevOtherErrorValue=t)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,t,n){var r=new a.ItemValue(e),o=this.createLocalizableString(t,r,!0,n);return r.locOwner=this,r.setLocText(o),r},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var t=this.comment;e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&t!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e&&this.value==e.id||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisibility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return n?n(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.updatePrevOtherErrorValue(t),this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(t){e.prototype.clearValue.call(this,t),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.isReadOnlyAttr||(this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e))},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(t){e.prototype.setValueCore.call(this,t),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.ItemValue.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!this.waitingGetChoiceDisplayValueResponse&&this.survey&&!this.isEmpty()){var t=this.value,n=Array.isArray(t)?t:[t];n.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}))&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:n,setItems:function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(e.waitingGetChoiceDisplayValueResponse=!1,r&&r.length){var s=r.map((function(t,r){return e.createItemValue(n[r],t)}));e.setCustomValuesIntoItems(s,o),Array.isArray(t)?e.selectedItemValues=s:e.selectedItemValues=s[0],e.updateIsReady()}else e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,t){Array.isArray(t)&&0!==t.length&&t.forEach((function(t){var n=t.values,r=t.propertyName;if(Array.isArray(n))for(var o=0;o<e.length&&o<n.length;o++)e[o][r]=n[o]}))},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,t,n,r);for(var o=0;o<e.length;o++)if(this.hasUnknownValueItem(e,t,n,r))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.showNoneItem&&e==this.noneItem.value)return!1;if(this.showRefuseItem&&e==this.refuseItem.value)return!1;if(this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&(t.removeDependedQuestion(this),this.isDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson&&!this.isDisposed){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);var r=this.visibleChoices;this.isTwoValueEquals(r,e)&&!this.choicesLazyLoadEnabled||this.setArrayPropertyDirectly("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!(this.isAddDefaultItems||this.showNoneItem||this.showRefuseItem||this.showDontKnowItem||this.hasOther||"none"!=this.choicesOrder)},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,t);var n=new Array;this.addNonChoicesItems(n,t),n.sort((function(e,t){return e.index===t.index?0:e.index<t.index?-1:1}));for(var r=0;r<n.length;r++){var o=n[r];o.index<0?(e.splice(r,0,o.item),this.headItemsCount++):(e.push(o.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,t){var n=this;t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",(function(){n.updateVisibleChoices()}))),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,t){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,t,this.showNoneItem,h.settings.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,t,this.showRefuseItem,h.settings.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,t,this.showDontKnowItem,h.settings.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,t,this.hasOther,h.settings.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,t,n,r,o){this.canShowOptionItem(t,n,r)&&o.forEach((function(n){return e.push({index:n,item:t})}))},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisibility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.showDefaultItemsInCreatorV2&&this.isDesignModeV2&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map((function(e,r){var o=a.ItemValue.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i})))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,t):t},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=this.getSingleSelectedItem();if(n&&this.isTwoValueEquals(n.value,t))return n.locText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this,o=this.visibleChoices,i=[],s=[],a=0;a<t.length;a++)s.push(n?n(a):t[a]);if(d.Helpers.isTwoValueEquals(this.value,s)&&this.getMultipleSelectedItems().forEach((function(e,t){return i.push(r.getItemDisplayValue(e,s[t]))})),0===i.length)for(a=0;a<s.length;a++){var l=this.getChoicesDisplayValue(o,s[a]);l&&i.push(l)}return i.join(h.settings.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,t){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&t)return t;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null},t.prototype.getIsReadyDependsOn=function(){var t=e.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&t.push(this.carryForwardQuestion),t},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&o.Serializer.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var n=[],r=0;r<t.length;r++){var o=t[r];if(d.Helpers.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var s=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(o[i],s))}}}return n},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isDesignMode)return[];for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!e.isBuiltInChoice(r[o]))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.otherValue&&(!n||this.prevOtherErrorValue)){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,n){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||this.hasChoicesUrl&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),t!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;t&&r&&(t===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):this.data&&(r=this.data.getComment(this.getValueName()))),e.prototype.updateValueFromSurvey.call(this,t,n),!this.isRunningChoices&&!this.choicesByUrl.isRunning||this.isEmpty()||(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices&&!this.isDesignModeV2){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.web.disableQuestionWhileLoadingChoices||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,a.ItemValue.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;this.setChoicesFromUrl(n,t,o)},t.prototype.canAvoidSettChoicesFromUrl=function(e){return!this.isFirstLoadChoicesFromUrl&&!((!e||Array.isArray(e)&&0===e.length)&&!this.isEmpty())&&d.Helpers.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,t,n){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var r=this.updateCachedValueForUrlRequests(n,e);if(r&&!this.isReadOnly){var o=!this.isTwoValueEquals(this.value,r.value);try{this.isValueEmpty(r.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=o,o?this.value=r.value:this.setQuestionValue(r.value)}finally{this.allowNotifyValueChanged=!0}}}this.isReadOnly||e||this.isFirstLoadChoicesFromUrl||(this.value=null),this.errors=t,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return d.Helpers.compareStrings(e.calculatedText,n.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&this.canClearIncorrectValues()&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||0==this.choicesFromUrl.length))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.hasCssError()),r=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),o=r[0],i=r[1],s=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,a=!(i||s||this.survey&&this.survey.isDesignMode),l=e===this.noneItem;return t.isDisabled=i||o,t.isChecked=s,t.isNone=l,n.append(this.cssClasses.itemDisabled,i).append(this.cssClasses.itemReadOnly,o).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,s).append(this.cssClasses.itemHover,a).append(this.cssClasses.itemNone,l).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isDesignMode?this.headItemsCount:0,t=[],n=0;n<e;n++)t.push(this.visibleChoices[n]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isDesignMode?this.footItemsCount:0,t=[],n=this.visibleChoices,r=0;r<e;r++)t.push(n[n.length-e+r]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var n=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),t.prototype.getObservedElementSelector=function(){return Object(m.classesToSelector)(this.cssClasses.mainRoot)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){e.prototype.onBeforeSetDesktopRenderer.call(this),this.allowMultiColumns=!1},t.prototype.onBeforeSetDesktopRenderer=function(){e.prototype.onBeforeSetDesktopRenderer.call(this),this.allowMultiColumns=!0},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.allowMultiColumns&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(m.mergeValues)(n.list,r),Object(m.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},y([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),y([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),y([Object(o.property)()],t.prototype,"allowMultiColumns",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);function C(e,t){var n;if(!e)return!1;if(e.templateQuestion){var r=null===(n=e.colOwner)||void 0===n?void 0:n.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(r))return!1}return e.carryForwardQuestionType===t}o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(e){return e.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(e){return e.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionBooleanModel",(function(){return d}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/question.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=n("./src/global_variables_utils.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return c(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if("indeterminate"!==e&&null!=e)return"true"==e?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue&&void 0!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;"indeterminate"!==e&&null!=e||this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),e.prototype.updateValueFromSurvey.call(this,t,n)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"!==t&&null!==t||(t=void 0),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n=!1;u.DomDocumentHelper.isAvailable()&&(n="rtl"==u.DomDocumentHelper.getComputedStyle(e.target).direction),this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.stopPropagation(),this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key)),!0},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(n+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(n+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(n+=" "+e.radioItemPreview),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),p([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),p([Object(i.property)()],t.prototype,"showTitle",void 0),p([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"swapOrder",void 0),p([Object(i.property)()],t.prototype,"valueTrue",void 0),p([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],(function(){return new d("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new d(e)}))},"./src/question_buttongroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ButtonGroupItemValue",(function(){return c})),n.d(t,"QuestionButtonGroupModel",(function(){return p})),n.d(t,"ButtonGroupItemModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/itemvalue.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCheckboxModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/helpers.ts"),l=n("./src/itemvalue.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new l.ItemValue(""),n.selectAllItemValue.id="selectall";var r=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText");return n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(r),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return d(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){for(var e=this.getNoneItems(),t=0;t<e.length;t++)if(this.isItemSelected(e[t]))return!1;var n=this.getVisibleEnableItems();if(0===n.length)return!1;var r=this.value;if(!r||!Array.isArray(r)||0===r.length)return!1;if(r.length<n.length)return!1;var o=[];for(t=0;t<r.length;t++)o.push(this.getRealValue(r[t]));for(t=0;t<n.length;t++)if(o.indexOf(n[t].value)<0)return!1;return!0},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=this.getVisibleEnableItems(),n=0;n<t.length;n++)e.push(t[n].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,t){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)!0===t||!1===t?this.isAllSelected=t:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=t?[e.value]:[];else{var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,t=this.visibleChoices,n=this.selectedItemValues;if(this.isEmpty())return[];var r=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,t):t,o=e.map((function(e){return l.ItemValue.getItemByValue(r,e)})).filter((function(e){return!!e}));return o.length||n||this.updateSelectedItemValues(),this.validateItemValues(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var t=e.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(t+="-unwrapped"),t},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:e.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var t=this;if(e.length)return e;var n=this.selectedItemValues;return n&&n.length?(this.defaultSelectedItemValues=[].concat(n),n):this.renderedValue.map((function(e){return t.createItemValue(e)}))},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var r=new c.CustomError(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(r)}},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){this.updateSelectAllItemProps(),this.maxSelectedChoices<1?this.otherItem.setIsEnabled(!0):this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,t=this.maxSelectedChoices;return!(t>0&&t<e)&&e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,t=this.activeChoices,n=0;n<t.length;n++){var r=t[n];r.isEnabled&&r.isVisible&&e.push(r)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;t||(t=[]),n||(n=[]),this.isTwoValueEquals(n,t)||(this.removeNoneItemsValues(n,t),e.prototype.setNewValue.call(this,t))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValueItem(e[t],!1,!1))return t;return-1},t.prototype.removeNoneItemsValues=function(e,t){var n=[];if(this.showNoneItem&&n.push(this.noneItem.value),this.showRefuseItem&&n.push(this.refuseItem.value),this.showDontKnowItem&&n.push(this.dontKnowItem.value),n.length>0){var r=this.noneIndexInArray(e,n),o=this.noneIndexInArray(t,n);if(r.index>-1)if(r.val===o.val)t.length>0&&t.splice(o.index,1);else{var i=this.noneIndexInArray(t,[r.val]);i.index>-1&&i.index<t.length-1&&t.splice(i.index,1)}else if(o.index>-1&&t.length>1){var s=this.convertValueToObject([o.val])[0];t.splice(0,t.length,s)}}},t.prototype.noneIndexInArray=function(e,t){if(!Array.isArray(e))return{index:-1,val:void 0};for(var n=e.length-1;n>=0;n--){var r=t.indexOf(this.getRealValue(e[n]));if(r>-1)return{index:n,val:t[r]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(t,n){e.prototype.addNonChoicesItems.call(this,t,n),this.supportSelectAll()&&this.addNonChoiceItem(t,this.selectAllItem,n,this.hasSelectAll,p.settings.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(t){return t===this.selectAllItem||e.prototype.isBuiltInChoice.call(this,t)},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueEmpty=function(){var e=this;return l.ItemValue.getTextOrHtmlByValue(this.visibleChoices.filter((function(t){return t!=e.selectAllItemValue})),void 0)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,(function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue(!0):this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n];if(r!==this.selectAllItem){var o=t[n].value;a.Helpers.isTwoValueEquals(o,this.invisibleOldValues[o])&&(this.isItemSelected(r)||e.push(o),delete this.invisibleOldValues[o])}}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.minSelectedChoices;return n>0&&t<n?n:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var n=e.maxSelectedChoices;return n>0&&t>n?n:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new h("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCommentModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_textbase.ts"),a=n("./src/utils/utils.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){return this.allowResize&&this.survey&&this.survey.allowResizeComment&&!this.isPreviewStyle&&!this.isReadOnlyStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=l.settings.environment.root;this.element=n.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElement()},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},t.prototype.getValueSeparator=function(){return"\n"},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentQuestionJSON",(function(){return h})),n.d(t,"ComponentCollection",(function(){return f})),n.d(t,"QuestionCustomModelBase",(function(){return m})),n.d(t,"QuestionCustomModel",(function(){return g})),n.d(t,"QuestionCompositeModel",(function(){return v}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/helpers.ts"),l=n("./src/textPreProcessor.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=n("./src/console-warnings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){function e(e,t){this.name=e,this.json=t;var n=this;i.Serializer.addClass(e,[],(function(e){return f.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onSetQuestionValue=function(e,t){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(e,t),this.json.onValueSet&&this.json.onValueSet(e,t)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onGetErrorText=function(e){if(this.json.getErrorText)return this.json.getErrorText(e)},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},e.prototype.calcDynamicProperties=function(){var e=this.json.inheritBaseProps;if(!e||!this.json.questionJSON)return[];var t=this.json.questionJSON.type;if(!t)return[];if(Array.isArray(e)){var n=[];return e.forEach((function(e){var r=i.Serializer.findProperty(t,e);r&&n.push(r)})),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return i.Serializer.getDynamicPropertiesByTypes(this.name,t,r)},e}(),f=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var n=new h(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},e.prototype.remove=function(e){if(!e)return!1;var t=this.getCustomQuestionIndex(e.toLowerCase());return!(t<0||(this.removeByIndex(t),0))},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){var t=this.getCustomQuestionIndex(e);return t>=0?this.customQuestionValues[t]:void 0},e.prototype.getCustomQuestionIndex=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name===e)return t;return-1},e.prototype.removeByIndex=function(e){i.Serializer.removeClass(this.customQuestionValues[e].name),this.customQuestionValues.splice(e,1)},e.prototype.clear=function(e){for(var t=this.customQuestionValues.length-1;t>=0;t--)!e&&this.customQuestionValues[t].json.internal||this.removeByIndex(t)},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new v(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new g(e,t)},e.Instance=new e,e}(),m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,i.CustomPropertiesCollection.createProperties(r),s.SurveyElement.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return d(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?e.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.getElement()&&this.getElement().addUsedLocales(t)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return!!e&&e.needResponsiveWidth()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=this.getElement();t&&t.onHidingContent()},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,t)},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),this.customQuestion){var r=this.customQuestion.onGetErrorText(this);r&&t.push(new c.CustomError(r,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,t);var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(o.Question),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(t,n,r,o,i){e.getDynamicProperty(t)&&e.propertyValueChanged(t,n,r,i)})},t.prototype.getDynamicProperty=function(e){for(var t=this.getDynamicProperties(),n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):e.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.contentQuestion&&this.contentQuestion.afterRender(t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){this.hasJSONTitle=!!t.questionJSON.title;var r=t.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";(n=i.Serializer.createClass(r)).fromJSON(t.questionJSON),n=this.checkCreatedQuestion(n)}else t.createQuestion&&(n=this.checkCreatedQuestion(t.createQuestion()));return this.initElement(n),n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)},n.hasCssErrorCallback=function(){return e.errors.length>0},n.setValueChangedDirectlyCallback=function(t){e.setValueChangedDirectly(t)}),n},t.prototype.checkCreatedQuestion=function(e){return e?(e.isQuestion||(e=Array.isArray(e.questions)&&e.questions.length>0?e.questions[0]:i.Serializer.createClass("text"),p.ConsoleWarnings.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e):e},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){var n=this.contentQuestion;if(!n||t===this.getValueName())return e.prototype.convertDataName.call(this,t);var r=t.replace(n.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.getContentQuestionValue(),t)||this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(t){this.isSettingValueChanged||(this.isSettingValueChanged=!0,e.prototype.setValueChangedDirectly.call(this,t),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(t),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var t=this.getDynamicProperties();Array.isArray(t)&&i.Serializer.addDynamicPropertiesIntoObj(this,e,t)}},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(m),y=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return d(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),v=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new y(o,t.ItemVariableName),o}return d(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(t,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();a.Helpers.isValueEmpty(t)||(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);var n=t||{};this.contentPanel&&this.contentPanel.questions.forEach((function(e){e.onSurveyValueChanged(n[e.getValueName()])}))},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(n,r,o,i){if(this.settingNewValue)this.setNewValueIntoQuestion(n,r);else if(!this.isValueChanging(n,r)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,a=this.contentPanel.questions.length+1;s<a&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(n,r),e.prototype.setValue.call(this,n,r,o,i),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+n,r)}},t.prototype.runPanelTriggers=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){n.runTriggers(e,t)}))},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.collectNestedQuestionsCore=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))},t.prototype.convertDataValue=function(e,t){var n=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return n||(n={}),n.getType||(n=a.Helpers.getUnbindValue(n)),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var n=this.contentPanel.questions,r=0;r<n.length;r++){var o=n[r].getValueName(),i=e?e[o]:void 0,s=n[r];this.isTwoValueEquals(s.value,i)||(s.value=i)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(m)},"./src/question_dropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionDropdownModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/dropdownListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return c(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||u.settings.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new l.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var n;null===(n=this.dropdownListModel)||void 0===n||n.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),!this.isLoadingFromJson&&this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),this.lastSelectedItemValue=null,null===(n=this.dropdownListModel)||void 0===n||n.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)()],t.prototype,"searchMode",void 0),p([Object(o.property)()],t.prototype,"textWrapEnabled",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),p([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:u.settings.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new d("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionEmptyModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/question.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionExpressionModel",(function(){return u})),n.d(t,"getCurrecyCodes",(function(){return c}));var r,o=n("./src/helpers.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],(function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())})),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){n.updateFormatedValue()})),n}return l(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,t=this.createExpressionRunner(this.expression);return t.onRunComplete=function(t){e.value=e.roundValue(t),e.unlocCalculation()},t},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t,n){e.prototype.updateValueFromSurvey.call(this,t,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=null==t?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0?e:o.Helpers.isNumber(e)?parseFloat(e.toFixed(this.precision)):e},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(i.Question);function c(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD",visibleIf:function(e){return"currency"===e.displayStyle}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new u("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new u(e)}))},"./src/question_file.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dataUrl2File",(function(){return b})),n.d(t,"QuestionFileModelBase",(function(){return C})),n.d(t,"QuestionFileModel",(function(){return w})),n.d(t,"FileLoader",(function(){return x}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/base.ts"),l=n("./src/error.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/utils/utils.ts"),p=n("./src/actions/container.ts"),d=n("./src/actions/action.ts"),h=n("./src/helpers.ts"),f=n("./src/utils/camera.ts"),m=n("./src/settings.ts"),g=n("./src/global_variables_utils.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function b(e,t,n){var r=atob(e.split(",")[1]),o=new Uint8Array(r.split("").map((function(e){return e.charCodeAt(0)}))).buffer;return new File([o],t,{type:n})}var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isUploading=!1,t.onUploadStateChanged=t.addEvent(),t.onStateChanged=t.addEvent(),t}return y(t,e),t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(t){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this,t)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new l.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var t=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,(function(e,n){Array.isArray(e)&&(t.setValueFromResult(e),Array.isArray(n)&&(n.forEach((function(e){return t.errors.push(new l.UploadingFileError(e,t))})),t.stateChanged("error"))),"success"===e&&Array.isArray(n)&&t.setValueFromResult(n),"error"===e&&("string"==typeof n&&t.errors.push(new l.UploadingFileError(n,t)),Array.isArray(n)&&n.length>0&&n.forEach((function(e){return t.errors.push(new l.UploadingFileError(e,t))})),t.stateChanged("error")),t.stateChanged("loaded")})))},v([Object(i.property)()],t.prototype,"isUploading",void 0),v([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(o.Question),w=function(e){function t(t){var n=e.call(this,t)||this;return n.isDragging=!1,n.fileNavigator=new p.ActionContainer,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n.calcAvailableItemsCount=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r},n.dragCounter=0,n.onDragEnter=function(e){n.canDragDrop()&&(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(!n.canDragDrop())return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.canDragDrop()&&(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(){n.needConfirmRemoveFile?Object(c.confirmActionAsync)(n.confirmRemoveAllMessage,(function(){n.clearFilesCore()}),void 0,n.getLocale(),n.survey.rootElement):n.clearFilesCore()},n.doDownloadFileFromContainer=function(e){e.stopPropagation();var t=e.currentTarget;if(t&&t.getElementsByTagName){var n=t.getElementsByTagName("a")[0];null==n||n.click()}},n.doDownloadFile=function(e,t){e.stopPropagation(),Object(c.detectIEOrEdge)()&&(e.preventDefault(),Object(c.loadFileFromBase64)(t.content,t.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new p.ActionContainer,n.actionsContainer.locOwner=n,n.fileIndexAction=new d.Action({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new d.Action({id:"prevPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new d.Action({id:"nextPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new d.Action({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()})),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new d.Action({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()})),action:function(){n.stopVideo()}}),n.changeCameraAction=new d.Action({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new a.ComputedUpdater((function(){return(new u.CssClassBuilder).append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()})),visible:new a.ComputedUpdater((function(){return n.canFlipCamera()})),action:function(){n.flipCamera()}}),n.chooseFileAction=new d.Action({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new d.Action({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new a.ComputedUpdater((function(){return!n.isAnswered})),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new d.Action({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new a.ComputedUpdater((function(){return n.cssClasses.removeButton})),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach((function(e){e.cssClasses={}})),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],(function(){n.updateActionsVisibility()})),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return y(t,e),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.containsMultiplyFiles,r=this.pageSize<this.previewValue.length;return!e&&!t&&n&&r&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,n=this.isDefaultV2Theme;return!e&&!t&&n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return"file"!==this.currentMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return"camera"!==this.currentMode},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;"file"===this.currentMode||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout((function(){e.startVideoInCamera()}),0))},t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoId,(function(t){e.videoStream=t,t||e.stopVideo()}),Object(c.getRenderedSize)(this.imageWidth),Object(c.getRenderedSize)(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;this.isPlayingVideo&&(this.camera.snap(this.videoId,(function(t){if(t){var n=new File([t],"snap_picture.png",{type:"image/png"});e.loadFiles([n])}})),this.stopVideo())},t.prototype.canFlipCamera=function(){var e=this;return void 0===this.canFlipCameraValue&&(this.canFlipCameraValue=this.camera.canFlip((function(t){e.canFlipCameraValue=t}))),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach((function(e){e.stop()})),this.videoStream=void 0)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.previewValueChanged=function(){var e=this;this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow=this.indexToShow>=this.pagesCount&&this.indexToShow>0?this.pagesCount-1:this.indexToShow:this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout((function(){e.processResponsiveness(0,e._width)})),this.prevPreviewLength=this.previewValue.length},t.prototype.isPreviewVisible=function(e){var t=this.fileNavigatorVisible,n=this.indexToShow*this.pageSize<=e&&e<(this.indexToShow+1)*this.pageSize;return!t||n},t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var t=this;if(g.DomDocumentHelper.isAvailable()){var n=g.DomDocumentHelper.getDocument().getElementById(this.inputId);e.preventDefault(),e.stopImmediatePropagation(),n&&(this.survey?this.survey.chooseFiles(n,(function(e){return t.loadFiles(e)}),{element:this,elementType:this.getType(),propertyName:this.name}):n.click())}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return void 0===this.locRenderedPlaceholderValue&&(this.locRenderedPlaceholderValue=new a.ComputedUpdater((function(){var t=e.isReadOnly,n=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&"camera"!=e.sourceType,r=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&"file"!=e.sourceType;return t?e.locNoFileChosenCaption:n&&r?e.locFileOrPhotoPlaceholder:n?e.locFilePlaceholder:e.locPhotoPlaceholder}))),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;this.isDesignMode||("file"!==this.sourceType?this.camera.hasCamera((function(t){e.setPropertyValue("currentMode",t&&e.isDefaultV2Theme?e.sourceType:"file")})):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&"camera"!==this.sourceType,this.startCameraAction.visible=!e&&this.hasVideoUI||e&&"file"!==this.sourceType,this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,t=this.showLoadingIndicator;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,t=this.isReadOnly,n=this.isEmpty();return!(t||n||e||this.isDefaultV2Theme)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=(new u.CssClassBuilder).append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!h.Helpers.isTwoValueEquals(t,e,!0,!1,!1)})):t.value=void 0}}))},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}})))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach((function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)})):t.uploadFiles(e)};this.allowMultiple?n():this.clear(n)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new f.Camera),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?n.forEach((function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})})):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new x(this,(function(e,n){"loaded"===e&&(n.forEach((function(e){t.previewValue.push(e)})),t.previewValueChanged()),t.isFileLoading=!1,t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(n)),this.previewValueChanged()}},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new l.ExceedSizeError(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.getImageWrapperCss=function(e){return(new u.CssClassBuilder).append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return(new u.CssClassBuilder).append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new u.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new u.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(g.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.actionsContainer.cssClasses=t.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return Object(c.classesToSelector)(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return Object(c.classesToSelector)(this.cssClasses.fileList)},t.prototype.triggerResponsiveness=function(t){t&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),e.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,t){var n=this;if(this._width=t,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector()?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(r){this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(g.DomDocumentHelper.getComputedStyle(r).gap));var o=Array.from(r.children).filter((function(e,t){return n.isPreviewVisible(t)}))[0];o&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(g.DomDocumentHelper.getComputedStyle(o).width)))}}return!(!this.calculatedGapBetweenItems||!this.calculatedItemWidth||(this.pageSize=this.calcAvailableItemsCount(t,this.calculatedItemWidth,this.calculatedGapBetweenItems),0))},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&"camera"!==this.currentMode&&!this.isPlayingVideo},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,t){var n=this;t.stopPropagation(),this.needConfirmRemoveFile?Object(c.confirmActionAsync)(this.getConfirmRemoveMessage(e.name),(function(){n.removeFileCore(e)}),void 0,this.getLocale(),this.survey.rootElement):this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),e.prototype.dispose.call(this)},v([Object(i.property)()],t.prototype,"isDragging",void 0),v([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),v([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),v([Object(i.property)({defaultValue:1,onSet:function(e,t){t.updateFileNavigator()}})],t.prototype,"pageSize",void 0),v([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),v([Object(i.property)()],t.prototype,"allowCameraAccess",void 0),v([Object(i.property)({onSet:function(e,t){t.isLoadingFromJson||t.updateCurrentMode()}})],t.prototype,"sourceType",void 0),v([Object(i.property)()],t.prototype,"canFlipCameraValue",void 0),v([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),v([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),v([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),v([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),v([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),v([Object(i.property)({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),v([Object(i.property)({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),v([Object(i.property)({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),v([Object(i.property)()],t.prototype,"locRenderedPlaceholderValue",void 0),t}(C);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(e){return!!e.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return m.settings.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return m.settings.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],(function(){return new w("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new w(e)}));var x=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,n=0;this.loaded=new Array(e.length),e.forEach((function(r,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(i,s){t.fileQuestion&&t.callback&&("success"===i?(t.loaded[o]={content:s,name:r.name,type:r.type},++n===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionHtmlModel",(function(){return u}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return l(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],(function(){return new u("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new u(e)}))},"./src/question_image.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionImageModel",(function(){return f}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"],p=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],d="embed";function h(e){if(!e)return!1;e=(e=e.toLowerCase()).replace(/^https?:\/\//,"");for(var t=0;t<c.length;t++)if(0===e.indexOf(c[t]+"/"))return!0;return!1}var f=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e,t){if(!e||!h(e))return t?"":e;if(e.toLocaleLowerCase().indexOf(d)>-1)return e;for(var n="",r=e.length-1;r>=0&&"="!==e[r]&&"/"!==e[r];r--)n=e[r]+n;return"https://www.youtube.com/embed/"+n}(e,"youtube"==n.contentMode)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return n.calculateRenderedMode()})),n}return u(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Object(l.getRenderedStyleSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Object(l.getRenderedSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Object(l.getRenderedStyleSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Object(l.getRenderedSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<p.length;t++)if(e.endsWith(p[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new f("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new f(e)}))},"./src/question_imagepicker.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ImageItemValue",(function(){return m})),n.d(t,"QuestionImagePickerModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/settings.ts"),p=n("./src/utils/utils.ts"),d=n("./src/global_variables_utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return h(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),f([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),f([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){n._width&&n.processResponsiveness(0,n._width)})),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){n.calcIsResponsive()})),n.calcIsResponsive(),n}return h(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue(!0);for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue(!0):this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight)||150},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth)||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,t){this.addNewItemToVisibleChoices(e,t)},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var n=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){var r,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=n(t,s,i);r=Math.floor((t-i*(p-1))/p)}else r=Math.floor((t-i*(o-1))/o);else{var d=n(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,r=Math.floor((t-i*(c-1))/c)}r=Math.max(s,Math.min(r,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=r/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,m=this.responsiveImageHeight;return this.responsiveImageWidth=r,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||m!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var n=this;e.prototype.afterRender.call(this,t);var r=this.getObservedElementSelector(),o=t&&r?t.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(d.DomDocumentHelper.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},f([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),f([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),f([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),f([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),f([Object(o.property)({})],t.prototype,"minImageWidth",void 0),f([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),f([Object(o.property)({})],t.prototype,"minImageHeight",void 0),f([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],(function(e){return new m(e)}),"itemvalue"),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new g("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new g(e)}))},"./src/question_matrix.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRowModel",(function(){return y})),n.d(t,"MatrixCells",(function(){return v})),n.d(t,"QuestionMatrixModel",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/itemvalue.ts"),s=n("./src/martixBase.ts"),a=n("./src/jsonobject.ts"),l=n("./src/base.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/error.ts"),p=n("./src/questionfactory.ts"),d=n("./src/localizablestring.ts"),h=n("./src/question_dropdown.ts"),f=n("./src/settings.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.item=t,i.fullName=n,i.data=r,i.setValueDirectly(o),i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i.data&&i.data.hasErrorInRow(i)&&(i.hasError=!0),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return(new m.CssClassBuilder).append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return(new m.CssClassBuilder).append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrix.defaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrix.defaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(f.settings.matrix.defaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrix.defaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var o in r)n[o]=r[o].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var n in t)t[n].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new d.LocalizableString(n),n.cellsValue=new v(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],(function(){n.onColumnsChanged()})),n.registerPropertyChangedHandlers(["rows"],(function(){n.filterItems()||n.onRowsChanged()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new i.ItemValue(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r,i=this.hasCellText,s=this.cssClasses;return(new m.CssClassBuilder).append(s.cell,i).append(i?s.cellText:s.label).append(s.itemOnError,!i&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(i?s.cellTextSelected:s.itemChecked,n).append(i?s.cellTextDisabled:s.itemDisabled,this.isDisabledStyle).append(i?s.cellTextReadOnly:s.itemReadOnly,this.isReadOnlyStyle).append(i?s.cellTextPreview:s.itemPreview,this.isPreviewStyle).append(s.itemHover,o&&!i).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.runItemsCondition=function(t,n){return i.ItemValue.runEnabledConditionsForItems(this.rows,void 0,t,n),e.prototype.runItemsCondition.call(this,t,n)},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.isNewValueCorrect=function(e){return o.Helpers.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n||this.hasCssError()){var r={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(!0,r),r.noValue&&t.push(new c.RequiredInAllRowsError(null,this)),r.isNotUnique&&t.push(new c.EachRowUniqueError(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,t,n){var r=this,o=this.generatedVisibleRows;if(o||(o=this.visibleRows),o){var i=this.isAllRowRequired||n,s=this.eachRowUnique;if(t.noValue=!1,t.isNotUnique=!1,e&&(this.errorsInRow=void 0),i||s){for(var a={},l=0;l<o.length;l++){var u=o[l].value,c=this.isValueEmpty(u),p=s&&!c&&!0===a[u];c=c&&i,e&&(c||p)&&this.addErrorIntoRow(o[l]),c||(a[u]=!0),t.noValue=t.noValue||c,t.isNotUnique=t.isNotUnique||p}e&&o.forEach((function(e){e.hasError=r.hasErrorInRow(e)}))}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new y(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].setValueDirectly(i)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[r]);s||(s=t[r]),n[o]=s}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map((function(e){var r=n.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:r?r.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(n.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=new h.QuestionDropdownModel(n);r.choices=this.columns;var o=(new a.JsonObject).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],(function(){return new b("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownRowModel",(function(){return c})),n.d(t,"QuestionMatrixDropdownModel",(function(){return p}));var r,o=n("./src/question_matrixdropdownbase.ts"),i=n("./src/jsonobject.ts"),s=n("./src/itemvalue.ts"),a=n("./src/questionfactory.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return u(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t}(o.MatrixDropdownRowModelBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],(function(){n.clearGeneratedRows(),n.resetRenderedTable(),n.filterItems()||n.onRowsChanged(),n.clearIncorrectValues()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return u(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}r[i]=this.getRowDisplayValue(e,n[o],a)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return l.Helpers.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.clearGeneratedRows=function(){var t=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach((function(e){t.defaultValuesInRows[e.rowName]=e.getNamesWithDefaultValues()})),e.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,t){var n=e[t];if(!n)return n;var r=this.defaultValuesInRows[t];return Array.isArray(r)&&0!==r.length?(r.forEach((function(e){delete n[e]})),n):n},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++){var o=t[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.getRowValueForCreation(n,o.value)))}return e},t.prototype.createMatrixRow=function(e,t){return new c(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new p("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new p(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownCell",(function(){return C})),n.d(t,"MatrixDropdownTotalCell",(function(){return w})),n.d(t,"MatrixDropdownRowModelBase",(function(){return E})),n.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return S}));var r,o=n("./src/jsonobject.ts"),i=n("./src/martixBase.ts"),s=n("./src/helpers.ts"),a=n("./src/base.ts"),l=n("./src/survey-element.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/itemvalue.ts"),p=n("./src/questionfactory.ts"),d=n("./src/functionsfactory.ts"),h=n("./src/settings.ts"),f=n("./src/error.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=n("./src/question_matrixdropdowncolumn.ts"),y=n("./src/question_matrixdropdownrendered.ts"),v=n("./src/utils/utils.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(t)}return e.prototype.updateCellQuestionTitleDueToAccessebility=function(e){var t=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!e||!e.getSurvey())return t.questionValue.title;var r=e.getAccessbilityText();return r?t.column.colOwner.getCellAriaLabel(r,t.questionValue.title):t.questionValue.title}},e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=this,i=n.createQuestion(this.row,this.column);return i.readOnlyCallback=function(){return!r.row.isRowEnabled()},i.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(i[n]=e[n])})),i},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.getQuestionWrapperClassName=function(e){return e},e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),w=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return b(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.Serializer.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(t){var n=e.prototype.getQuestionWrapperClassName.call(this,t);if(!n)return n;this.question.expression&&"''"!=this.question.expression&&(n+=" "+t+"--expression");var r=this.column.totalAlignment;return"auto"===r&&"dropdown"===this.column.cellType&&(r="left"),n+" "+t+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(C),x=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return b(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==E.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==E.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),E=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new x(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),e.prototype.isRowEnabled=function(){return!0},e.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+a.Base.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){!e&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName(),i=this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,r):t[r];s.Helpers.isValueEmpty(i)||(e[n].value=i)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.data?this.data.getDataFilteredValues():{},t=this.validationValues;if(t)for(var n in t)e[n]=t[n];return e.row=this.getAllValues(),this.applyRowVariablesToValues(e,this.rowIndex),e},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.applyRowVariablesToValues=function(t,n){t[e.IndexVariableName]=n,t[e.RowValueVariableName]=this.rowName},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value);var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=s.Helpers.createCopy(n);o[e.RowVariableName]=this;for(var i=r>0?this.data.getRowValue(this.rowIndex-1):this.value,a=0;a<this.cells.length;a++)a>0&&Object(v.mergeValues)(this.value,i),t[e.RowVariableName]=i,this.cells[a].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()},e.prototype.getNamesWithDefaultValues=function(){var e=[];return this.questions.forEach((function(t){t.isValueDefault&&e.push(t.getValueName())})),e},e.prototype.clearValue=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].clearValue(e)},e.prototype.onAnyValueChanged=function(e,t){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){this.updateQuestionsValue(t,n,r);var o=this.value,i=r?t+a.Base.commentSuffix:t,s=n,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,r?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==n&&!l||r&&!n&&!!l;this.data.onRowChanged(this,i,o,c),i&&this.runTriggers(P.RowVariableName+"."+i,o),this.onAnyValueChanged(e.RowVariableName,"")}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.runTriggers=function(e,t){e&&this.questions.forEach((function(n){return n.runTriggers(e,t)}))},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrix.totalsSuffix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(){for(var e=this.questions,t=0;t<e.length;t++){var n=e[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return this.validationValues=void 0,r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n],o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=r.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new C(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return b(t,e),t.prototype.createCell=function(e){return new w(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(E),S=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],(function(){n.updateColumnsAndRows()})),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.resetRenderedTable()})),n}return b(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrix.defaultCellType},set:function(e){h.settings.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData="vertical"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(t){var n=t.parent?this.detailErrorLocation:this.cellErrorLocation;return"default"!==n?n:e.prototype.getChildErrorLocation.call(this,t)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=this.getColumnByName(r);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)e(n.cells[r].question)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,o=0;do{r=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.totalValue)&&o<3)},t.prototype.runTriggers=function(t,n){e.prototype.runTriggers.call(this,t,n),this.runFuncForCellQuestions((function(e){e.runTriggers(t,n)}))},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];(n.visibleIf||n.isFilteredMultipleColumns)&&(e=this.isColumnVisibilityChanged(n)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];if(n.requiredIf){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.isColumnVisible,n=e.isFilteredMultipleColumns,r=n?e.getVisibleChoicesInCell:[],o=new Array,i=!1,a=this.generatedVisibleRows,l=0;l<a.length;l++){var u=a[l].cells[e.index],c=null==u?void 0:u.question;if(c&&c.isVisible){if(i=!0,!n)break;this.updateNewVisibleChoices(c,o)}}return e.hasVisibleCell=i,!(!n||(e.setVisibleChoicesInCell(o),s.Helpers.isArraysEqual(r,o,!0,!1,!1)))||t!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,t){var n=e.visibleChoices;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r];t.indexOf(o.value)<0&&t.push(o.value)}},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new g.MatrixDropdownColumn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){return!!this.generatedVisibleRows&&this.isValueInColumnDuplicated(t.name,!0,e)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map((function(e){var r={name:e.dataName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r})),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,t){var n=!!t&&this.columns.indexOf(t)>-1,r=!0===t||n,o=this.getConditionObjectsRowIndeces();r&&o.push(-1);for(var i=0;i<o.length;i++){var s=o[i],a=s>-1?this.getConditionObjectRowName(s):"row";if(a)for(var l=s>-1?this.getConditionObjectRowText(s):"row",u=s>-1||!0===t,c=u&&-1===s?".":"",p=(u?this.getValueName():"")+c+a+".",d=(u?this.processedTitle:"")+c+l+".",h=0;h<this.columns.length;h++){var f=this.columns[h];if(-1!==s||t!==f){var m={name:p+f.name,text:d+f.fullTitle,question:this};-1===s&&!0===t?m.context=this:n&&p.startsWith("row.")&&(m.context=t),e.push(m)}}}},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=[];this.collectNestedQuestions(t,!0),t.forEach((function(e){return e.onHidingContent()}))},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,t){this.collectNestedQuestonsInRows(this.visibleRows,e,t)},t.prototype.collectNestedQuestonsInRows=function(e,t,n){Array.isArray(e)&&e.forEach((function(e){e.questions.forEach((function(e){return e.collectNestedQuestions(t,n)}))}))},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=r.isRequired;var o=!s.Helpers.isValueEmpty(t[r.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)o=r[i].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n],!0)||t;return t},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t].name);return e},t.prototype.isValueInColumnDuplicated=function(e,t,n){var r=this.getDuplicatedRows(e);return t&&this.showDuplicatedErrorsInRows(r,e),this.removeDuplicatedErrorsInRows(r,e),n?r.indexOf(n)>-1:r.length>0},t.prototype.getDuplicatedRows=function(e){for(var t={},n=[],r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=void 0,s=r[o].getQuestionByName(e);if(s)i=s.value;else{var a=this.getRowValue(o);i=a?a[e]:void 0}this.isValueEmpty(i)||(this.isUniqueCaseSensitive||"string"!=typeof i||(i=i.toLocaleLowerCase()),t[i]||(t[i]=[]),t[i].push(r[o]))}for(var l in t)t[l].length>1&&t[l].forEach((function(e){return n.push(e)}));return n},t.prototype.showDuplicatedErrorsInRows=function(e,t){var n=this;e.forEach((function(e){var r=e.getQuestionByName(t);!r&&n.detailPanel.getQuestionByName(t)&&(e.showDetailPanel(),e.detailPanel&&(r=e.detailPanel.getQuestionByName(t))),r&&(e.showDetailPanel(),n.addDuplicationError(r))}))},t.prototype.removeDuplicatedErrorsInRows=function(e,t){var n=this;this.generatedVisibleRows.forEach((function(r){if(e.indexOf(r)<0){var o=r.getQuestionByName(t);o&&n.removeDuplicationError(o)}}))},t.prototype.getDuplicationError=function(e){for(var t=e.errors,n=0;n<t.length;n++)if("keyduplicationerror"===t[n].getErrorType())return t[n];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e){e.removeError(this.getDuplicationError(e))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e,t){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t);var o=this.visibleTotalRow;o&&o.onAnyValueChanged(e,t),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var i=t?this.getRowObj(e):null;if(i){var s=null;n&&!r&&(s=n[t]),this.isRowChanging=!0,o.Serializer.setObjPropertyValue(i,t,s),this.isRowChanging=!1,this.onCellValueChanged(e,t,i)}else{var a=this.createNewValue(!0),l=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(a,l.value))return;this.isRowChanging=!0,this.setNewValue(l.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,l.rowValue)}this.getUniqueColumnsNames().indexOf(t)>-1&&this.isValueInColumnDuplicated(t,!!i)},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(n)for(var a in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[a])||(i[a]=n[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new m.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new m.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){var t=this;if(this.isDesignMode)return this.detailPanel;var n=this.createNewDetailPanel();n.readOnly=this.isReadOnly||!e.isRowEnabled(),n.setSurveyImpl(e);var r=this.detailPanel.toJSON();return(new o.JsonObject).toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,n),n.questions.forEach((function(e){return e.setParentQuestion(t)})),n.onSurveyLoad(),n},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new m.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"columnsVisibleIf",visible:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(e){return!!e&&"none"!=e.detailPanelMode}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new S("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"matrixDropdownColumnTypes",(function(){return c})),n.d(t,"MatrixDropdownColumn",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/question_expression.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,n,r){!function(e,t,n,r){u(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}(e,0,n,r)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.colOwnerValue=null,r.indexValue=-1,r._hasVisibleCell=!0,r.previousChoicesId=void 0,r.createLocalizableString("totalFormat",r),r.createLocalizableString("cellHint",r),r.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){r.doShowInMultipleColumnsChanged()})),r.registerPropertyChangedHandlers(["visible"],(function(){r.doColumnVisibilityChanged()})),r.updateTemplateQuestion(),r.name=t,n?r.title=n:r.templateQuestion.locTitle.strChanged(),r}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return!!this.isDesignMode||this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var t=new Array,n=0;n<e.length;n++){var r=e[n];this._visiblechoices.indexOf(r.value)>-1&&t.push(r)}return t},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=c[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,n=this.getDefaultCellQuestionType(e),r=this.templateQuestion?this.templateQuestion.getType():"";n!==r&&(this.templateQuestion&&this.removeProperties(r),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(e,n){t.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,n){t.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);if(t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,this.jsonObj&&Object.keys(this.jsonObj).forEach((function(e){r[e]=n.jsonObj[e]})),"random"===r.choicesOrder){r.choicesOrder="none";var i=this.templateQuestion.visibleChoices;Array.isArray(i)&&(r.choices=i)}(new o.JsonObject).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r){if(e.prototype.propertyValueChanged.call(this,t,n,r),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson){if(this.isShowInMultipleColumns){if("choicesOrder"===t)return;["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r)}},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,i){o.Serializer.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null!=this.colOwner&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){null==this.colOwner||this.isDesignMode||this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){var t=this.getProperties(e);o.Serializer.addDynamicPropertiesIntoObj(this,this.templateQuestion,t)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return m})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return g})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return y})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return v}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/itemvalue.ts"),a=n("./src/actions/action.ts"),l=n("./src/actions/adaptive-container.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=n("./src/settings.ts"),d=n("./src/utils/animation.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResponsiveTitle",{get:function(){var e;return this.hasQuestion&&(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveTitleCss",{get:function(){return(new u.CssClassBuilder).append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var e=this.cell.column.cellHint;return e?""===e.trim()?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.prototype.focusIn=function(){this.question&&this.question.focusIn()},e.counter=1,e}(),g=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.hasEndActions=!1,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return h(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,t;return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,null===(e=this.row)||void 0===e?void 0:e.hasPanel).append(this.cssClasses.expandedRow,(null===(t=this.row)||void 0===t?void 0:t.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.counter=1,f([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),f([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),f([Object(o.property)({defaultValue:!0})],t.prototype,"visible",void 0),t}(i.Base),y=function(e){function t(t){var n=e.call(this,t)||this;return n.isErrorsRow=!0,n}return h(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some((function(e){return e.question&&e.question.hasVisibleErrors}))};this.cells.forEach((function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)})),t()},t}(g),v=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n._renderedRows=[],n.renderedRowsAnimation=new d.AnimationGroup(n.getRenderedRowsAnimationOptions(),(function(e){n._renderedRows=e}),(function(){return n._renderedRows})),n.hasActionCellInRowsValues={},n.build(),n}return h(t,e),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,t=function(e){e.querySelectorAll(":scope > td > *").forEach((function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}))};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowFadeOut,onBeforeRunAnimation:t}},getEnterOptions:function(){return{cssClass:e.cssClasses.rowFadeIn,onBeforeRunAnimation:t}}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){(this.rows[r].isErrorsRow||this.rows[r].isDetailRow)&&t++;break}t++,this.rows[r].isErrorsRow||this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isErrorsRow||this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n;this.showCellErrorsBottom&&r++;var o=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,i)}else this.rows.splice(o,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new g(e,t)},t.prototype.createErrorRenderedRow=function(e){return new y(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.isColumnVisible&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(o),o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&(o=this.createTextCell(this.matrix.getFooterText()),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=(new u.CssClassBuilder).append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var t=this.matrix.visibleTotalRow.cells,n=0;n<t.length;n++){var r=t[n];if(r.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(r.column))this.createMutlipleColumnsFooter(this.footerRow,r);else{var o=this.createEditCell(r);r.column&&this.setHeaderCellWidth(r.column,o),o.className=(new u.CssClassBuilder).append(o.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(o)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n,r){void 0===r&&(r=-1);var o=this.createHorizontalRow(t,n),i=this.createErrorRow(o);if(o.row=t,r<0&&(r=e.length),this.matrix.isMobile){for(var s=[],a=0;a<o.cells.length;a++)this.showCellErrorsTop&&!i.cells[a].isEmpty&&s.push(i.cells[a]),s.push(o.cells[a]),this.showCellErrorsBottom&&!i.cells[a].isEmpty&&s.push(i.cells[a]);o.cells=s,e.splice(r,0,o)}else e.splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,0],this.showCellErrorsTop?[i,o]:[o,i])),r++;t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new m,n=this.matrix.lockedRowCount;return t.isDragHandlerCell=n<1||e>=n,t.isEmpty=!t.isDragHandlerCell,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(e){var t=this;void 0===e&&(e=null);var n=(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,null==e?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,null==e?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var r=e.item.value.actions;this.cssClasses.actionsCellPrefix&&r.forEach((function(e){n.append(t.cssClasses.actionsCellPrefix+"--"+e.id)}))}return n.toString()},t.prototype.getRowActionsCell=function(e,t,n){void 0===n&&(n=!1);var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var o=new m,i=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(i.cssClasses=this.matrix.survey.getCss().actionBar),i.setItems(r);var a=new s.ItemValue(i);return o.item=a,o.isActionsCell=!0,o.isDragHandlerCell=!1,o.isDetailRowCell=n,o.className=this.getActionsCellClassName(o),o.row=this.matrix.visibleRows[e],o}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this,r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",iconSize:"auto",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?t.unshift(new a.Action({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(t){t.title=e.isDetailPanelShowing?n.matrix.getLocalizationString("showDetails"):n.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),n=0;n<e.cells.length;n++){var r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0)):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0))}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e,t){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,n.cells.push(s),this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(i.column))this.createMutlipleEditCells(n,i);else{i.column.isShowInMultipleColumns&&i.question.visibleChoices.map((function(e){return e.hideCaption=!1}));var s=this.createEditCell(i);n.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n,t.isDetailRow);if(o)t.cells.push(o),t.hasEndActions=!0;else{var i=new m;i.isEmpty=!0,i.isDetailRowCell=t.isDetailRow,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new m;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new m).isEmpty=!0);var s=new m;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&(this.matrix.isMobile?this.addRowActionsCell(e,r,"end"):r.cells.push(i)),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isColumnVisible)if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{var o=this.createVerticalRow(r,n),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++){var i=this.createVerticalRow(t,n,r[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=n,p=r>=0?r:l,d=a[l].cells[t],h=n?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new m;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var n=new m;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(t=e.getVisibleMultipleChoices())&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e,t){void 0===t&&(t=null);var n=e?this.createTextCell(e.locTitle):this.createEmptyCell();return n.column=e,this.setHeaderCell(e,n),t||(t=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(n,t),n},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var t=new m;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(e){void 0===e&&(e=!1);var t=this.createTextCell(null);return t.isEmpty=!0,t.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),t},f([Object(o.propertyArray)({onPush:function(e,t,n){n.updateRenderedRows()},onRemove:function(e,t,n){n.updateRenderedRows()}})],t.prototype,"rows",void 0),f([Object(o.propertyArray)()],t.prototype,"_renderedRows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDynamicRowModel",(function(){return m})),n.d(t,"QuestionMatrixDynamicModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_matrixdropdownbase.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/dragdrop/matrix-rows.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/question_matrixdropdownrendered.ts"),h=n("./src/utils/dragOrClickHelper.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],(function(){n.clearRowsAndResetRenderedTable()})),n.dragOrClickHelper=new h.DragOrClickHelper(n.startDragMatrixRow),n}return f(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){t&&this.isRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.visibleRows},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrix.maxRowCount&&(e=l.settings.matrix.maxRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var t=e.rowIndex-1;return!(this.lockedRowCount>0&&t<this.lockedRowCount)&&this.survey.matrixAllowRemoveRow(this,t,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n=this.canAddRow,r={question:this,canAddRow:n,allow:n};if(this.survey&&this.survey.matrixBeforeRowAdded(r),(n!==r.allow?r.allow:n!==r.canAddRow?r.canAddRow:n)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var r=this.visibleRows[this.rowCount-1];this.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){var n=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var r=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t?Object(u.confirmActionAsync)(this.confirmDeleteText,(function(){n.removeRowAsync(e,r)}),void 0,this.getLocale(),this.survey.rootElement):this.removeRowAsync(e,r)}},t.prototype.removeRowAsync=function(e,t){t&&this.survey&&!this.survey.matrixRowRemoving(this,e,t)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(l.settings.matrix.maxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var t=e.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&t.indexOf(n)<0&&t.push(n),t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new m(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1||n.length===e.length)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[r]?t:this.createMatrixRow(e[r]),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(t,n){void 0===n&&(n=!1),this.setRowCountValueFromData=!0,e.prototype.updateValueFromSurvey.call(this,t,n),this.setRowCountValueFromData=!1},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new g("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultipleTextEditorModel",(function(){return m})),n.d(t,"MultipleTextItemModel",(function(){return g})),n.d(t,"QuestionMultipleTextModel",(function(){return y})),n.d(t,"MutlipleTextRow",(function(){return v})),n.d(t,"MutlipleTextErrorRow",(function(){return b})),n.d(t,"MultipleTextCell",(function(){return C})),n.d(t,"MultipleTextErrorCell",(function(){return w}));var r,o=n("./src/base.ts"),i=n("./src/survey-element.ts"),s=n("./src/question.ts"),a=n("./src/question_text.ts"),l=n("./src/jsonobject.ts"),u=n("./src/questionfactory.ts"),c=n("./src/helpers.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(t),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new m(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),y=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)})),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],(function(){n.calcVisibleRows()})),n.registerPropertyChangedHandlers(["itemSize"],(function(){n.updateItemsSize()})),n}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,n){return t.editor.id=e+"_"+n})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),e.prototype.getElementsInDesign.call(this,t).concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.items.forEach((function(n){return n.editor.collectNestedQuestions(e,t)}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=this.getItemByName(n);if(!r)return null;var o=(new l.JsonObject).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.itemErrorLocation?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return"top"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return"bottom"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return c.Helpers.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e,t,n=this.colCount,r=this.items,o=0,i=[],s=0;s<r.length;s++)0==o&&(e=this.onRowCreated(new v),t=this.onRowCreated(new b),this.showItemErrorOnTop?(i.push(t),i.push(e)):(i.push(e),i.push(t))),e.cells.push(new C(r[s],this)),t.cells.push(new w(r[s],this)),(++o>=n||s==r.length-1)&&(o=0,t.onAfterCreated());this.rows=i},t.prototype.getRows=function(){return c.Helpers.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new g(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.items.forEach((function(e){return e.editor.runCondition(t,n)}))},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),n[s]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},f([Object(l.propertyArray)()],t.prototype,"rows",void 0),t}(s.Question),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isVisible=!0,t.cells=[],t}return h(t,e),f([Object(l.property)()],t.prototype,"isVisible",void 0),f([Object(l.propertyArray)()],t.prototype,"cells",void 0),t}(o.Base),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.isVisible=e.cells.some((function(e){var t,n;return(null===(t=e.item)||void 0===t?void 0:t.editor)&&(null===(n=e.item)||void 0===n?void 0:n.editor.hasVisibleErrors)}))};this.cells.forEach((function(e){var n,r;(null===(n=e.item)||void 0===n?void 0:n.editor)&&(null===(r=e.item)||void 0===r||r.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t))})),t()},t}(v),C=function(){function e(e,t){this.item=e,this.question=t,this.isErrorsCell=!1}return e.prototype.getClassName=function(){return(new p.CssClassBuilder).append(this.question.cssClasses.cell).toString()},Object.defineProperty(e.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),e}(),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isErrorsCell=!0,t}return h(t,e),t.prototype.getClassName=function(){return(new p.CssClassBuilder).append(e.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(C);l.Serializer.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"maskType:masktype",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"],visible:!1},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Object(a.isMinMaxType)(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return Object(a.isMinMaxType)(e)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new g("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],(function(){return new y("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new y(e);return y.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionPanelDynamicItem",(function(){return x})),n.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return E})),n.d(t,"QuestionPanelDynamicModel",(function(){return P}));var r,o=n("./src/helpers.ts"),i=n("./src/survey-element.ts"),s=n("./src/localizablestring.ts"),a=n("./src/textPreProcessor.ts"),l=n("./src/question.ts"),u=n("./src/jsonobject.ts"),c=n("./src/questionfactory.ts"),p=n("./src/error.ts"),d=n("./src/settings.ts"),h=n("./src/utils/utils.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/actions/action.ts"),g=n("./src/base.ts"),y=n("./src/actions/adaptive-container.ts"),v=n("./src/utils/animation.ts"),b=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},w=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return b(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==x.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==x.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(x.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,x.ItemVariableName),i=x.ItemVariableName+e.name.substring(x.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),x=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new w(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(t,n){var r=this.data.getPanelItemData(this),i=r?r[t]:void 0;if(!o.Helpers.isTwoValueEquals(n,i,!1,!0,!1)){this.data.setPanelItemData(this,t,o.Helpers.getUnbindValue(n));for(var s=this.panel.questions,a=e.ItemVariableName+"."+t,l=0;l<s.length;l++){var u=s[l];u.getValueName()!==t&&u.checkBindings(t,n),u.runTriggers(a,n)}}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),E=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),P=function(e){function t(t){var n=e.call(this,t)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",(function(e){n.onPanelAdded(e)}),(function(e){n.onPanelRemoved(e)})),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],(function(){n.setPanelsState()})),n.registerPropertyChangedHandlers(["isMobile","newPanelPosition","showRangeInProgress","renderMode"],(function(){n.updateFooterActions()})),n.registerPropertyChangedHandlers(["allowAddPanel"],(function(){n.updateNoEntriesTextDefaultLoc()})),n}return b(t,e),Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanelsCore.length;t++){var n=this.visiblePanelsCore[t].getFirstQuestionToFocus(e);if(n)return n}return null},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panelsCore.length&&u.Serializer.findProperty(e.getType(),t.name))for(var n=this.panelsCore,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panelsCore.length;t++)e.push(this.panelsCore[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panelsCore,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanelsCore.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanelsCore;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanelsCore,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!this.isRenderModeList&&!this.useTemplatePanel){var t=this.getPropertyValue("currentPanel"),n=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&n<0||e===t)&&(t&&t.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),n>-1&&this.survey)){var r={panel:e,visiblePanelIndex:n};this.survey.dynamicPanelCurrentIndexChanged(this,r)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){0==this.renderedPanels.length||0==e.length?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,t=function(){if(e.isRenderModeList)return"";var t=new f.CssClassBuilder,n=!1,r=e.renderedPanels.filter((function(t){return t!==e.currentPanel}))[0],o=e.visiblePanels.indexOf(r);return o<0&&(n=!0,o=e.removedPanelIndex),t.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",n).append("sv-pd-animation-left",o<=e.currentIndex).append("sv-pd-animation-right",o>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(t){var n,r;if(t&&e.cssContent){var o=Object(h.classesToSelector)(e.cssContent);return null===(r=null===(n=e.getWrapperElement())||void 0===n?void 0:n.querySelector(":scope "+o+" #"+t.id))||void 0===r?void 0:r.parentElement}},getEnterOptions:function(){return{onBeforeRunAnimation:function(t){var n;if(e.focusNewPanelCallback){var r=e.isRenderModeList?t:t.parentElement;i.SurveyElement.ScrollElementToViewCore(r,!1,!1,{behavior:"smooth"})}e.isRenderModeList?t.style.setProperty("--animation-height",t.offsetHeight+"px"):null===(n=t.parentElement)||void 0===n||n.style.setProperty("--animation-height-to",t.offsetHeight+"px")},cssClass:(new f.CssClassBuilder).append(e.cssClasses.panelWrapperFadeIn).append(t()).toString()}},getLeaveOptions:function(){return{onBeforeRunAnimation:function(t){var n;e.isRenderModeList?t.style.setProperty("--animation-height",t.offsetHeight+"px"):null===(n=t.parentElement)||void 0===n||n.style.setProperty("--animation-height-from",t.offsetHeight+"px")},cssClass:(new f.CssClassBuilder).append(e.cssClasses.panelWrapperFadeOut).append(t()).toString()}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach((function(e){e.blockAnimations()}))},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach((function(e){e.releaseAnimations()}))},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?v.AnimationGroup:v.AnimationTab)(this.getPanelsAnimationOptions(),(function(t,n){e._renderedPanels=t,n||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())}),(function(){return e._renderedPanels}))},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach((function(e){return e.onHidingContent()}))},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),(this.panelsCore||[]).forEach((function(e){return e.getQuestions(!0).forEach((function(e){e.setIsMobile(t)}))}))},t.prototype.themeChanged=function(t){e.prototype.themeChanged.call(this,t),(this.panelsCore||[]).forEach((function(e){return e.getQuestions(!0).forEach((function(e){e.themeChanged(t)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0))if(this.canBuildPanels&&!this.wasNotRenderedInSurvey){if(e!=this.panelsCore.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panelsCore.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}else this.setPropertyValue("panelCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new E(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsCore[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panelsCore[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panel.maxPanelCount&&(e=d.settings.panel.maxPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return"onSurvey"===this.showQuestionNumbers},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback),this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"===this.showQuestionNumbers,r=n?t:0,o=0;o<this.visiblePanelsCore.length;o++){var i=this.setPanelVisibleIndex(this.visiblePanelsCore[o],r,"off"!=this.showQuestionNumbers);n&&(r+=i)}return e.prototype.setVisibleIndex.call(this,n?-1:t),n?r-t:1},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&"next"!==this.newPanelPosition)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new x(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panelsCore.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var t=this.currentIndex;return void 0===e&&(e=t<0?this.panelCount:t+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(t<0?this.panelCount-1:t,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,t){this.panelCount++;var n=this.value;if(Array.isArray(n)&&n.length===this.panelCount){var r=!1,o=this.panelCount-1;if(t<o){r=!0;var i=n[o];n.splice(o,1),n.splice(t,0,i)}if(this.isValueEmpty(this.defaultPanelValue)||(r=!0,this.copyValue(n[t],this.defaultPanelValue)),this.defaultValueFromLastPanel&&n.length>1){var s=e>-1&&e<=o?e:o;r=!0,this.copyValue(n[t],n[s])}r&&(this.value=n)}},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){var t=this;this.canRemovePanel&&(this.isRequireConfirmOnDelete(e)?Object(h.confirmActionAsync)(this.confirmDeleteText,(function(){t.removePanel(e)}),void 0,this.getLocale(),this.survey.rootElement):this.removePanel(e))},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return!1;var n=this.visiblePanelsCore[t].getValue();return!this.isValueEmpty(n)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(n,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){this.removedPanelIndex=t;var n=this.visiblePanelsCore[t],r=this.panelsCore.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panelsCore.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length||(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r,n),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panelsCore.length;t++)if(this.panelsCore[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panelsCore,n=0;n<t.length;n++)t[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t<0||t>=this.panelsCore.length?null:this.panelsCore[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panelsCore[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrix.totalsSuffix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),r=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(r,t);for(var s=0;s<d.settings.panel.maxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<r.length;i++)r[i].context?e.push(r[i]):e.push({name:l+r[i].name,text:u+r[i].text,question:r[i].question})}if(n)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<r.length;i++)if(r[i].question!=t){var c={name:l+x.ItemVariableName+"."+r[i].name,text:u+x.ItemVariableName+"."+r[i].text,question:r[i].question};c.context=this,e.push(c)}},t.prototype.collectNestedQuestionsCore=function(e,t){var n=t?this.visiblePanelsCore:this.panelsCore;Array.isArray(n)&&n.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.buildPanelsFirstTime(),e.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(void 0===e&&(e=!1),!this.hasPanelBuildFirstTime&&(e||!this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].onFirstRendering()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(this.panelsCore,t,n)},t.prototype.runTriggers=function(t,n){e.prototype.runTriggers.call(this,t,n),this.visiblePanelsCore.forEach((function(e){e.questions.forEach((function(e){return e.runTriggers(t,n)}))}))},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t,n){var r={};t&&t instanceof Object&&(r=JSON.parse(JSON.stringify(t))),this.parentQuestion&&this.parent&&(r[x.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var i=0;i<e.length;i++){var s=e[i],a=this.getPanelItemData(s.data),l=o.Helpers.createCopy(r),u=x.ItemVariableName;l[u]=a,l[x.IndexVariableName.toLowerCase()]=i;var c=o.Helpers.createCopy(n);c[u]=s,s.runCondition(l,c)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(t,n){e.prototype.onAnyValueChanged.call(this,t,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(t,n),this.panelsCore[r].onAnyValueChanged(x.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panelsCore.length;o++)n=this.isValueDuplicated(this.panelsCore[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;return this.changingValueQuestion?(r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors()):r=this.hasErrorInPanels(t,n),e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanelsCore,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var n="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(n),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panelsCore.length;t++){var n=this.panelsCore[t],r=n.questions;this.isSetPanelItemData={};for(var o=0;o<r.length;o++){var i=r[o];i.visible&&!n.isVisible||(i.clearValueIfInvisible(e),this.isSetPanelItemData[i.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panelsCore.length;t++)for(var n=this.panelsCore[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panelsCore.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panelsCore[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanelsCore,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(i=0;i<r.length;i++){var s=r[i].hasErrors(e,!!t&&t.focusOnFirstError,t);s=this.isValueDuplicated(r[i],o,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new m.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new g.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new u.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new x(this,t),this.isDesignMode||this.isReadOnly||this.isValueEmpty(t.getValue())||this.runPanelsCondition([t],this.getDataFilteredValues(),this.getDataFilteredProperties()),t.onFirstRendering();for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this,t=this.createNewPanelObject();return t.isInteractiveDesignElement=!1,t.setParentQuestion(this),t.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},t},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(t){return"default"!==this.templateErrorLocation?this.templateErrorLocation:e.prototype.getChildErrorLocation.call(this,t)},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!o.Helpers.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+d.settings.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanelsCore,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map((function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r})),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(e){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new y.AdaptiveActionContainer,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e,t){var n=this;if(this.isRenderModeTab){var r=new s.LocalizableString(e,!0);r.onGetTextCallback=function(r){if(r||(r=n.locTabTitlePlaceholder.renderedHtml),!n.survey)return r;var o={title:r,panel:e,visiblePanelIndex:t};return n.survey.dynamicPanelGetTabTitle(n,o),o.title},r.sharedData=this.locTemplateTabTitle;var o=this.getPanelIndexById(e.id)===this.currentIndex,i=new m.Action({id:e.id,pressed:o,locTitle:r,disableHide:o,action:function(){n.currentIndex=n.getPanelIndexById(i.id)}});return i}},t.prototype.getAdditionalTitleToolbarCss=function(e){var t=null!=e?e:this.cssClasses;return(new f.CssClassBuilder).append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){var n=t.id===e.id;t.pressed=n,t.disableHide=n,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var t=[],n=this.visiblePanelsCore,r=function(r){o.visiblePanelsCore.forEach((function(o){return t.push(e.createTabByPanel(n[r],r))}))},o=this,i=0;i<n.length;i++)r(i);this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e,t);this.additionalTitleToolbar.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return(!this.isReadOnly||1!=this.visiblePanelCount)&&this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),n},t.maxCheckCount=3,C([Object(u.propertyArray)({})],t.prototype,"_renderedPanels",void 0),C([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panel.maxPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(e){return"list"===e.renderMode}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(e){return e.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(e){return e.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(e){return e.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(e){return"list"!==e.renderMode}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(e){return"list"!==e.renderMode}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visibleIf:function(e){return"list"!==e.renderMode}},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(e){return e.allowRemovePanel}}],(function(){return new P("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new P(e)}))},"./src/question_radiogroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRadiogroupModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/actions/action.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&!this.isOtherSelected},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this,t,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(n)}return t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRankingModel",(function(){return b}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=n("./src/dragdrop/ranking-select-to-rank.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/questionfactory.ts"),u=n("./src/question_checkbox.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/animation.ts"),m=n("./src/utils/dragOrClickHelper.ts"),g=n("./src/utils/utils.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},b=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),!n.carryForwardStartUnranked||n.isValueSetByUser||n.selectToRankEnabled||(n.value=[]),1===n.visibleChoices.length&&!n.selectToRankEnabled)return n.value=[],n.value.push(n.visibleChoices[0].value),void n.updateRankingChoices();n.isEmpty()||n.selectToRankEnabled||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new f.AnimationGroup(n.getChoicesAnimationOptions(!0),(function(e){n._renderedRankingChoices=e}),(function(){return n.renderedRankingChoices})),n._unRankingChoicesAnimation=new f.AnimationGroup(n.getChoicesAnimationOptions(!1),(function(e){n._renderedUnRankingChoices=e}),(function(){return n.renderedUnRankingChoices})),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.allowStartDrag&&n.canStartDragDueMaxSelectedChoices(o)&&n.canStartDragDueItemEnabled(t)&&(n.draggedChoiceValue=t.value,n.draggedTargetNode=r,n.dragOrClickHelper.onPointerDown(e))},n.startDrag=function(e){var t=s.ItemValue.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(e,t,n,n.draggedTargetNode)},n.handlePointerUp=function(e,t,r){n.selectToRankEnabled&&n.allowStartDrag&&n.handleKeydownSelectToRank(e,t," ",!1)},n.handleKeydown=function(e,t){if(!n.isReadOnlyAttr&&!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);if(n.selectToRankEnabled)return void n.handleKeydownSelectToRank(e,t);if("ArrowUp"===r&&o||"ArrowDown"===r&&o!==n.rankingChoices.length-1){var i="ArrowUp"==r?o-1:o+1;n.dragDropRankingChoices.reorderRankedItem(n,o,i),n.setValueAfterKeydown(i,"",!0,e)}}},n.focusItem=function(e,t){if(n.domNode)if(n.selectToRankEnabled&&t){var r="[data-ranking='"+t+"']";n.domNode.querySelectorAll(r+" ."+n.cssClasses.item)[e].focus()}else n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.isValueSetByUser=!1,n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",(function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()})),n.dragOrClickHelper=new m.DragOrClickHelper(n.startDrag),n}return y(t,e),t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!this.isDesignMode&&!e.disabled)return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new c.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===h.settings.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.renderedSelectToRankAreasLayout).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(t){return!this.selectToRankEnabled||e.prototype.isItemSelectedCore.call(this,t)},t.prototype.getItemClassCore=function(t,n){return(new c.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).toString()},t.prototype.getContainerClasses=function(e){var t=!1,n="to"===e,r="from"===e;return n?t=0===this.renderedRankingChoices.length:r&&(t=0===this.renderedUnRankingChoices.length),(new c.CssClassBuilder).append(this.cssClasses.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return d.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this),this.releaseAnimations()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)s.ItemValue.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var t=this;return{getKey:function(e){return e.value},getRerenderEvent:function(){return t.onElementRerendered},isAnimationEnabled:function(){return t.animationAllowed&&!t.isDesignMode&&t.isVisible&&!!t.domNode},getReorderOptions:function(e,n){var r="";return e!==t.currentDropTarget&&(r=n?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:r}},getLeaveOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing"}},getEnterOptions:function(n){var r=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==r.length&&r.indexOf(n)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding"}},getAnimatedElement:function(n){var r,o=t.cssClasses,i="";t.selectToRankEnabled&&(!e&&o.containerFromMode?i=Object(g.classesToSelector)(o.containerFromMode):e&&o.containerToMode&&(i=Object(g.classesToSelector)(o.containerToMode)));var s=e?t.renderedRankingChoices.indexOf(n):t.renderedUnRankingChoices.indexOf(n);return null===(r=t.domNode)||void 0===r?void 0:r.querySelector(i+" [data-sv-drop-target-ranking-item='"+s+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled)this.updateRankingChoicesSelectToRankMode(e);else{var n=[];e&&(this.rankingChoices=[]),this.isEmpty()?this.rankingChoices=this.visibleChoices:(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.rankingChoices=n)}},t.prototype.updateUnRankingChoices=function(e){var t=[];this.visibleChoices.forEach((function(e){t.push(e)})),e.forEach((function(e){t.forEach((function(n,r){n.value===e.value&&t.splice(r,1)}))})),this.unRankingChoices=t},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this,n=[];this.isEmpty()||this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.updateUnRankingChoices(n),this.rankingChoices=n},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new i.DragDropRankingSelectToRank(this.survey,null,this.longTap):new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==h.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){this.domNode=void 0,e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t,n,r){if(void 0===r&&(r=!0),!this.isDesignMode){var o=e.key;if(n&&(o=n)," "===o||"ArrowUp"===o||"ArrowDown"===o){var i=this.dragDropRankingChoices,s=this.rankingChoices,a=-1!==s.indexOf(t),l=(a?s:this.unRankingChoices).indexOf(t);if(!(l<0)){var u;if(" "===o&&!a){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(t))return;return u=this.value.length,i.selectToRank(this,l,u),void this.setValueAfterKeydown(u,"to-container",r,e)}if(a){if(" "===o)return i.unselectFromRank(this,l),u=this.unRankingChoices.indexOf(t),void this.setValueAfterKeydown(u,"from-container",r,e);var c="ArrowUp"===o?-1:"ArrowDown"===o?1:0;0!==c&&((u=l+c)<0||u>=s.length||(i.reorderRankedItem(this,l,u),this.setValueAfterKeydown(u,"to-container",r,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,t,n,r){var o=this;void 0===n&&(n=!0),this.setValue(),n&&setTimeout((function(){o.focusItem(e,t)}),1),r&&r.preventDefault()},t.prototype.getIconHoverCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return p.IsMobile},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-n-drop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-ranking-arrows"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-ranking-dash"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),v([Object(a.propertyArray)({onSet:function(e,t){return t.updateRenderedRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedRankingChoices()},onPush:function(e,t,n){return n.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),v([Object(a.propertyArray)({onSet:function(e,t){return t.updateRenderedUnRankingChoices()},onRemove:function(e,t,n){return n.updateRenderedUnRankingChoices()},onPush:function(e,t,n){return n.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),v([Object(a.propertyArray)()],t.prototype,"_renderedRankingChoices",void 0),v([Object(a.propertyArray)()],t.prototype,"_renderedUnRankingChoices",void 0),v([Object(a.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),v([Object(a.property)({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),v([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),v([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(u.QuestionCheckboxModel);a.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],(function(){return new b("")}),"checkbox"),l.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new b(e);return t.choices=l.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RenderedRatingItem",(function(){return v})),n.d(t,"QuestionRatingModel",(function(){return C}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/settings.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/base.ts"),d=n("./src/utils/utils.ts"),h=n("./src/dropdownListModel.ts"),f=n("./src/utils/devices.ts"),m=n("./src/global_variables_utils.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return g(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),y([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),y([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),y([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),b=function(e){function t(t,n){var r=e.call(this,t)||this;return r.description=n,r}return g(t,e),t}(o.ItemValue),C=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.createItemValues("rateValues"),n.createRenderedRateItems(),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems(),n.updateRateCount()})),n.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerSychProperties(["rateValues"],(function(){n.autoGenerate=0==n.rateValues.length,n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){n.updateColors(n.survey.themeVariables)})),n.registerFunctionOnPropertiesValueChanged(["displayMode"],(function(){n.updateRenderAsBasedOnDisplayMode(!0)})),n.registerSychProperties(["autoGenerate"],(function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.createRenderedRateItems()})),n.createLocalizableString("minRateDescription",n,!0),n.createLocalizableString("maxRateDescription",n,!0),n.initPropertyDependencies(),n}return g(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter((function(e){return e.value==t.value}))[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){function n(t,n){var r=!!e&&e[t];if(!r){var o=getComputedStyle(m.DomDocumentHelper.getDocumentElement());r=o.getPropertyValue&&o.getPropertyValue(n)}if(!r)return null;var i=m.DomDocumentHelper.createElement("canvas");if(!i)return null;var s=i.getContext("2d");s.fillStyle=r;var a=s.fillStyle;if(a.startsWith("rgba"))return a.substring(5,a.length-1).split(",").map((function(e){return+e.trim()}));var l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return l?[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16),1]:null}"monochrome"!==this.colorMode&&m.DomDocumentHelper.isAvailable()&&(t.colorsCalculated||(t.badColor=n("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=n("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=n("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=n("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=n("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=n("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0))},t.prototype.getDisplayValueCore=function(t,n){return this.useRateValues?o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,n)||n:e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];t=this.useRateValues()?this.rateValues:this.createRateValues(),this.autoGenerate&&(this.rateMax=t[t.length-1].value),"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new v(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new v(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new v(n)),o}))},t.prototype.createRateValues=function(){for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<l.settings.ratingMaximumRateValueCount;){var r=void 0;t===this.rateMin&&(r=this.minRateDescription&&this.locMinRateDescription),t!==this.rateMax&&e.length!==l.settings.ratingMaximumRateValueCount||(r=this.maxRateDescription&&this.locMaxRateDescription);var o=new b(t,r);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),t=this.correctValue(t+n,n)}return e},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown||"dropdown"===this.renderAs},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(t){var n=e.prototype.getPlainDataCalculatedValue.call(this,t);if(void 0!==n||!this.useRateValues||this.isEmpty())return n;var r=o.ItemValue.getItemByValue(this.visibleRateValues,this.value);return r?r[t]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||"dropdown"===this.renderAs)&&(this.renderAs="default"):(e||"auto"!==this.displayMode)&&(this.renderAs="dropdown"===this.displayMode?"dropdown":"default")},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),"dropdown"===this.renderAs&&"auto"===this.displayMode?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"dropdown"==this.renderAs?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===parseFloat(e)?this.clearValue(!0):this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!f.IsTouch&&!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){f.IsTouch||this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",t="";return(this.hasMaxLabel||this.hasMinLabel)&&("top"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsTop),"bottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsBottom),"topBottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsDiagonal)),(new c.CssClassBuilder).append(this.cssClasses.root).append(e).append(t).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=n.indexOf(e)}));return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode||this.isPreviewStyle||this.isReadOnlyStyle)return{};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1),o="highlighted"==t&&"colored"===this.scaleColorMode&&this.getRenderedItemColor(n,!0);return o?{"--sd-rating-item-color":r,"--sd-rating-item-color-light":o}:{"--sd-rating-item-color":r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==n.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemReadOnly,h=this.cssClasses.itemPreview,f=this.cssClasses.itemHover,m=this.cssClasses.itemOnError,g=null,y=null,v=null,b=null,C=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarReadOnly,h=this.cssClasses.itemStarPreview,f=this.cssClasses.itemStarHover,m=this.cssClasses.itemStarOnError,g=this.cssClasses.itemStarHighlighted,y=this.cssClasses.itemStarUnhighlighted,C=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyReadOnly,h=this.cssClasses.itemSmileyPreview,f=this.cssClasses.itemSmileyHover,m=this.cssClasses.itemSmileyOnError,g=this.cssClasses.itemSmileyHighlighted,v=this.cssClasses.itemSmileyScaleColored,b=this.cssClasses.itemSmileyRateColored,C=this.cssClasses.itemSmileySmall);var w=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,r).append(p,this.isDisabledStyle).append(d,this.isReadOnlyStyle).append(h,this.isPreviewStyle).append(f,o).append(g,s).append(v,"colored"==this.scaleColorMode).append(b,"scale"==this.rateColorMode&&r).append(y,a).append(m,this.hasCssError()).append(C,this.itemSmallMode).append(this.cssClasses.itemFixedSize,w).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModel=new h.DropdownListModel(this))},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"dropdown"===this.renderAs&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(d.mergeValues)(n.list,r),Object(d.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables),this.createRenderedRateItems()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.colorsCalculated=!1,y([Object(s.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),y([Object(s.property)()],t.prototype,"autoGenerate",void 0),y([Object(s.property)()],t.prototype,"rateCount",void 0),y([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),y([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),y([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),y([Object(s.property)()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),y([Object(s.property)()],t.prototype,"displayMode",void 0),y([Object(s.property)()],t.prototype,"rateDescriptionLocation",void 0),y([Object(s.property)()],t.prototype,"rateType",void 0),y([Object(s.property)()],t.prototype,"scaleColorMode",void 0),y([Object(s.property)()],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(e){return"labels"==e.rateType}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(e){return e?(e.getOriginalObj&&(e=e.getOriginalObj()),e.getDefaultItemComponent()):"sv-rating-item"}}],(function(){return new C("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new C(e)}))},"./src/question_signaturepad.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSignaturePadModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./node_modules/signature_pad/dist/signature_pad.js"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/console-warnings.ts"),u=n("./src/question_file.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.valueIsUpdatingInternally=!1,n.updateValueHandler=function(){n.scaleCanvas(!1,!0),n.refreshCanvas()},n.onBlur=function(e){if(!n.storeDataAsText&&!n.element.contains(e.relatedTarget)){if(!n.valueWasChangedFromLastUpload)return;n.uploadFiles([Object(u.dataUrl2File)(n.signaturePad.toDataURL(n.getFormat()),n.name+"."+h(n.dataFormat),n.getFormat())]),n.valueWasChangedFromLastUpload=!1}},n}return c(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),n=this.getPropertyByName("penColor");e.penColor=this.penColor||t||n.defaultValue||"#1ab394";var r=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0,i=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=i||o||r.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return(new a.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.getFormat=function(){return"jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&(this.initSignaturePad(t),this.element=t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.canvas,r=n.offsetWidth/this.containerWidth;(this.scale!=r||t)&&(this.scale=r,n.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*r,this.signaturePad.maxWidth=this.penMaxWidth*r,n.getContext("2d").scale(1/r,1/r),e&&this.refreshCanvas())},t.prototype.fromDataUrl=function(e){this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},t.prototype.fromUrl=function(e){var t=this,n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){t.canvas.getContext("2d").drawImage(n,0,0);var e=t.canvas.toDataURL(t.getFormat());t.fromDataUrl(e)}},t.prototype.refreshCanvas=function(){this.canvas&&(this.value?this.storeDataAsText?this.fromDataUrl(this.value):this.fromUrl(this.value):(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear(),this.valueWasChangedFromLastUpload=!1))},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0];this.canvas=n,this.resizeCanvas();var r=new s.default(n,{backgroundColor:"#ffffff"});this.signaturePad=r,this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},this.updateColors(r),r.addEventListener("beginStroke",(function(){t.scaleCanvas(),t.isDrawingValue=!0,n.focus()}),{once:!1}),r.addEventListener("endStroke",(function(){t.isDrawingValue=!1,t.storeDataAsText?t.updateValue():t.valueWasChangedFromLastUpload=!0}),{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var o=function(e,n){"signatureWidth"!==n.name&&"signatureHeight"!==n.name&&"value"!==n.name||t.valueIsUpdatingInternally||t.updateValueHandler()};this.onPropertyChanged.add(o),this.signaturePad.propertyChangedHandler=o},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",h(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||300},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),t=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,t=this.isEmpty(),n=this.isUploading,r=this.valueWasChangedFromLastUpload;return!e&&t&&!n&&!r},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=(null==e?void 0:e.length)?e.map((function(e){return e.content}))[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(t){this.valueWasChangedFromLastUpload=!1,e.prototype.clearValue.call(this,t),this.refreshCanvas()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(l.ConsoleWarnings.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(l.ConsoleWarnings.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},p([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),p([Object(o.property)({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),p([Object(o.property)()],t.prototype,"signatureAutoScaleEnabled",void 0),p([Object(o.property)()],t.prototype,"penMinWidth",void 0),p([Object(o.property)()],t.prototype,"penMaxWidth",void 0),p([Object(o.property)({})],t.prototype,"showPlaceholder",void 0),p([Object(o.property)({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),p([Object(o.property)({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(u.QuestionFileModelBase);function h(e){return e||(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}],onSettingValue:function(e,t){return h(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],(function(){return new d("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new d(e)}))},"./src/question_tagbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTagboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/question_checkbox.ts"),l=n("./src/dropdownMultiSelectListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return c(t,e),t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModel)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.createDropdownListModel()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.createDropdownListModel()},t.prototype.createDropdownListModel=function(){this.dropdownListModel||this.isLoadingFromJson||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map((function(e){return e.value}));return n.filter((function(e){return-1===o.indexOf(e)})).forEach((function(n){var r=t.getItemIfChoicesNotContainThisValue(n,t.itemDisplayNameMap[n]);r&&e.push(r)})),e.sort((function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModel&&this.dropdownListModel.dispose()},t.prototype.clearValue=function(t){var n;e.prototype.clearValue.call(this,t),null===(n=this.dropdownListModel)||void 0===n||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||u.settings.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),p([Object(o.property)()],t.prototype,"searchMode",void 0),p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),p([Object(o.property)()],t.prototype,"textWrapEnabled",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],(function(){return new d("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTextModel",(function(){return m})),n.d(t,"isMinMaxType",(function(){return y}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/localizablestring.ts"),a=n("./src/helpers.ts"),l=n("./src/validator.ts"),u=n("./src/error.ts"),c=n("./src/settings.ts"),p=n("./src/question_textbase.ts"),d=n("./src/mask/input_element_adapter.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout((function(){n.updateValueOnEvent(e)}),1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyDown=function(e){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(e),n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),n.onTextKeyDownHandler(e)},n.onChange=function(e){e.target===c.settings.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onBlur=function(e){n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onFocus=function(e){n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new s.LocalizableStrings(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerPropertyChangedHandlers(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceholder()})),n}return h(t,e),t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new d.InputElementAdapter(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return"none"===this.maskType;default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=this.maskType&&"none"!==this.maskType?this.maskType+"mask":"masksettings";i.Serializer.findClass(e)||(e="masksettings");var t=i.Serializer.createClass(e);return t.owner=this.survey,t},t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?e.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return y(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return this._inputValue},set:function(e){var t=e;this._inputValue=e,this.maskTypeIsEmpty||(t=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(t),t&&this.maskSettings.saveMaskedValue&&(t=this.maskInstance.getMaskedValue(t))),this.value=t},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),!n){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.minErrorText,r.getCalculatedMinMax(r.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.maxErrorText,r.getCalculatedMinMax(r.renderedMax))},t.push(i)}var s=this.getValidatorTitle(),a=new l.EmailValidator;if("email"===this.inputType&&!this.validators.some((function(e){return"emailvalidator"===e.getType()}))){var c=a.validate(this.value,s);c&&c.error&&t.push(c.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&n.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&n.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return!!this.maskTypeIsEmpty&&e.prototype.getIsInputTextUpdate.call(this)},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.getControlCssClassBuilder=function(){var t=this.getMaxLength();return e.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!t).append(this.cssClasses.characterCounterBig,t>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){"auto"!==this.inputTextAlignment?e.textAlign=this.inputTextAlignment:this.maskTypeIsEmpty||"auto"===this.maskSettings.getTextAlignment()||(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.inputValue=t)},t.prototype.afterRenderQuestionElement=function(t){t&&(this.input=t instanceof HTMLInputElement?t:t.querySelector("input"),this.createMaskAdapter()),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter()},f([Object(i.property)({onSet:function(e,t){t.onSetMaskType(e)}})],t.prototype,"maskType",void 0),f([Object(i.property)()],t.prototype,"inputTextAlignment",void 0),f([Object(i.property)()],t.prototype,"_inputValue",void 0),t}(p.QuestionTextBase),g=["number","range","date","datetime-local","month","time","week"];function y(e){var t=e?e.inputType:"";return!!t&&g.indexOf(t)>-1}function v(e,t){var n=e.split(t);return 2!==n.length?-1:a.Helpers.isNumber(n[0])&&a.Helpers.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function b(e,t,n,r){var o=r?n:t;if(!y(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?n+"-1":n);if(!s||!l)return o;if(s>l)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=v(e,n),o=v(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(n))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function C(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return y(e)},onPropertyEditorUpdate:function(e,t){C(e,t)},onSettingValue:function(e,t){return b(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return y(e)},onSettingValue:function(e,t){return b(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){C(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return y(e)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"],visible:!1},{name:"maskType:masktype",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new m("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new m(e)}))},"./src/question_textbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounter",(function(){return p})),n.d(t,"QuestionTextBase",(function(){return d}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new p,n}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return"default"==this.textUpdateMode?e.prototype.getIsInputTextUpdate.call(this):"onTyping"==this.textUpdateMode},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceholder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFactory",(function(){return s})),n.d(t,"ElementFactory",(function(){return a}));var r=n("./src/surveyStrings.ts"),o=n("./src/jsonobject.ts"),i=n("./src/question_custom.ts"),s=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.surveyLocalization.getString("choices_Item")+"1",r.surveyLocalization.getString("choices_Item")+"2",r.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=r.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t,n){void 0===n&&(n=!0),a.Instance.registerElement(e,t,n)},e.prototype.registerCustomQuestion=function(e){a.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),a.Instance.unregisterElement(e,t)},e.prototype.clear=function(){a.Instance.clear()},e.prototype.getAllTypes=function(){return a.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return a.Instance.createElement(e,t)},e.Instance=new e,e}(),a=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t,n){void 0===n&&(n=!0),e.registerElement(t,(function(e){var n=o.Serializer.createClass(t);return n&&(n.name=e),n}),n)}}return e.prototype.registerElement=function(e,t,n){void 0===n&&(n=!0),this.creatorHash[e]={showInToolbox:n,creator:t}},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},e.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];if(n&&n.creator)return n.creator(t);var r=i.ComponentCollection.Instance.getCustomQuestionByName(e);return r?i.ComponentCollection.Instance.createQuestion(t,r):null},e.prototype.getAllTypesCore=function(e){var t=new Array;for(var n in this.creatorHash)e&&!this.creatorHash[n].showInToolbox||t.push(n);return t.sort()},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionNonValue",(function(){return a}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RendererFactory",(function(){return r}));var r=function(){function e(){this.renderersHash={},this.defaultHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t],this.defaultHash[e]===t&&delete this.defaultHash[e]},e.prototype.registerRenderer=function(e,t,n,r){void 0===r&&(r=!1),this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n,r&&(this.defaultHash[e]=t)},e.prototype.getRenderer=function(e,t){var n=this.renderersHash[e];if(n){if(t&&n[t])return n[t];var r=this.defaultHash[e];if(r&&n[r])return n[r]}return"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return a}));var r=n("./src/global_variables_utils.ts"),o=n("./src/utils/utils.ts"),i="undefined"!=typeof globalThis?globalThis.document:(void 0).document,s=i?{root:i,_rootElement:r.DomDocumentHelper.getBody(),get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:r.DomDocumentHelper.getBody(),get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:i.head,stylesSheetsMountContainer:i.head}:void 0,a={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return a.commentSuffix},set commentPrefix(e){a.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,n,r,i){return Object(o.showConfirmDialog)(e,t,n,r,i)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:s,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}}}},"./src/stylesmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernThemeColors",(function(){return a})),n.d(t,"defaultThemeColors",(function(){return l})),n.d(t,"orangeThemeColors",(function(){return u})),n.d(t,"darkblueThemeColors",(function(){return c})),n.d(t,"darkroseThemeColors",(function(){return p})),n.d(t,"stoneThemeColors",(function(){return d})),n.d(t,"winterThemeColors",(function(){return h})),n.d(t,"winterstoneThemeColors",(function(){return f})),n.d(t,"StylesManager",(function(){return m}));var r=n("./src/defaultCss/defaultV2Css.ts"),o=n("./src/global_variables_utils.ts"),i=n("./src/settings.ts"),s=n("./src/utils/utils.ts"),a={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},l={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},u={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},c={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},p={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},d={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},h={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},f={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},m=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==r.surveyCss.currentType&&"bootstrapmaterial"!==r.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return r.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:r.surveyCss[e]}}))},e.getIncludedThemeCss=function(){if(void 0===i.settings.environment)return[];var t=i.settings.environment.rootElement,n=e.getAvailableThemes(),r=Object(s.isShadowDOM)(t)?t.host:t;if(r){var o=getComputedStyle(r);if(o.length)return n.filter((function(e){return e.theme.variables&&o.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===i.settings.environment)return null;for(var t=i.settings.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=i.settings.environment.stylesSheetsMountContainer,r=o.DomDocumentHelper.createElement("style");return r.id=t,r.appendChild(new Text("")),Object(s.getElement)(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){if(void 0===t&&(t="default"),void 0!==i.settings.environment){var o=i.settings.environment.rootElement,a=Object(s.isShadowDOM)(o)?o.host:o;if(r.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(r.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=n||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:a,default:l,orange:u,darkblue:c,darkrose:p,stone:d,winter:h,winterstone:f},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return y})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return v}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/utils/animation.ts"),h=n("./src/utils/utils.ts"),f=n("./src/global_variables_utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return m(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},g([Object(i.property)()],t.prototype,"hasDescription",void 0),g([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var v=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r._renderedIsExpanded=!0,r._isAnimatingCollapseExpand=!1,r.animationCollapsed=new d.AnimationBoolean(r.getExpandCollapseAnimationOptions(),(function(e){r._renderedIsExpanded=e,r.animationAllowed&&(e?r.isAnimatingCollapseExpand=!0:r.updateElementCss(!1))}),(function(){return r.renderedIsExpanded})),r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return m(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e,n,r){var o=u.settings.environment.root;if(!e||void 0===o)return!1;var i=o.getElementById(e);return t.ScrollElementToViewCore(i,!1,n,r)},t.ScrollElementToViewCore=function(e,t,n,r){if(!e||!e.scrollIntoView)return!1;var o=n?-1:e.getBoundingClientRect().top,i=o<0,s=-1;if(!i&&t&&(i=(s=e.getBoundingClientRect().left)<0),!i&&f.DomWindowHelper.isAvailable()){var a=f.DomWindowHelper.getInnerHeight();if(!(i=a>0&&a<o)&&t){var l=f.DomWindowHelper.getInnerWidth();i=l>0&&l<s}}return i&&e.scrollIntoView(r),i},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||!f.DomDocumentHelper.isAvailable())return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var n=u.settings.environment.root;if(!n)return!1;var r=n.getElementById(e);return!(!r||r.disabled||"none"===r.style.display||null===r.offsetParent||(t.ScrollElementToViewCore(r,!0,!1),r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!("collapsed"===this.state&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){return this.getPropertyValueWithoutDefault("cssClassesValue")},set:function(e){this.setPropertyValue("cssClassesValue",e)},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRenderedValue=!0,this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&!this.parent.originalPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={},t=this.minWidth;return"auto"!=t&&(t="min(100%, "+this.minWidth+")"),this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=t,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),t.prototype.isContainsSelection=function(e){var t=void 0,n=f.DomDocumentHelper.getDocument();if(f.DomDocumentHelper.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var r=f.DomWindowHelper.getSelection();if(r&&r.rangeCount>0){var o=r.getRangeAt(0);o.startOffset!==o.endOffset&&(t=o.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!t||!e.isContainsSelection(t.target))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,n=e||this.isReadOnly;return[n&&!t,!this.isDefaultV2Theme&&(n||t)]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,t.style.setProperty("--animation-height",t.offsetHeight+"px")},n=function(t){e.isAnimatingCollapseExpand=!1};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeIn,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){n(),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeOut,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getAnimatedElement:function(){var t,n=e.isPanel?e.cssClasses.panel:e.cssClasses;if(n.content){var r=Object(h.classesToSelector)(n.content);if(r)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+r)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t||!this.renderedIsExpanded||this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,g([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),g([Object(i.property)()],t.prototype,"_renderedIsExpanded",void 0),t}(y)},"./src/survey-error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyError",(function(){return i}));var r=n("./src/localizablestring.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equals=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new r.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey-events-api.ts":function(e,t,n){"use strict";n.r(t)},"./src/survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyModel",(function(){return k}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/defaultCss/defaultV2Css.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/conditionProcessValue.ts"),p=n("./src/dxSurveyService.ts"),d=n("./src/surveyStrings.ts"),h=n("./src/error.ts"),f=n("./src/localizablestring.ts"),m=n("./src/stylesmanager.ts"),g=n("./src/surveyTimerModel.ts"),y=n("./src/conditions.ts"),v=n("./src/settings.ts"),b=n("./src/utils/utils.ts"),C=n("./src/actions/action.ts"),w=n("./src/actions/container.ts"),x=n("./src/utils/cssClassBuilder.ts"),E=n("./src/notifier.ts"),P=n("./src/header.ts"),S=n("./src/surveytimer.ts"),O=n("./src/surveyTaskManager.ts"),T=n("./src/progress-buttons.ts"),_=n("./src/surveyToc.ts"),V=n("./src/global_variables_utils.ts"),R=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},k=function(e){function t(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onOpenFileChooser=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onChoicesSearch=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixRowAdding=o.addEvent(),o.onMatrixBeforeRowAdded=o.onMatrixRowAdding,o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixRenderRemoveButton=o.addEvent(),o.onMatrixAllowRemoveRow=o.onMatrixRenderRemoveButton,o.onMatrixDetailPanelVisibleChanged=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onAfterRenderMatrixCell=o.addEvent(),o.onMatrixAfterCellRender=o.onAfterRenderMatrixCell,o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onGetDynamicPanelTabTitle=o.addEvent(),o.onDynamicPanelCurrentIndexChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.onPopupVisibleChanged=o.addEvent(),o.onElementWrapperComponentName=o.addEvent(),o.onElementWrapperComponentData=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o.cssVariables={},o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.validationEnabled=!0,o.validationAllowSwitchPages=!1,o.validationAllowComplete=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton",o.taskManager=new O.SurveyTaskManagerModel,o.questionErrorComponent="sv-question-error",V.DomDocumentHelper.isAvailable()&&(t.stylesManager=new m.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i,"completed-before"),o.createHtmlLocString("loadingHtml","loadingSurvey",i,"loading"),o.createLocalizableString("emptySurveyText",o,!0,"emptySurvey"),o.createLocalizableString("logo",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],(function(){o.updateBackgroundImageStyle()})),o.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],(function(){o.updateButtonsVisibility()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),r&&o.render(r),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new E.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.onPopupVisibleChanged.add((function(e,t){t.visible?o.onScrollCallback=function(){t.popup.hide()}:o.onScrollCallback=void 0})),o.progressBarValue=new T.ProgressButtons(o),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o.progressBar,processResponsiveness:function(e){return o.progressBar.processResponsiveness&&o.progressBar.processResponsiveness(e)}}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o});var s=new _.TOCModel(o);return o.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(e){return s.updateStickyTOCSize(o.rootElement)}}),o.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:o.navigationBar}),o.locTitle.onStringChanged.add((function(){return o.titleIsEmpty=o.locTitle.isEmpty})),o}return R(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){m.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return v.settings.commentSuffix},set:function(e){v.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n,r){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=n,r&&(i.onGetTextCallback=function(e){return o.processHtml(e,r)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add((function(e,n){t(e,n)}))}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new x.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(t){return e.processResponsiveness(t)}})},t.prototype.getNavigationCss=function(e,t){return(new x.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||v.settings.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(b.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.makeRequiredErrorsInvisible(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.makeRequiredErrorsInvisible(t)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,v.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,v.settings.matrix.totalsSuffix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||d.surveyLocalization.currentLocale},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return d.surveyLocalization.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.surveyLocalization.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(e.prototype.locStrsChanged.call(this),this.currentPage)){if(this.isDesignMode)this.pages.forEach((function(e){return e.locStrsChanged()}));else{var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n=this.getBuiltInRendererForString(e,t),r={element:e,name:t,renderAs:n=this.elementWrapperComponentNameCore(n,e,"string",t)};return this.onTextRenderAs.fire(this,r),r.renderAs},t.prototype.getRendererContextForString=function(e,t){return this.elementWrapperDataCore(t,e,"string")},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedStyleSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedStyleSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new x.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach((function(t){return t.setIsMobile(e)})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||v.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=Object(b.wrapUrlForBackgroundImage)(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=(new x.CssClassBuilder).append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&"fixed"===this.backgroundImageAttachment).toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return v.settings.legacyProgressBarView||"defaultV2"!==l.surveyCss.currentType||A(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&-1!==["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar||"topbottom"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return void 0===e&&(e=""),(new x.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||"header"==e)).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||"footer"==e)).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e,t){if(void 0===t&&(t=!1),t&&(this.valuesHash={}),e)for(var n in e)this.setDataValueCore(this.valuesHash,n,e[n]);this.updateAllQuestionsValue(t),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(t)},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach((function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)})),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){i.Serializer.hasOriginalProperty(t.editingObj,n.name)&&("locale"===n.name&&t.setDataCore({}),t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach((function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))})),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),r=0;r<n.length;r++)t=n[r],e[t]=this.getDataValueCore(this.valuesHash,t);return this.getAllQuestions().forEach((function(t){t.hasFilteredValue&&(e[t.getFilteredName()]=t.getFilteredValue())})),e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentPage;(this.isShowingPreview||this.currentPageChanging(t,r))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,r))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(this.isDesignMode)return!1;var t=this.visiblePages.indexOf(e);if(t<0||t>=this.visiblePageCount)return!1;if(t===this.currentPageNo)return!1;if(t<this.currentPageNo||this.isValidateOnComplete)return this.currentPageNo=t,!0;for(var n=this.currentPageNo;n<t;n++){var r=this.visiblePages[n];if(!r.validate(!0,!0))return!1;r.passed=!0}return this.currentPage=e,!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,"error"===e)},t.prototype.notify=function(e,t,n){void 0===n&&(n=!1),this.notifier.showActions=n,this.notifier.notify(e,t,n)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.allow=!0,n.allowChanging=!0,this.onCurrentPageChanging.fire(this,n);var r=n.allowChanging&&n.allow;return r&&(this.isCurrentPageRendering=!0),r},t.prototype.currentPageChanged=function(e,t){this.notifyQuestionsOnHidingContent(t);var n=this.createPageChangeEventOptions(e,t);t&&!t.passed&&t.validate(!1)&&(t.passed=!0),this.onCurrentPageChanged.fire(this,n)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&e.questions.forEach((function(e){return e.onHidingContent()}))},t.prototype.createPageChangeEventOptions=function(e,t){var n=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===n,isPrevPage:-1===n,isGoingForward:n>0,isGoingBackward:n<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage);return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode&&!this.isDesignMode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=V.DomDocumentHelper.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&V.DomDocumentHelper.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&V.DomDocumentHelper.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(!this.isEditMode||this.ignoreValidation)return!1;var n=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,r=function(r){r&&!n||t.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?!!this.isLastPage&&!0!==this.validate(!0,this.focusOnFirstError,r,!0)&&!n:!0!==this.validateCurrentPage(r)&&!n},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var o=this.visiblePages,i=!0,s={fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1},a=0;a<o.length;a++)o[a].validate(e,t,s)||(i=!1);return s.firstErrorQuestion&&(t||r)&&(t?s.firstErrorQuestion.focus(!0):this.currentPage=s.firstErrorQuestion.page),i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r-1]}return!0},t.prototype.completeLastPage=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){if(this.resetNavigationButton(),!this.isValidateOnComplete){if(this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1}return this.showPreviewCore(),!0},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){if(!this.isDesignMode)if(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0,!1)):(this.runningPages&&this.restoreOriginalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.isShowingPreview)this.currentPageNo=0;else{var e=this.gotoPageFromPreview;this.gotoPageFromPreview=null,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePages[this.visiblePageCount-1]),e&&(this.changeCurrentPageFromPreview=!0,this.currentPage=e,this.changeCurrentPageFromPreview=!1)}},t.prototype.onQuestionsOnPageModeChanged=function(e,t){void 0===t&&(t=!1),this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.originalPages&&this.restoreOriginalPages(this.originalPages),this.originalPages=void 0):(e&&"standard"!=e||(this.originalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage,t)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOriginalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++){var n=e[t];n.setWasShown(!1),this.pages.push(n)}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t,n){this.questionHashesClear(),this.isLockingUpdateOnPageModes=!n;var r=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var o=this.createPagesForQuestionOnPageMode(t,r),i=this.pages.length-r;this.pages.splice(r,i);for(var s=0;s<o.length;s++)this.pages.push(o[s]);for(e.prototype.endLoadingFromJson.call(this),s=0;s<o.length;s++)o[s].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage(),this.isLockingUpdateOnPageModes=!1},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],o=i.Serializer.createClass("panel");o.originalPage=r,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(r);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var o=0;o<r.elements.length;o++){var s=r.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(r),c=i.Serializer.createClass(r.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var n=this;void 0===e&&(e=!1);var r=this.hasCookie,o=function(e){l=!0,n.setCompletedState("saving",e)},i=function(e){n.setCompletedState("error",e)},s=function(e){n.setCompletedState("success",e),n.navigateTo()},a=function(e){n.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!r&&this.surveyPostId&&this.sendResult(),l||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var n={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,n),n.allowComplete&&n.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&this.isValidateOnComplete)r.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(r.data[s.getValueName()]=a)}}return r},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var r="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return n.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var n=e.survey,r=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=n.getQuestionByName(i);s&&s.errors&&(r=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.showPreviewCore():n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){var n;if(v.settings.triggers.changeNavigationButtonsOnComplete){var r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]={trigger:e,pageId:null===(n=this.currentPage)||void 0===n?void 0:n.id}:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var t=Object.keys(this.completedByTriggers);if(0===t.length)return!1;var n=null===(e=this.currentPage)||void 0===e?void 0:e.id;if(!n)return!0;for(var r=0;r<t.length;r++)if(n===this.completedByTriggers[t[r]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||this.isShowingPreview||this.isLockingUpdateOnPageModes||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new x.CssClassBuilder).append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!v.settings.animationEnabled).append(this.css.rootReadOnly,"display"===this.mode&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var n=e,r=this.css.variables;if(r){var o=Number.parseFloat(V.DomDocumentHelper.getComputedStyle(n).getPropertyValue(r.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(e){V.DomWindowHelper.requestAnimationFrame((function(){i=!(i||!Object(b.isContainerVisible)(n))&&t.processResponsiveness(n.offsetWidth,o)}))})),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.processResponsiveness=function(e,t){var n=e<t,r=this.isMobile!==n;return r&&this.setIsMobile(n),this.layoutElements.forEach((function(t){return t.processResponsiveness&&t.processResponsiveness(e)})),r},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach((function(t){t.triggerResponsiveness(e)}))},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var n=!this.isFirstPageRendering;setTimeout((function(){return t.scrollToTopOnPageChange(n)}),1)}this.focusQuestionInfo(),this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=v.settings.environment.root;if(n&&t.id!==n&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,t,n,r){var o={question:e,rowIndex:t,row:n,visible:r,detailPanel:n.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,o)},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var r=e.panels;void 0===t&&(n=r[t=r.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],o=0;o<r.length;o++)r[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dynamicPanelGetTabTitle=function(e,t){t.question=e,this.onGetDynamicPanelTabTitle.fire(this,t)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,t){t.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r,o,i){var s={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,s),s.cancel||a.SurveyElement.ScrollElementToTop(s.elementId,o,i)},t.prototype.chooseFiles=function(e,t,n){this.onOpenFileChooser.isEmpty?Object(b.chooseFiles)(e,t):this.onOpenFileChooser.fire(this,{input:e,element:n&&n.element||this.survey,elementType:n&&n.elementType,item:n&&n.item,propertyName:n&&n.propertyName,callback:t,context:n})},t.prototype.uploadFiles=function(e,t,n,r){var o=this;this.onUploadFiles.isEmpty?r("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",(function(i){o.onUploadFiles.fire(o,{question:e,name:t,files:n||[],callback:function(e,t){r(e,t),i()}})})),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("success",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach((function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,(function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),n&&(t=!1);for(var r=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(r,e,t);if(!n)return r;var i=[];return r.forEach((function(t){i.push(t),t.getNestedQuestions(e).forEach((function(e){return i.push(e)}))})),i},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t,n){if(this.editingObj){var r=i.Serializer.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var o={name:e,question:this.getQuestionByValueName(n||e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,o),o.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),r=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&r&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.notifyQuestionOnValueChanged=function(e,t,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var i=r[o];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e,n))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,t){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var n=0;n<this.pages.length;n++)this.pages[n].onAnyValueChanged(e,t);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var t=this.getAllQuestions(),n=0;n<t.length;n++){var r=t[n],o=r.getValueName();r.updateValueFromSurvey(this.getValue(o),e),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(o))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n,r){if(void 0===n&&(n=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var o in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[o]=e[o];else{var i=!1;if(!n&&r&&this.hasRequiredValidQuestionTrigger){var s=this.getQuestionByValueName(r);i=s&&!s.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var a=this.getFilteredProperties(),l=this.canBeCompletedByTrigger,u=0;u<this.triggers.length;u++){var c=this.triggers[u];i&&c.requireValidQuestion||c.checkExpression(t,n,this.triggerKeys,this.triggerValues,a)}l!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,t,n){var r={};r[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(r,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):(this.runConditions(),this.runQuestionsTriggers(e,t))},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);e.prototype.runConditionCore.call(this,this.conditionValues,t);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,t)},t.prototype.runQuestionsTriggers=function(e,t){this.isDisplayMode||this.isDesignMode||this.getAllQuestions().forEach((function(n){return n.runTriggers(e,t)}))},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){var r=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var o=this.createSurveyService();o.locale=this.getLocale();var i=this.surveyShowDataSaving||!n&&o.isSurveJSIOService;i&&this.setCompletedState("saving",""),o.sendResult(e,this.data,(function(e,t,n){(i||o.isSurveJSIOService)&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t));var s={success:e,response:t,request:n};r.onSendResult.fire(r,s)}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,r,o){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson||this.isLockingUpdateOnPageModes))if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?t++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,t){if(e){this.questionHashesClear(),this.jsonErrors=null;var n=new i.JsonObject;n.toObject(e,this,t),n.errors.length>0&&(this.jsonErrors=n.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&t.locale&&(this.locale=t.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard",!0),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute((function(){return e.completeLastPage()}))},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[n,r,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new c.ProcessValue,r=n.getFirstName(e.name);if(r!==e.name){var i={},s=this.getValue(r);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(r)),o.Helpers.isValueEmpty(s)||(i[r]=s,e.value=n.getValue(e.name,i),e.isExists=n.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible&&r.isParentVisible&&!r.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){return this.getQuestionsByValueName(e)||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){if(e){var n=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),o.Helpers.isTwoValueEquals(n,t)||(this.checkTriggersAndRunConditions(e,t,n),this.onVariableChanged.fire(this,{name:e,value:t}))}},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r,o){if(void 0===n&&(n=!1),void 0===r&&(r=!0),!this.isLockingUpdateOnPageModes){var i=t;if(r&&(i=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,i))&&(this.editingObj||!this.isValueEqual(e,i)||!this.isTwoValueEquals(i,t))){var s=this.getValue(e);this.isValueEmpyOnSetValue(e,i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),this.updateOnSetValue(e,i,s,n,r,o)}}},t.prototype.isValueEmpyOnSetValue=function(e,t){return!(!this.isValueEmpty(t,!1)||this.editingObj&&null!=t&&this.editingObj.getDefaultPropertyValue(e)!==t)},t.prototype.updateOnSetValue=function(e,t,n,r,o,i){void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0===r||this.isDisposed||this.isRunningElementsBindings||(i=i||e,this.checkTriggersAndRunConditions(e,t,n),o&&this.notifyQuestionOnValueChanged(e,t,i),"text"!==r&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.runningPages||(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){var t=this;if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var n=this.getQuestionByValueName(e);if(n&&(!n||n.visible&&n.supportGoNextPageAutomatic())&&(n.validate(!1)||n.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(n)<0)){for(var o=0;o<r.length;o++)if(r[o].hasInput&&r[o].isEmpty())return;if((!this.isLastPage||!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic)&&!this.checkIsCurrentPageHasErrors(!1)){var i=this.currentPage;S.surveyTimerFunctions.safeTimeOut((function(){i===t.currentPage&&(t.isLastPage?t.isShowPreviewBeforeComplete?t.showPreview():t.completeLastPage():t.nextPage())}),v.settings.autoAdvanceDelay)}}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;t=this.questionOnValueChanging(r,t,e),this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByValueName(e);s&&(this.onValueChanged.fire(this,{name:r,question:s,value:t}),s.comment=t,s.comment!=t&&(s.comment=t))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t,n){n&&this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!v.settings.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new u.TextPreProcessor,this.textPreProcessorValue.onProcess=function(t){e.getProcessedTextValue(t)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getInCorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r=0;r<t.length;r++){var o=t[r],i=o.correctAnswerCount;n+=e?i:o.quizQuestionCount-i}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:r}:"survey"==this.showTimerPanelMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(r),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?r<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t,n){var r;e&&t&&(r=n?this.processText("{"+t+"}",!0):(new c.ProcessValue).getValue(t,this.getFilteredValues()),this.setTriggerValue(e,r,!1))},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){var n;if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(n=this.focusingQuestionInfo)||void 0===n?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t},this.skippedPages.push({from:this.currentPage,to:e.page});var r=this.activePage!==e.page&&!e.page.isStartPage;return r&&(this.currentPage=e.page),r||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var n=this.enterKeyAction||v.settings.enterKeyAction;if("loseFocus"==n&&t.target.blur(),"moveToNextEditor"==n){var r=this.currentPage.questions,o=r.indexOf(e);o>-1&&o<r.length-1?r[o+1].focus():t.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,t,n,r,o){if(this.onElementWrapperComponentName.isEmpty)return e;var i={componentName:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentName.fire(this,i),i.componentName},t.prototype.elementWrapperDataCore=function(e,t,n,r,o){if(this.onElementWrapperComponentData.isEmpty)return e;var i={data:e,element:t,wrapperName:n,reason:r,item:o};return this.onElementWrapperComponentData.fire(this,i),i.data},t.prototype.getElementWrapperComponentName=function(e,n){var r="logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,e,"component",t)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,t,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var t=e.question;return this.elementWrapperDataCore(t,t,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.findLayoutElement=function(e){return this.layoutElements.filter((function(t){return t.id===e}))[0]},t.prototype.removeLayoutElement=function(e){var t=this.findLayoutElement(e);if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];if("display"!==this.mode&&A(o.id,"timerpanel"))"header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o);else if("running"===this.state&&A(o.id,this.progressBarComponentName)){if("singlePage"!=this.questionsOnPageMode){var i=this.findLayoutElement("advanced-header"),s=i&&i.data,a=!s||s.hasBackground;A(this.showProgressBar,"aboveHeader")&&(a=!1),A(this.showProgressBar,"belowHeader")&&(a=!0),"header"!==e||a||(o.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"center"===e&&a&&(o.index&&delete o.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"footer"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)}}else A(o.id,"buttons-navigation")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&A(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):A(o.id,"advanced-header")?"running"!==this.state&&"starting"!==this.state||o.container!==e||t.push(o):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t.sort((function(e,t){return(e.index||0)-(t.index||0)})),t},t.prototype.processPopupVisiblityChanged=function(e,t,n){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})},t.prototype.applyTheme=function(e){var t=this;if(e){if(Object.keys(e).forEach((function(n){"header"!==n&&("isPanelless"===n?t.isCompact=e[n]:t[n]=e[n])})),"advanced"===this.headerView||"header"in e){this.removeLayoutElement("advanced-header");var n=new P.Cover;n.fromTheme(e),this.insertAdvancedHeader(n)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach((function(t){return t.themeChanged(e)}))},t.prototype.dispose=function(){if(this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var t=0;t<this.layoutElements.length;t++)this.layoutElements[t].data&&this.layoutElements[t].data!==this&&this.layoutElements[t].data.dispose&&this.layoutElements[t].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(this.currentPage=null,t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype.onScroll=function(){if(this.rootElement){var e=this.rootElement.querySelector(".sv-components-container-center");e&&e.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")}this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e,t=this;this.scrollHandler=function(){t.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",I([Object(i.property)()],t.prototype,"completedCss",void 0),I([Object(i.property)()],t.prototype,"completedBeforeCss",void 0),I([Object(i.property)()],t.prototype,"loadingBodyCss",void 0),I([Object(i.property)()],t.prototype,"containerCss",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"fitToContainer",void 0),I([Object(i.property)({onSet:function(e,t){if("advanced"===e){if(!t.findLayoutElement("advanced-header")){var n=new P.Cover;n.logoPositionX="right"===t.logoPosition?"right":"left",n.logoPositionY="middle",n.titlePositionX="right"===t.logoPosition?"left":"right",n.titlePositionY="middle",n.descriptionPositionX="right"===t.logoPosition?"left":"right",n.descriptionPositionY="middle",t.insertAdvancedHeader(n)}}else t.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),I([Object(i.property)()],t.prototype,"showBrandInfo",void 0),I([Object(i.property)()],t.prototype,"enterKeyAction",void 0),I([Object(i.property)()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),I([Object(i.property)({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),I([Object(i.property)({defaultValue:{}})],t.prototype,"cssVariables",void 0),I([Object(i.property)()],t.prototype,"_isMobile",void 0),I([Object(i.property)()],t.prototype,"_isCompact",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImage",void 0),I([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),I([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),I([Object(i.property)({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),I([Object(i.property)()],t.prototype,"backgroundImageStyle",void 0),I([Object(i.property)()],t.prototype,"wrapperFormCss",void 0),I([Object(i.property)({getDefaultValue:function(e){return"buttons"===e.progressBarType}})],t.prototype,"progressBarShowPageTitles",void 0),I([Object(i.property)()],t.prototype,"progressBarShowPageNumbers",void 0),I([Object(i.property)()],t.prototype,"progressBarInheritWidthFrom",void 0),I([Object(i.property)()],t.prototype,"rootCss",void 0),I([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),I([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function A(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(e){return e.originalPages||e.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r,null==n?void 0:n.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(e){return"off"!==e.showProgressBar}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(e){return!!e&&e.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(e){return!0===e.goNextPageAutomatic}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(e){return e.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(e){return"none"!==e.showNavigationButtons&&e.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["page","survey","all"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeDirections:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/surveyTaskManager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTaskManagerModel",(function(){return l}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){this.type=e,this.timestamp=new Date},l=function(e){function t(){var t=e.call(this)||this;return t.taskList=[],t.onAllTasksCompleted=t.addEvent(),t}return s(t,e),t.prototype.runTask=function(e,t){var n=this,r=new a(e);return this.taskList.push(r),this.hasActiveTasks=!0,t((function(){return n.taskFinished(r)})),r},t.prototype.waitAndExecute=function(e){this.hasActiveTasks?this.onAllTasksCompleted.add((function(){e()})):e()},t.prototype.taskFinished=function(e){var t=this.taskList.indexOf(e);t>-1&&this.taskList.splice(t,1),this.hasActiveTasks&&0==this.taskList.length&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(o.Base)},"./src/surveyTimerModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/surveytimer.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?(0==n?(this.progress=0,setTimeout((function(){e.progress=Math.floor((n+1)/r*100)/100}),0)):n<=r&&(this.progress=Math.floor((n+1)/r*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"tryFocusPage",(function(){return u})),n.d(t,"createTOCListModel",(function(){return c})),n.d(t,"getTocRootCss",(function(){return p})),n.d(t,"TOCModel",(function(){return d}));var r=n("./src/actions/action.ts"),o=n("./src/base.ts"),i=n("./src/global_variables_utils.ts"),s=n("./src/list.ts"),a=n("./src/page.ts"),l=n("./src/popup.ts");function u(e,t){return e.isDesignMode||t.focusFirstQuestion(),!0}function c(e,t){var n,l="singlePage"===e.questionsOnPageMode?null===(n=e.pages[0])||void 0===n?void 0:n.elements:e.pages,c=(l||[]).map((function(n){return new r.Action({id:n.name,locTitle:n.locNavigationTitle,action:function(){return i.DomDocumentHelper.activeElementBlur(),t&&t(),n instanceof a.PageModel?e.tryNavigateToPage(n):u(e,n)},visible:new o.ComputedUpdater((function(){return n.isVisible&&!n.isStartPage}))})})),p=c.filter((function(t){return!!e.currentPage&&t.id===e.currentPage.name}))[0]||c.filter((function(e){return e.id===l[0].name}))[0],d={items:c,onSelectionChanged:function(e){e.action()&&(h.selectedItem=e)},allowSelection:!0,searchEnabled:!1,locOwner:e,selectedItem:p},h=new s.ListModel(d);return h.allowSelection=!1,e.onCurrentPageChanged.add((function(t,n){h.selectedItem=c.filter((function(t){return!!e.currentPage&&t.id===e.currentPage.name}))[0]})),h}function p(e,t){void 0===t&&(t=!1);var n=d.RootStyle;return t?n+" "+d.RootStyle+"--mobile":(n+=" "+d.RootStyle+"--"+(e.tocLocation||"").toLowerCase(),d.StickyPosition&&(n+=" "+d.RootStyle+"--sticky"),n)}var d=function(){function e(t){var n=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){n.popupModel.toggleVisibility()},this.listModel=c(t,(function(){n.popupModel.isVisible=!1})),this.popupModel=new l.PopupModel("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="overlay",this.popupModel.displayMode=new o.ComputedUpdater((function(){return n.isMobile?"overlay":"popup"})),e.StickyPosition&&(t.onAfterRenderSurvey.add((function(e,t){return n.initStickyTOCSubscriptions(t.htmlElement)})),this.initStickyTOCSubscriptions(t.rootElement))}return e.prototype.initStickyTOCSubscriptions=function(t){var n=this;e.StickyPosition&&t&&(t.addEventListener("scroll",(function(e){n.updateStickyTOCSize(t)})),this.updateStickyTOCSize(t))},e.prototype.updateStickyTOCSize=function(t){if(t){var n=t.querySelector("."+e.RootStyle);if(n&&(n.style.height="",!this.isMobile&&e.StickyPosition&&t)){var r=t.getBoundingClientRect().height,o="advanced"===this.survey.headerView?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),i=t.querySelector(o),s=i?i.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;n.style.height=r-a-1+"px"}}},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerCss",{get:function(){return p(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.popupModel.dispose(),this.listModel.dispose()},e.RootStyle="sv_progress-toc",e.StickyPosition=!0,e}()},"./src/surveytimer.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyTimerFunctions",(function(){return o})),n.d(t,"SurveyTimer",(function(){return i}));var r=n("./src/base.ts"),o={setTimeout:function(e){return o.safeTimeOut(e,1e3)},clearTimeout:function(e){clearTimeout(e)},safeTimeOut:function(e,t){return t<=0?(e(),0):setTimeout(e,t)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIconRegistry",(function(){return o})),n.d(t,"SvgRegistry",(function(){return i})),n.d(t,"SvgBundleViewModel",(function(){}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.processId=function(e,t){return 0==e.indexOf(t)&&(e=e.substring(t.length)),e},e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){if(void 0===n&&(n=this.iconPrefix),r.DomDocumentHelper.isAvailable()){e=this.processId(e,n);var o=r.DomDocumentHelper.createElement("div");o.innerHTML=t;var i=r.DomDocumentHelper.createElement("symbol"),s=o.querySelector("svg");i.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)i.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);i.id=n+e,this.registerIconFromSymbol(e,i.outerHTML)}},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix),e=this.processId(e,n);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e}(),i=new o,s=n("./src/images sync \\.svg$"),a=n("./src/images/smiley sync \\.svg$");i.registerIconsFromFolder(s),i.registerIconsFromFolder(a)},"./src/template-renderer.ts":function(e,t,n){"use strict";n.r(t)},"./src/textPreProcessor.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TextPreProcessorItem",(function(){return i})),n.d(t,"TextPreProcessorValue",(function(){return s})),n.d(t,"TextPreProcessor",(function(){return a})),n.d(t,"QuestionTextProcessor",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){r.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.Helpers.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new s(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",s=0;s<n;s++)if("{"==(o=e[s])&&(r=s),"}"==o){if(r>-1){var a=new i;a.start=r,a.end=s,t.push(a)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var i=this.panel?this.getValues():null;i&&(r[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,r)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.prototype.processTextCore=function(e,t,n){return e?e.processText(t,n):t},e}()},"./src/themes.ts":function(e,t,n){"use strict";n.r(t)},"./src/trigger.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Trigger",(function(){return d})),n.d(t,"SurveyTrigger",(function(){return h})),n.d(t,"SurveyTriggerVisible",(function(){return f})),n.d(t,"SurveyTriggerComplete",(function(){return m})),n.d(t,"SurveyTriggerSetValue",(function(){return g})),n.d(t,"SurveyTriggerSkip",(function(){return y})),n.d(t,"SurveyTriggerRunExpression",(function(){return v})),n.d(t,"SurveyTriggerCopyValue",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/expressions/expressions.ts"),u=n("./src/conditionProcessValue.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.registerPropertyChangedHandlers(["operator","value","name"],(function(){n.oldPropertiesChanged()})),n.registerPropertyChangedHandlers(["expression"],(function(){n.onExpressionChanged()})),n}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,n,r,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(n)&&(this.conditionRunner?this.perform(r,o):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,r,o)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){return!!e&&(this.createConditionRunner(),!(!this.conditionRunner||!0!==this.conditionRunner.hasFunction())||(new u.ProcessValue).isAnyKeyChanged(e,this.getUsedVariables()))},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var t=e.length-1;t>=0;t--){var n=e[t];n.endsWith("-unwrapped")&&e.push(n.substring(0,n.length-10))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!c.settings.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new a.ExpressionRunner(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var t=e.prototype.getUsedVariables.call(this);return 0===t.length&&this.fromName&&t.push(this.fromName),t},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new y}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new v}),"surveytrigger")},"./src/utils/animation.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationUtils",(function(){return l})),n.d(t,"AnimationPropertyUtils",(function(){return u})),n.d(t,"AnimationGroupUtils",(function(){return c})),n.d(t,"AnimationProperty",(function(){return p})),n.d(t,"AnimationBoolean",(function(){return d})),n.d(t,"AnimationGroup",(function(){return h})),n.d(t,"AnimationTab",(function(){return f}));var r,o=n("./src/utils/taskmanager.ts"),i=n("./src/utils/utils.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),n=t.animationDelay.split(", "),r=t.animationDuration.split(", "),o=0,i=0;i<Math.max(r.length,n.length);i++)o=Math.max(o,this.getMsFromRule(r[i%r.length])+this.getMsFromRule(n[i%n.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,n){var r,o=this,i=this.getAnimationsCount(e),s=function(i){void 0===i&&(i=!0),o.afterAnimationRun(e,n),t(i),clearTimeout(r),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),r=setTimeout((function(){s(!1)}),this.getAnimationDuration(e)+10)):(this.afterAnimationRun(e,n),t(!0))},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)},e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,n){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach((function(t){e.classList.add(t)})),this.onAnimationEnd(e,n,t)):n(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach((function(t){e.classList.remove(t)}))},e.prototype.onNextRender=function(e,t){var n=this;if(void 0===t&&(t=!1),!t&&s.DomWindowHelper.isAvailable()){var r=function(){e(!0),cancelAnimationFrame(o)},o=s.DomWindowHelper.requestAnimationFrame((function(){o=s.DomWindowHelper.requestAnimationFrame((function(){e(!1),n.removeCancelCallback(r)}))}));this.addCancelCallback(r)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach((function(e){return e()})),this.cancelQueue=[]},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onEnter=function(e){var t=this,n=e.getAnimatedElement(),r=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,(function(){t.clearHtmlElement(n,r)}))},t.prototype.onLeave=function(e,t){var n=this,r=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,(function(e){t(),n.onNextRender((function(){n.clearHtmlElement(r,o)}),e)}))},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.runGroupAnimation=function(e,t,n,r,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},a=t.map((function(t){return e.getAnimatedElement(t)})),l=t.map((function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}})),u=n.map((function(t){return e.getAnimatedElement(t)})),c=n.map((function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}})),p=r.map((function(t){return e.getAnimatedElement(t.item)})),d=r.map((function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}}));t.forEach((function(e,t){i.beforeAnimationRun(a[t],l[t])})),n.forEach((function(e,t){i.beforeAnimationRun(u[t],c[t])})),r.forEach((function(e,t){i.beforeAnimationRun(p[t],d[t])}));var h=t.length+n.length+p.length,f=function(e){--h<=0&&(o&&o(),i.onNextRender((function(){t.forEach((function(e,t){i.clearHtmlElement(a[t],l[t])})),n.forEach((function(e,t){i.clearHtmlElement(u[t],c[t])})),r.forEach((function(e,t){i.clearHtmlElement(p[t],d[t])}))}),e))};t.forEach((function(e,t){i.runAnimation(a[t],l[t],f)})),n.forEach((function(e,t){i.runAnimation(u[t],c[t],f)})),r.forEach((function(e,t){i.runAnimation(p[t],d[t],f)}))},t}(l),p=function(){function e(e,t,n){var r=this;this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=Object(o.debounce)((function(e){r.animation.cancel();try{r._sync(e)}catch(t){r.update(e)}}))}return e.prototype.onNextRender=function(e,t){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var o=function(){r.remove(i),n.cancelCallback=void 0},i=function(){e(),o()};this.cancelCallback=function(){t&&t(),o()},r.add(i)}else{if(!s.DomWindowHelper.isAvailable())throw new Error("Can't get next render");var a=s.DomWindowHelper.requestAnimationFrame((function(){e(),n.cancelCallback=void 0}));this.cancelCallback=function(){t&&t(),cancelAnimationFrame(a),n.cancelCallback=void 0}}},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new u,t}return a(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender((function(){t.animation.onEnter(t.animationOptions)})),this.update(e)):this.animation.onLeave(this.animationOptions,(function(){t.update(e)})):this.update(e)},t}(p),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new c,t}return a(t,e),t.prototype._sync=function(e){var t,n,r=this,o=this.getCurrentValue(),s=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,a=Object(i.compareArrays)(o,e,null!==(n=this.animationOptions.getKey)&&void 0!==n?n:function(e){return e}),l=a.addedItems,u=a.deletedItems,c=a.reorderedItems,p=a.mergedItems;!s&&(c.length>0||l.length>0)&&(u=[],p=e);var d=function(){r.animation.runGroupAnimation(r.animationOptions,l,u,c,(function(){u.length>0&&r.update(e)}))};[l,u,c].some((function(e){return e.length>0}))?u.length<=0||c.length>0||l.length>0?(this.onNextRender(d,(function(){r.update(e)})),this.update(p)):d():this.update(e)},t}(p),f=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.mergeValues=o,i.animation=new c,i}return a(t,e),t.prototype._sync=function(e){var t=this,n=[].concat(this.getCurrentValue());if(n[0]!==e[0]){var r=this.mergeValues?this.mergeValues(e,n):[].concat(n,e);this.onNextRender((function(){t.animation.runGroupAnimation(t.animationOptions,e,n,[],(function(){t.update(e)}))}),(function(){return t.update(e)})),this.update(r,!0)}else this.update(e)},t}(p)},"./src/utils/camera.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Camera",(function(){return i}));var r=n("./src/settings.ts"),o=n("./src/global_variables_utils.ts"),i=function(){function e(){this.canFlipValue=void 0}return e.clear=function(){e.cameraList=void 0,e.cameraIndex=-1},e.setCameraList=function(t){var n=function(e){var t=e.label.toLocaleLowerCase();return t.indexOf("user")>-1?"user":t.indexOf("enviroment")>-1?"enviroment":""};e.clear(),Array.isArray(t)&&t.length>0&&(e.cameraIndex=-1,t.sort((function(e,r){if(e===r)return 0;if(e.label!==r.label){var o=n(e),i=n(r);if(o!==i){if("user"===o)return-1;if("user"===i)return 1;if("enviroment"===o)return-1;if("enviroment"===i)return 1}}return t.indexOf(e)<t.indexOf(r)?-1:1}))),e.cameraList=t},e.prototype.hasCamera=function(t){var n=this;void 0===e.cameraList?e.mediaDevicesCallback?e.mediaDevicesCallback((function(e){n.setVideoInputs(e),n.hasCameraCallback(t)})):"undefined"!=typeof navigator&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then((function(e){n.setVideoInputs(e),n.hasCameraCallback(t),n.updateCanFlipValue()})).catch((function(r){e.cameraList=null,n.hasCameraCallback(t)})):(e.cameraList=null,this.hasCameraCallback(t)):this.hasCameraCallback(t)},e.prototype.getMediaConstraints=function(t){var n=e.cameraList;if(Array.isArray(n)&&!(n.length<1)){e.cameraIndex<0&&(e.cameraIndex=0);var r=n[e.cameraIndex],o={};return r&&r.deviceId?o.deviceId={exact:r.deviceId}:o.facingMode=e.cameraFacingMode,t&&((null==t?void 0:t.height)&&(o.height={ideal:t.height}),(null==t?void 0:t.width)&&(o.width={ideal:t.width})),{video:o,audio:!1}}},e.prototype.startVideo=function(t,n,o,i){var s,a=this,l=null===(s=r.settings.environment.root)||void 0===s?void 0:s.getElementById(t);if(l){l.style.width="100%",l.style.height="auto",l.style.height="100%",l.style.objectFit="contain";var u=this.getMediaConstraints({width:o,height:i});navigator.mediaDevices.getUserMedia(u).then((function(t){var r;l.srcObject=t,!(null===(r=e.cameraList[e.cameraIndex])||void 0===r?void 0:r.deviceId)&&t.getTracks()[0].getCapabilities().facingMode&&(e.canSwitchFacingMode=!0,a.updateCanFlipValue()),l.play(),n(t)})).catch((function(e){n(void 0)}))}else n(void 0)},e.prototype.getImageSize=function(e){return{width:e.videoWidth,height:e.videoHeight}},e.prototype.snap=function(e,t){if(!o.DomDocumentHelper.isAvailable())return!1;var n=o.DomDocumentHelper.getDocument(),r=null==n?void 0:n.getElementById(e);if(!r)return!1;var i=n.createElement("canvas"),s=this.getImageSize(r);i.height=s.height,i.width=s.width;var a=i.getContext("2d");return a.clearRect(0,0,i.width,i.height),a.drawImage(r,0,0,i.width,i.height),i.toBlob(t,"image/png"),!0},e.prototype.updateCanFlipValue=function(){var t=e.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||e.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},e.prototype.canFlip=function(e){return void 0===this.canFlipValue&&this.updateCanFlipValue(),e&&(this.onCanFlipChangedCallback=e),this.canFlipValue},e.prototype.flip=function(){this.canFlip()&&(e.canSwitchFacingMode?e.cameraFacingMode="user"===e.cameraFacingMode?"environment":"user":e.cameraIndex>=e.cameraList.length-1?e.cameraIndex=0:e.cameraIndex++)},e.prototype.hasCameraCallback=function(t){t(Array.isArray(e.cameraList))},e.prototype.setVideoInputs=function(t){var n=[];t.forEach((function(e){"videoinput"===e.kind&&n.push(e)})),e.setCameraList(n.length>0?n:null)},e.cameraIndex=-1,e.cameraFacingMode="user",e.canSwitchFacingMode=!1,e}()},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"IsMobile",(function(){return a})),n.d(t,"mouseInfo",(function(){return l})),n.d(t,"IsTouch",(function(){return c})),n.d(t,"_setIsTouch",(function(){return p})),n.d(t,"detectMouseSupport",(function(){return d}));var r,o=n("./src/global_variables_utils.ts"),i=!1,s=null;"undefined"!=typeof navigator&&navigator&&o.DomWindowHelper.isAvailable()&&(s=navigator.userAgent||navigator.vendor||o.DomWindowHelper.hasOwn("opera")),(r=s)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substring(0,4)))&&(i=!0);var a=i||!1,l={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return o.DomWindowHelper.isAvailable()&&(o.DomWindowHelper.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},u=o.DomWindowHelper.matchMedia;l.hasMouse=d(u);var c=l.isTouch;function p(e){c=e}function d(e){if(!e)return!1;var t=e("(pointer:fine)"),n=e("(any-hover:hover)");return!!t&&t.matches||!!n&&n.matches}},"./src/utils/dragOrClickHelper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragOrClickHelper",(function(){return i}));var r=n("./src/utils/devices.ts"),o=n("./src/global_variables_utils.ts"),i=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){r.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,o.DomDocumentHelper.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(o.DomDocumentHelper.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Rect",(function(){return r})),n.d(t,"PopupUtils",(function(){return o}));var r=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),e}(),o=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i){void 0===i&&(i="flex");var s=e.left,a=e.top;return"flex"===i&&(s="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),a="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,"center"!=o&&"middle"!=r&&("top"==r?a+=e.height:a-=e.height),{left:Math.round(s),top:Math.round(a)}},e.getCorrectedVerticalDimensions=function(t,n,r,o,i){var s;void 0===i&&(i=!0);var a=r-e.bottomIndent;if("top"===o&&(s={height:n,top:t}),t<0)s={height:i?n+t:n,top:0};else if(n+t>r){var l=Math.min(n,a-t);s={height:i?l:n,top:i?t:t-(n-l)}}return s&&(s.height=Math.min(s.height,a),s.top=Math.max(s.top,0)),s},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){if("middle"===r)return r;var i=t-(e.top+("center"!==n?e.height:0)),s=t+e.bottom-("center"!==n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.updateHorizontalPosition=function(e,t,n,r){if("center"===n)return n;var o=t-e.left,i=t+e.right-r;return o>0&&i<=0&&"left"==n?n="right":i>0&&o<=0&&"right"==n?n="left":i>0&&o>0&&(n=o<i?"left":"right"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return a})),n.d(t,"VerticalResponsivityManager",(function(){return l}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e,t,n,r,i){var s=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=i,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return o.DomDocumentHelper.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(s.isInitialized=!1),setTimeout((function(){s.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){o.DomWindowHelper.requestAnimationFrame((function(){s.process()}))})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.getRenderedVisibleActionsCount=function(){var e=this,t=0;return this.container.querySelectorAll(this.itemsSelector).forEach((function(n){e.calcItemSize(n)>0&&t++})),t},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(i.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var t=function(){var t,n=e.dotsItemSize;if(!e.dotsItemSize){var r=null===(t=e.container)||void 0===t?void 0:t.querySelector(".sv-dots");n=r&&e.calcItemSize(r)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),n)};if(this.isInitialized)t();else{var n=function(){e.calcItemsSizes(),e.isInitialized=!0,t()};this.getRenderedVisibleActionsCount()<this.model.visibleActions.length?this.delayedUpdateFunction?this.delayedUpdateFunction(n):queueMicrotask?queueMicrotask(n):n():n()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),l=function(e){function t(t,n,r,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,n,r,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return s(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(a)},"./src/utils/taskmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Task",(function(){return r})),n.d(t,"TaskManger",(function(){return o})),n.d(t,"debounce",(function(){return i}));var r=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),e}(),o=function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}return e.Instance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],n=0;n<e.tasks.length;n++){var r=e.tasks[n];r.execute(),r.isCompleted?"function"==typeof r.dispose&&r.dispose():t.push(r)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[],e}();function i(e){var t,n=this,r=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,r||(r=!0,queueMicrotask((function(){o||e.apply(n,t),o=!1,r=!1})))},cancel:function(){o=!0}}}},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return E})),n.d(t,"getRenderedSize",(function(){return P})),n.d(t,"getRenderedStyleSize",(function(){return S})),n.d(t,"doKey2ClickBlur",(function(){return T})),n.d(t,"doKey2ClickUp",(function(){return _})),n.d(t,"doKey2ClickDown",(function(){return V})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return B})),n.d(t,"showConfirmDialog",(function(){return q})),n.d(t,"configConfirmDialog",(function(){return H})),n.d(t,"compareArrays",(function(){return Q})),n.d(t,"mergeValues",(function(){return F})),n.d(t,"getElementWidth",(function(){return D})),n.d(t,"isContainerVisible",(function(){return N})),n.d(t,"classesToSelector",(function(){return A})),n.d(t,"compareVersions",(function(){return a})),n.d(t,"confirmAction",(function(){return l})),n.d(t,"confirmActionAsync",(function(){return u})),n.d(t,"detectIEOrEdge",(function(){return p})),n.d(t,"detectIEBrowser",(function(){return c})),n.d(t,"loadFileFromBase64",(function(){return d})),n.d(t,"isMobile",(function(){return h})),n.d(t,"isShadowDOM",(function(){return f})),n.d(t,"getElement",(function(){return m})),n.d(t,"isElementVisible",(function(){return g})),n.d(t,"findScrollableParent",(function(){return y})),n.d(t,"scrollElementByChildId",(function(){return v})),n.d(t,"navigateToUrl",(function(){return b})),n.d(t,"wrapUrlForBackgroundImage",(function(){return C})),n.d(t,"createSvg",(function(){return x})),n.d(t,"getIconNameFromProxy",(function(){return w})),n.d(t,"increaseHeightByContent",(function(){return R})),n.d(t,"getOriginalEvent",(function(){return I})),n.d(t,"preventDefaults",(function(){return k})),n.d(t,"findParentByClassNames",(function(){return L})),n.d(t,"getFirstVisibleChild",(function(){return M})),n.d(t,"chooseFiles",(function(){return z}));var r=n("./src/localizablestring.ts"),o=n("./src/settings.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/global_variables_utils.ts");function a(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function l(e){return o.settings&&o.settings.confirmActionFunc?o.settings.confirmActionFunc(e):confirm(e)}function u(e,t,n,r,i){var s=function(e){e?t():n&&n()};o.settings&&o.settings.confirmActionAsync&&o.settings.confirmActionAsync(e,s,void 0,r,i)||s(l(e))}function c(){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function p(){if(void 0===p.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");p.isIEOrEdge=r>0||n>0||t>0}return p.isIEOrEdge}function d(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function h(){return s.DomWindowHelper.isAvailable()&&s.DomWindowHelper.hasOwn("orientation")}var f=function(e){return!!e&&!(!("host"in e)||!e.host)},m=function(e){var t=o.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function g(e,t){if(void 0===t&&(t=0),void 0===o.settings.environment)return!1;var n=o.settings.environment.root,r=f(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),a=-t,l=Math.max(r,s.DomWindowHelper.getInnerHeight())+t,u=i.top,c=i.bottom;return Math.max(a,u)<=Math.min(l,c)}function y(e){var t=o.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:y(e.parentElement):f(t)?t.host:t.documentElement}function v(e){var t=o.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var r=y(n);r&&setTimeout((function(){return r.dispatchEvent(new CustomEvent("scroll"))}),10)}}}function b(e){var t=s.DomWindowHelper.getLocation();e&&t&&(t.href=e)}function C(e){return e?["url(",e,")"].join(""):""}function w(e){return e&&o.settings.customIcons[e]||e}function x(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var a=o.childNodes[0],l=w(r);a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var u=o.getElementsByTagName("title")[0];i?(u||(u=s.DomDocumentHelper.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(u)),u.textContent=i):u&&o.removeChild(u)}}function E(e){return"function"!=typeof e?e:e()}function P(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function S(e){if(void 0===P(e))return e}var O="sv-focused--by-key";function T(e){var t=e.target;t&&t.classList&&t.classList.remove(O)}function _(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(O)&&n.classList.add(O)}}}function V(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function R(e,t){if(e){t||(t=function(e){return s.DomDocumentHelper.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px")}}function I(e){return e.originalEvent||e}function k(e){e.preventDefault(),e.stopPropagation()}function A(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function D(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function N(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function M(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function L(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:L(e.parentElement,t)}function j(e,t){if(void 0===t&&(t=!0),s.DomWindowHelper.isAvailable()&&s.DomDocumentHelper.isAvailable()&&e.childNodes.length>0){var n=s.DomWindowHelper.getSelection();if(0==n.rangeCount)return;var r=n.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),n.removeAllRanges(),n.addRange(r);var o=n.toString(),i=e.innerText;o=o.replace(/\r/g,""),t&&(o=o.replace(/\n/g,""),i=i.replace(/\n/g,""));var a=o.length;for(e.innerText=i,(r=s.DomDocumentHelper.getDocument().createRange()).setStart(e.firstChild,0),r.setEnd(e.firstChild,0),n.removeAllRanges(),n.addRange(r);n.toString().length<i.length-a;){var l=n.toString().length;if(n.modify("extend","forward","character"),n.toString().length==l)break}(r=n.getRangeAt(0)).setStart(r.endContainer,r.endOffset)}}function F(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),F(r,t[n])):t[n]=r}}var B=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}();function q(e,t,n,s,a){var l=new r.LocalizableString(void 0),u=o.settings.showDialog({componentName:"sv-string-viewer",data:{locStr:l,locString:l,model:l},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:e,displayMode:"popup",isFocusedContent:!1,cssClass:"sv-popup--confirm-delete"},a),c=u.footerToolbar,p=c.getActionById("apply"),d=c.getActionById("cancel");return d.title=i.surveyLocalization.getString("cancel",s),d.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",p.title=n||i.surveyLocalization.getString("ok",s),p.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",H(u),!0}function H(e){e.width="min-content"}function z(e,t){s.DomWindowHelper.isFileReaderAvailable()&&(e.value="",e.onchange=function(n){if(s.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var r=[],o=0;o<e.files.length;o++)r.push(e.files[o]);t(r)}},e.click())}function Q(e,t,n){var r=new Map,o=new Map,i=new Map,s=new Map;e.forEach((function(e){var t=n(e);if(r.has(t))throw new Error("keys must be unique");r.set(n(e),e)})),t.forEach((function(e){var t=n(e);if(o.has(t))throw new Error("keys must be unique");o.set(t,e)}));var a=[],l=[];o.forEach((function(e,t){r.has(t)?i.set(t,i.size):a.push(e)})),r.forEach((function(e,t){o.has(t)?s.set(t,s.size):l.push(e)}));var u=[];i.forEach((function(e,t){var n=s.get(t),r=o.get(t);n!==e&&u.push({item:r,movedForward:n<e})}));var c=new Array(e.length),p=0,d=Array.from(i.keys());e.forEach((function(e,t){i.has(n(e))?(c[t]=o.get(d[p]),p++):c[t]=e}));var h=new Map,f=[];c.forEach((function(e){var t=n(e);o.has(t)?f.length>0&&(h.set(t,f),f=[]):f.push(e)}));var m=new Array;return o.forEach((function(e,t){h.has(t)&&h.get(t).forEach((function(e){m.push(e)})),m.push(e)})),f.forEach((function(e){m.push(e)})),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:m}}},"./src/validator.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ValidatorResult",(function(){return c})),n.d(t,"SurveyValidator",(function(){return p})),n.d(t,"ValidatorRunner",(function(){return d})),n.d(t,"NumericValidator",(function(){return h})),n.d(t,"TextValidator",(function(){return f})),n.d(t,"AnswerCountValidator",(function(){return m})),n.d(t,"RegexValidator",(function(){return g})),n.d(t,"EmailValidator",(function(){return y})),n.d(t,"ExpressionValidator",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/error.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new i.CustomError(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(this.text,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=this.createRegExp();if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.getPropertyValue("insensitive")},set:function(e){this.setPropertyValue("insensitive",e)},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.insensitive?"i":"")},t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new c(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex",{name:"insensitive:boolean",visible:!1}],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")}})},e.exports=t()},755:function(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"createPopupModelWithListModel",(function(){return m})),n.d(t,"getActionDropdownButtonTarget",(function(){return g})),n.d(t,"BaseAction",(function(){return y})),n.d(t,"Action",(function(){return v})),n.d(t,"ActionDropdownViewModel",(function(){return b}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return t.locOwner=n,f(e,t,t)}function f(e,t,n){var r,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.hasTitle&&(a.title=e.title),o&&o(e,t)};var i=m(t,n),s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!n,i.show()}}),a=new v(s);return a.data=null===(r=i.contentComponentData)||void 0===r?void 0:r.model,a}function m(e,t){var n=new a.ListModel(e);n.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var r=t||{};r.onDispose=function(){n.dispose()};var o=new l.PopupModel("sv-list",{model:n},r);return o.isFocusedContent=n.showFilter,o.onShow=function(){r.onShow&&r.onShow(),n.scrollToSelectedItem()},o}function g(e){return null==e?void 0:e.previousElementSibling}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.rendredIdValue=t.getNextRendredId(),n.markerIconSize=16,n}return p(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout((function(){t.clearPopupTimeouts(),t.showPopup()}),e)},t.prototype.hidePopupDelayed=function(e){var t,n=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout((function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1}),e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)({defaultValue:24})],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"markerIconName",void 0),d([Object(s.property)()],t.prototype,"markerIconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isPressed",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(o.Base),v=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)"locTitle"===r||"title"===r&&n.locTitle&&n.title||(n[r]=t[r]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var n=m(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});n.cssClass="sv-popup-inner",this.popupModel=n},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose(),this.locTitleValue&&(this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0)},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(y),b=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",n.push(t.innerItem))),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter((function(e){return!e.disableHide})).sort((function(e,t){return e.removePriority||0-t.removePriority||0}))},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.getActionsToHide().map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e,t){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){"small"==e&&t.disableShrink||(t.mode=e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach((function(n){n===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))}))},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),c([Object(o.property)({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return m})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),m=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRenderedEvent=!0,this.onElementRenderedEventEnabled=!1,this._onElementRerendered=new v,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&i.Helpers.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach((function(t){return e.dependencies[t].dispose()}))},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return a.settings.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return(new s.JsonObject).toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){(new s.JsonObject).toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultPropertyValue(e);if(void 0!==o)return o}return n},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[e]:void 0;return r&&r.localizationName?this.getLocalizationString(r.localizationName):"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(r,t)||this.setArrayPropertyDirectly(e,t):(this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t))},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n,r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r)};if(this.isInternal)i(this);else{o||(o=this);var s=this.getSurvey();s||(s=this),i(s),s!==this&&i(this)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.doBeforeAsynRun=function(e){this.asynExpressionHash||(this.asynExpressionHash=[]);var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,n=new l.ExpressionRunner(e);return n.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},n.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},n},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return a.settings.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!0},e.prototype.disableOnElementRenderedEvent=function(){this.onElementRenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRenderedEvent&&this.onElementRenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,void 0)},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];if(o){var i=o.toLowerCase();if(e.hasOwnProperty(o))return!0;if(o!==i&&e.hasOwnProperty(i))return!0;var s=this.getFirstName(o);if(e.hasOwnProperty(s)){if(o===s)return!0;var a=e[s];if(null!=a){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(o,l);l[s]=a.newValue;var c=this.getValue(o,l);if(!r.Helpers.isTwoValueEquals(u,c,!1,!1,!1))return!0}}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var r=new Array,o=0,i=this.getNonNestedObjectCore(e,t,n,r);!i&&o<r.length;)o=r.length,i=this.getNonNestedObjectCore(e,t,n,r);return i},e.prototype.getNonNestedObjectCore=function(e,t,n,o){var i=this.getFirstPropertyName(t,e,n,o);i&&o.push(i);for(var s=i?[i]:null;t!=i&&e;){if("["==t[0]){var a=this.getObjInArray(e,t);if(!a)return null;e=a.value,t=a.text,s.push(a.index)}else{if(!i&&t==this.getFirstName(t))return{value:e,text:t,path:s};if(e=this.getObjectValue(e,i),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(i.length)}t&&"."==t[0]&&(t=t.substring(1)),(i=this.getFirstPropertyName(t,e,n,o))&&s.push(i)}return{value:e,text:t,path:s}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=void 0),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),i=o[0],s=i.toUpperCase();for(var a in t)if(!(Array.isArray(r)&&r.indexOf(a)>-1)){var l=a[0];if(l===s||l===i){var u=a.toLowerCase();if(u==o)return a;if(o.length<=u.length)continue;var c=o[u.length];if("."!=c&&"["!=c)continue;if(u==o.substring(0,u.length))return a}}if(n&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return l})),n.d(t,"ExpressionRunnerBase",(function(){return u})),n.d(t,"ConditionRunner",(function(){return c})),n.d(t,"ExpressionRunner",(function(){return p}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditionsParser.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new s.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return this.expression&&i.ConsoleWarnings.warn("Invalid expression: "+this.expression),null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),u=function(){function e(t){this._id=e.IdCounter++,this.expression=t}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=l.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(this.id),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(this.id)},e.IdCounter=1,e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(1==t),e.prototype.doOnComplete.call(this,t)},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t)},t}(u)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e.error=function(e){console.error(e)},e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return o}));var r=n("./src/global_variables_utils.ts"),o=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=r.DomDocumentHelper.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/core-export.ts":function(e,t,n){"use strict";n.r(t);var r=n("survey-core");n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/react/reactSurvey.tsx");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click}));var o=n("./src/react/reactsurveymodel.tsx");n.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=n("./src/react/reactSurveyNavigationBase.tsx");n.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=n("./src/react/reacttimerpanel.tsx");n.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=n("./src/react/page.tsx");n.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=n("./src/react/row.tsx");n.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=n("./src/react/panel.tsx");n.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=n("./src/react/flow-panel.tsx");n.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=n("./src/react/reactquestion.tsx");n.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=n("./src/react/reactquestion_element.tsx");n.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=n("./src/react/reactquestion_comment.tsx");n.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=n("./src/react/reactquestion_checkbox.tsx");n.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var m=n("./src/react/reactquestion_ranking.tsx");n.d(t,"SurveyQuestionRanking",(function(){return m.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return m.SurveyQuestionRankingItem})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return m.SurveyQuestionRankingItemContent}));var g=n("./src/react/components/rating/rating-item.tsx");n.d(t,"RatingItem",(function(){return g.RatingItem}));var y=n("./src/react/components/rating/rating-item-star.tsx");n.d(t,"RatingItemStar",(function(){return y.RatingItemStar}));var v=n("./src/react/components/rating/rating-item-smiley.tsx");n.d(t,"RatingItemSmiley",(function(){return v.RatingItemSmiley}));var b=n("./src/react/components/rating/rating-dropdown-item.tsx");n.d(t,"RatingDropdownItem",(function(){return b.RatingDropdownItem}));var C=n("./src/react/tagbox-filter.tsx");n.d(t,"TagboxFilterString",(function(){return C.TagboxFilterString}));var w=n("./src/react/dropdown-item.tsx");n.d(t,"SurveyQuestionOptionItem",(function(){return w.SurveyQuestionOptionItem}));var x=n("./src/react/dropdown-base.tsx");n.d(t,"SurveyQuestionDropdownBase",(function(){return x.SurveyQuestionDropdownBase}));var E=n("./src/react/reactquestion_dropdown.tsx");n.d(t,"SurveyQuestionDropdown",(function(){return E.SurveyQuestionDropdown}));var P=n("./src/react/tagbox-item.tsx");n.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var S=n("./src/react/reactquestion_tagbox.tsx");n.d(t,"SurveyQuestionTagbox",(function(){return S.SurveyQuestionTagbox}));var O=n("./src/react/dropdown-select.tsx");n.d(t,"SurveyQuestionDropdownSelect",(function(){return O.SurveyQuestionDropdownSelect}));var T=n("./src/react/reactquestion_matrix.tsx");n.d(t,"SurveyQuestionMatrix",(function(){return T.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return T.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionMatrixCell",(function(){return T.SurveyQuestionMatrixCell}));var _=n("./src/react/reactquestion_html.tsx");n.d(t,"SurveyQuestionHtml",(function(){return _.SurveyQuestionHtml}));var V=n("./src/react/reactquestion_file.tsx");n.d(t,"SurveyQuestionFile",(function(){return V.SurveyQuestionFile}));var R=n("./src/react/components/file/file-choose-button.tsx");n.d(t,"SurveyFileChooseButton",(function(){return R.SurveyFileChooseButton}));var I=n("./src/react/components/file/file-preview.tsx");n.d(t,"SurveyFilePreview",(function(){return I.SurveyFilePreview}));var k=n("./src/react/reactquestion_multipletext.tsx");n.d(t,"SurveyQuestionMultipleText",(function(){return k.SurveyQuestionMultipleText}));var A=n("./src/react/reactquestion_radiogroup.tsx");n.d(t,"SurveyQuestionRadiogroup",(function(){return A.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return A.SurveyQuestionRadioItem}));var D=n("./src/react/reactquestion_text.tsx");n.d(t,"SurveyQuestionText",(function(){return D.SurveyQuestionText}));var N=n("./src/react/boolean.tsx");n.d(t,"SurveyQuestionBoolean",(function(){return N.SurveyQuestionBoolean}));var M=n("./src/react/boolean-checkbox.tsx");n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return M.SurveyQuestionBooleanCheckbox}));var L=n("./src/react/boolean-radio.tsx");n.d(t,"SurveyQuestionBooleanRadio",(function(){return L.SurveyQuestionBooleanRadio}));var j=n("./src/react/reactquestion_empty.tsx");n.d(t,"SurveyQuestionEmpty",(function(){return j.SurveyQuestionEmpty}));var F=n("./src/react/reactquestion_matrixdropdownbase.tsx");n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return F.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return F.SurveyQuestionMatrixDropdownBase}));var B=n("./src/react/reactquestion_matrixdropdown.tsx");n.d(t,"SurveyQuestionMatrixDropdown",(function(){return B.SurveyQuestionMatrixDropdown}));var q=n("./src/react/reactquestion_matrixdynamic.tsx");n.d(t,"SurveyQuestionMatrixDynamic",(function(){return q.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return q.SurveyQuestionMatrixDynamicAddButton}));var H=n("./src/react/reactquestion_paneldynamic.tsx");n.d(t,"SurveyQuestionPanelDynamic",(function(){return H.SurveyQuestionPanelDynamic}));var z=n("./src/react/progress.tsx");n.d(t,"SurveyProgress",(function(){return z.SurveyProgress}));var Q=n("./src/react/progressButtons.tsx");n.d(t,"SurveyProgressButtons",(function(){return Q.SurveyProgressButtons}));var U=n("./src/react/progressToc.tsx");n.d(t,"SurveyProgressToc",(function(){return U.SurveyProgressToc}));var W=n("./src/react/reactquestion_rating.tsx");n.d(t,"SurveyQuestionRating",(function(){return W.SurveyQuestionRating}));var $=n("./src/react/rating-dropdown.tsx");n.d(t,"SurveyQuestionRatingDropdown",(function(){return $.SurveyQuestionRatingDropdown}));var G=n("./src/react/reactquestion_expression.tsx");n.d(t,"SurveyQuestionExpression",(function(){return G.SurveyQuestionExpression}));var J=n("./src/react/react-popup-survey.tsx");n.d(t,"PopupSurvey",(function(){return J.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return J.SurveyWindow}));var Y=n("./src/react/reactquestion_factory.tsx");n.d(t,"ReactQuestionFactory",(function(){return Y.ReactQuestionFactory}));var K=n("./src/react/element-factory.tsx");n.d(t,"ReactElementFactory",(function(){return K.ReactElementFactory}));var X=n("./src/react/imagepicker.tsx");n.d(t,"SurveyQuestionImagePicker",(function(){return X.SurveyQuestionImagePicker}));var Z=n("./src/react/image.tsx");n.d(t,"SurveyQuestionImage",(function(){return Z.SurveyQuestionImage}));var ee=n("./src/react/signaturepad.tsx");n.d(t,"SurveyQuestionSignaturePad",(function(){return ee.SurveyQuestionSignaturePad}));var te=n("./src/react/reactquestion_buttongroup.tsx");n.d(t,"SurveyQuestionButtonGroup",(function(){return te.SurveyQuestionButtonGroup}));var ne=n("./src/react/reactquestion_custom.tsx");n.d(t,"SurveyQuestionCustom",(function(){return ne.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return ne.SurveyQuestionComposite}));var re=n("./src/react/components/popup/popup.tsx");n.d(t,"Popup",(function(){return re.Popup}));var oe=n("./src/react/components/list/list-item-content.tsx");n.d(t,"ListItemContent",(function(){return oe.ListItemContent}));var ie=n("./src/react/components/list/list-item-group.tsx");n.d(t,"ListItemGroup",(function(){return ie.ListItemGroup}));var se=n("./src/react/components/list/list.tsx");n.d(t,"List",(function(){return se.List}));var ae=n("./src/react/components/title/title-actions.tsx");n.d(t,"TitleActions",(function(){return ae.TitleActions}));var le=n("./src/react/components/title/title-element.tsx");n.d(t,"TitleElement",(function(){return le.TitleElement}));var ue=n("./src/react/components/action-bar/action-bar.tsx");n.d(t,"SurveyActionBar",(function(){return ue.SurveyActionBar}));var ce=n("./src/react/components/survey-header/logo-image.tsx");n.d(t,"LogoImage",(function(){return ce.LogoImage}));var pe=n("./src/react/components/survey-header/survey-header.tsx");n.d(t,"SurveyHeader",(function(){return pe.SurveyHeader}));var de=n("./src/react/components/svg-icon/svg-icon.tsx");n.d(t,"SvgIcon",(function(){return de.SvgIcon}));var he=n("./src/react/components/matrix-actions/remove-button/remove-button.tsx");n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return he.SurveyQuestionMatrixDynamicRemoveButton}));var fe=n("./src/react/components/matrix-actions/detail-button/detail-button.tsx");n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return fe.SurveyQuestionMatrixDetailButton}));var me=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return me.SurveyQuestionMatrixDynamicDragDropIcon}));var ge=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return ge.SurveyQuestionPanelDynamicAddButton}));var ye=n("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return ye.SurveyQuestionPanelDynamicRemoveButton}));var ve=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return ve.SurveyQuestionPanelDynamicPrevButton}));var be=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return be.SurveyQuestionPanelDynamicNextButton}));var Ce=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return Ce.SurveyQuestionPanelDynamicProgressText}));var we=n("./src/react/components/survey-actions/survey-nav-button.tsx");n.d(t,"SurveyNavigationButton",(function(){return we.SurveyNavigationButton}));var xe=n("./src/react/components/question-error.tsx");n.d(t,"QuestionErrorComponent",(function(){return xe.QuestionErrorComponent}));var Ee=n("./src/react/components/matrix/row.tsx");n.d(t,"MatrixRow",(function(){return Ee.MatrixRow}));var Pe=n("./src/react/components/skeleton.tsx");n.d(t,"Skeleton",(function(){return Pe.Skeleton}));var Se=n("./src/react/components/notifier.tsx");n.d(t,"NotifierComponent",(function(){return Se.NotifierComponent}));var Oe=n("./src/react/components/components-container.tsx");n.d(t,"ComponentsContainer",(function(){return Oe.ComponentsContainer}));var Te=n("./src/react/components/character-counter.tsx");n.d(t,"CharacterCounterComponent",(function(){return Te.CharacterCounterComponent}));var _e=n("./src/react/components/header.tsx");n.d(t,"HeaderMobile",(function(){return _e.HeaderMobile})),n.d(t,"HeaderCell",(function(){return _e.HeaderCell})),n.d(t,"Header",(function(){return _e.Header}));var Ve=n("./src/react/string-viewer.tsx");n.d(t,"SurveyLocStringViewer",(function(){return Ve.SurveyLocStringViewer}));var Re=n("./src/react/string-editor.tsx");n.d(t,"SurveyLocStringEditor",(function(){return Re.SurveyLocStringEditor}));var Ie=n("./src/react/components/loading-indicator.tsx");n.d(t,"LoadingIndicatorComponent",(function(){return Ie.LoadingIndicatorComponent}));var ke=n("./src/react/svgbundle.tsx");n.d(t,"SvgBundleComponent",(function(){return ke.SvgBundleComponent}))},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/react-ui-model.ts");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click})),n.d(t,"ReactSurveyElementsWrapper",(function(){return r.ReactSurveyElementsWrapper})),n.d(t,"SurveyNavigationBase",(function(){return r.SurveyNavigationBase})),n.d(t,"SurveyTimerPanel",(function(){return r.SurveyTimerPanel})),n.d(t,"SurveyPage",(function(){return r.SurveyPage})),n.d(t,"SurveyRow",(function(){return r.SurveyRow})),n.d(t,"SurveyPanel",(function(){return r.SurveyPanel})),n.d(t,"SurveyFlowPanel",(function(){return r.SurveyFlowPanel})),n.d(t,"SurveyQuestion",(function(){return r.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return r.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return r.SurveyQuestionAndErrorsCell})),n.d(t,"ReactSurveyElement",(function(){return r.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return r.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return r.SurveyQuestionElementBase})),n.d(t,"SurveyQuestionCommentItem",(function(){return r.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return r.SurveyQuestionComment})),n.d(t,"SurveyQuestionCheckbox",(function(){return r.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return r.SurveyQuestionCheckboxItem})),n.d(t,"SurveyQuestionRanking",(function(){return r.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return r.SurveyQuestionRankingItem})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return r.SurveyQuestionRankingItemContent})),n.d(t,"RatingItem",(function(){return r.RatingItem})),n.d(t,"RatingItemStar",(function(){return r.RatingItemStar})),n.d(t,"RatingItemSmiley",(function(){return r.RatingItemSmiley})),n.d(t,"RatingDropdownItem",(function(){return r.RatingDropdownItem})),n.d(t,"TagboxFilterString",(function(){return r.TagboxFilterString})),n.d(t,"SurveyQuestionOptionItem",(function(){return r.SurveyQuestionOptionItem})),n.d(t,"SurveyQuestionDropdownBase",(function(){return r.SurveyQuestionDropdownBase})),n.d(t,"SurveyQuestionDropdown",(function(){return r.SurveyQuestionDropdown})),n.d(t,"SurveyQuestionTagboxItem",(function(){return r.SurveyQuestionTagboxItem})),n.d(t,"SurveyQuestionTagbox",(function(){return r.SurveyQuestionTagbox})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return r.SurveyQuestionDropdownSelect})),n.d(t,"SurveyQuestionMatrix",(function(){return r.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return r.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionMatrixCell",(function(){return r.SurveyQuestionMatrixCell})),n.d(t,"SurveyQuestionHtml",(function(){return r.SurveyQuestionHtml})),n.d(t,"SurveyQuestionFile",(function(){return r.SurveyQuestionFile})),n.d(t,"SurveyFileChooseButton",(function(){return r.SurveyFileChooseButton})),n.d(t,"SurveyFilePreview",(function(){return r.SurveyFilePreview})),n.d(t,"SurveyQuestionMultipleText",(function(){return r.SurveyQuestionMultipleText})),n.d(t,"SurveyQuestionRadiogroup",(function(){return r.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return r.SurveyQuestionRadioItem})),n.d(t,"SurveyQuestionText",(function(){return r.SurveyQuestionText})),n.d(t,"SurveyQuestionBoolean",(function(){return r.SurveyQuestionBoolean})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return r.SurveyQuestionBooleanCheckbox})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return r.SurveyQuestionBooleanRadio})),n.d(t,"SurveyQuestionEmpty",(function(){return r.SurveyQuestionEmpty})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return r.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return r.SurveyQuestionMatrixDropdownBase})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return r.SurveyQuestionMatrixDropdown})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return r.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return r.SurveyQuestionMatrixDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return r.SurveyQuestionPanelDynamic})),n.d(t,"SurveyProgress",(function(){return r.SurveyProgress})),n.d(t,"SurveyProgressButtons",(function(){return r.SurveyProgressButtons})),n.d(t,"SurveyProgressToc",(function(){return r.SurveyProgressToc})),n.d(t,"SurveyQuestionRating",(function(){return r.SurveyQuestionRating})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return r.SurveyQuestionRatingDropdown})),n.d(t,"SurveyQuestionExpression",(function(){return r.SurveyQuestionExpression})),n.d(t,"PopupSurvey",(function(){return r.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return r.SurveyWindow})),n.d(t,"ReactQuestionFactory",(function(){return r.ReactQuestionFactory})),n.d(t,"ReactElementFactory",(function(){return r.ReactElementFactory})),n.d(t,"SurveyQuestionImagePicker",(function(){return r.SurveyQuestionImagePicker})),n.d(t,"SurveyQuestionImage",(function(){return r.SurveyQuestionImage})),n.d(t,"SurveyQuestionSignaturePad",(function(){return r.SurveyQuestionSignaturePad})),n.d(t,"SurveyQuestionButtonGroup",(function(){return r.SurveyQuestionButtonGroup})),n.d(t,"SurveyQuestionCustom",(function(){return r.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return r.SurveyQuestionComposite})),n.d(t,"Popup",(function(){return r.Popup})),n.d(t,"ListItemContent",(function(){return r.ListItemContent})),n.d(t,"ListItemGroup",(function(){return r.ListItemGroup})),n.d(t,"List",(function(){return r.List})),n.d(t,"TitleActions",(function(){return r.TitleActions})),n.d(t,"TitleElement",(function(){return r.TitleElement})),n.d(t,"SurveyActionBar",(function(){return r.SurveyActionBar})),n.d(t,"LogoImage",(function(){return r.LogoImage})),n.d(t,"SurveyHeader",(function(){return r.SurveyHeader})),n.d(t,"SvgIcon",(function(){return r.SvgIcon})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return r.SurveyQuestionMatrixDynamicRemoveButton})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return r.SurveyQuestionMatrixDetailButton})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return r.SurveyQuestionMatrixDynamicDragDropIcon})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return r.SurveyQuestionPanelDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return r.SurveyQuestionPanelDynamicRemoveButton})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return r.SurveyQuestionPanelDynamicPrevButton})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return r.SurveyQuestionPanelDynamicNextButton})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return r.SurveyQuestionPanelDynamicProgressText})),n.d(t,"SurveyNavigationButton",(function(){return r.SurveyNavigationButton})),n.d(t,"QuestionErrorComponent",(function(){return r.QuestionErrorComponent})),n.d(t,"MatrixRow",(function(){return r.MatrixRow})),n.d(t,"Skeleton",(function(){return r.Skeleton})),n.d(t,"NotifierComponent",(function(){return r.NotifierComponent})),n.d(t,"ComponentsContainer",(function(){return r.ComponentsContainer})),n.d(t,"CharacterCounterComponent",(function(){return r.CharacterCounterComponent})),n.d(t,"HeaderMobile",(function(){return r.HeaderMobile})),n.d(t,"HeaderCell",(function(){return r.HeaderCell})),n.d(t,"Header",(function(){return r.Header})),n.d(t,"SurveyLocStringViewer",(function(){return r.SurveyLocStringViewer})),n.d(t,"SurveyLocStringEditor",(function(){return r.SurveyLocStringEditor})),n.d(t,"LoadingIndicatorComponent",(function(){return r.LoadingIndicatorComponent})),n.d(t,"SvgBundleComponent",(function(){return r.SvgBundleComponent}));var o=n("./src/entries/core-export.ts");n.d(t,"SurveyModel",(function(){return o.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),n.d(t,"settings",(function(){return o.settings})),n.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),n.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=n("survey-core");n.d(t,"Model",(function(){return i.SurveyModel}));var s=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.11.5","survey-react-ui")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:An},c=An,p=function(e,t){return rr(e,t,!0)},d="||",h=_n("||",!1),f="or",m=_n("or",!0),g=function(){return"or"},y="&&",v=_n("&&",!1),b="and",C=_n("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},E="<=",P=_n("<=",!1),S="lessorequal",O=_n("lessorequal",!0),T=function(){return"lessorequal"},_=">=",V=_n(">=",!1),R="greaterorequal",I=_n("greaterorequal",!0),k=function(){return"greaterorequal"},A="==",D=_n("==",!1),N="equal",M=_n("equal",!0),L=function(){return"equal"},j="=",F=_n("=",!1),B="!=",q=_n("!=",!1),H="notequal",z=_n("notequal",!0),Q=function(){return"notequal"},U="<",W=_n("<",!1),$="less",G=_n("less",!0),J=function(){return"less"},Y=">",K=_n(">",!1),X="greater",Z=_n("greater",!0),ee=function(){return"greater"},te="+",ne=_n("+",!1),re=function(){return"plus"},oe="-",ie=_n("-",!1),se=function(){return"minus"},ae="*",le=_n("*",!1),ue=function(){return"mul"},ce="/",pe=_n("/",!1),de=function(){return"div"},he="%",fe=_n("%",!1),me=function(){return"mod"},ge="^",ye=_n("^",!1),ve="power",be=_n("power",!0),Ce=function(){return"power"},we="*=",xe=_n("*=",!1),Ee="contains",Pe=_n("contains",!0),Se="contain",Oe=_n("contain",!0),Te=function(){return"contains"},_e="notcontains",Ve=_n("notcontains",!0),Re="notcontain",Ie=_n("notcontain",!0),ke=function(){return"notcontains"},Ae="anyof",De=_n("anyof",!0),Ne=function(){return"anyof"},Me="allof",Le=_n("allof",!0),je=function(){return"allof"},Fe="(",Be=_n("(",!1),qe=")",He=_n(")",!1),ze=function(e){return e},Qe=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=_n("!",!1),$e="negate",Ge=_n("negate",!0),Je=function(e){return new o.UnaryOperand(e,"negate")},Ye=function(e,t){return new o.UnaryOperand(e,t)},Ke="empty",Xe=_n("empty",!0),Ze=function(){return"empty"},et="notempty",tt=_n("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=_n("undefined",!1),it="null",st=_n("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=_n("{",!1),pt="}",dt=_n("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=_n("''",!1),yt=function(){return""},vt='""',bt=_n('""',!1),Ct="'",wt=_n("'",!1),xt=function(e){return"'"+e+"'"},Et='"',Pt=_n('"',!1),St="[",Ot=_n("[",!1),Tt="]",_t=_n("]",!1),Vt=function(e){return e},Rt=",",It=_n(",",!1),kt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},At="true",Dt=_n("true",!0),Nt=function(){return!0},Mt="false",Lt=_n("false",!0),jt=function(){return!1},Ft="0x",Bt=_n("0x",!1),qt=function(){return parseInt(Tn(),16)},Ht=/^[\-]/,zt=Vn(["-"],!1,!1),Qt=function(e,t){return null==e?t:-t},Ut=".",Wt=_n(".",!1),$t=function(){return parseFloat(Tn())},Gt=function(){return parseInt(Tn(),10)},Jt="0",Yt=_n("0",!1),Kt=function(){return 0},Xt=function(e){return e.join("")},Zt="\\'",en=_n("\\'",!1),tn=function(){return"'"},nn='\\"',rn=_n('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=Vn(['"',"'"],!0,!1),ln=function(){return Tn()},un=/^[^{}]/,cn=Vn(["{","}"],!0,!1),pn=/^[0-9]/,dn=Vn([["0","9"]],!1,!1),hn=/^[1-9]/,fn=Vn([["1","9"]],!1,!1),mn=/^[a-zA-Z_]/,gn=Vn([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=Vn([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],En=0,Pn=[],Sn=0,On={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function Tn(){return e.substring(wn,Cn)}function _n(e,t){return{type:"literal",text:e,ignoreCase:t}}function Vn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function kn(e){Cn<En||(Cn>En&&(En=Cn,Pn=[]),Pn.push(e))}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Nn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Dn())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Dn(){var t,n,r=34*Cn+1,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Sn&&kn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Sn&&kn(m))),n!==l&&(wn=t,n=g()),t=n,On[r]={nextPos:Cn,result:t},t)}function Nn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Mn(){var t,n,r=34*Cn+3,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Sn&&kn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Sn&&kn(C))),n!==l&&(wn=t,n=w()),t=n,On[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function jn(){var t,n,r=34*Cn+5,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===E?(n=E,Cn+=2):(n=l,0===Sn&&kn(P)),n===l&&(e.substr(Cn,11).toLowerCase()===S?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(O))),n!==l&&(wn=t,n=T()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===_?(n=_,Cn+=2):(n=l,0===Sn&&kn(V)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Sn&&kn(I))),n!==l&&(wn=t,n=k()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===A?(n=A,Cn+=2):(n=l,0===Sn&&kn(D)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=j,Cn++):(n=l,0===Sn&&kn(F)),n===l&&(e.substr(Cn,5).toLowerCase()===N?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Sn&&kn(q)),n===l&&(e.substr(Cn,8).toLowerCase()===H?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(z))),n!==l&&(wn=t,n=Q()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Sn&&kn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===$?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(G))),n!==l&&(wn=t,n=J()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=Y,Cn++):(n=l,0===Sn&&kn(K)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Z))),n!==l&&(wn=t,n=ee()),t=n)))))),On[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Sn&&kn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Sn&&kn(ie)),n!==l&&(wn=t,n=se()),t=n),On[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+9,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Sn&&kn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Sn&&kn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Sn&&kn(fe)),n!==l&&(wn=t,n=me()),t=n)),On[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+11,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=ge,Cn++):(n=l,0===Sn&&kn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(be))),n!==l&&(wn=t,n=Ce()),t=n,On[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=On[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=$n())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=$n())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return On[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Sn&&kn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Ee?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(Pe)),n===l&&(e.substr(Cn,7).toLowerCase()===Se?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&kn(Oe)))),n!==l&&(wn=t,n=Te()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===_e?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&kn(Ve)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Sn&&kn(Ie))),n!==l&&(wn=t,n=ke()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ae?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(De)),n!==l&&(wn=t,n=Ne()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Me?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Le)),n!==l&&(wn=t,n=je()),t=n))),On[r]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+14,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Fe,Cn++):(n=l,0===Sn&&kn(Be)),n!==l&&nr()!==l&&(r=An())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=qe,Cn++):(o=l,0===Sn&&kn(He)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=On[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Zn())!==l?(40===e.charCodeAt(Cn)?(r=Fe,Cn++):(r=l,0===Sn&&kn(Be)),r!==l&&(o=Jn())!==l?(41===e.charCodeAt(Cn)?(i=qe,Cn++):(i=l,0===Sn&&kn(He)),i===l&&(i=null),i!==l?(wn=t,t=n=Qe(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),On[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Sn&&kn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===$e?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Sn&&kn(Ge))),n!==l&&nr()!==l&&(r=An())!==l?(wn=t,t=n=Je(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=Gn())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ke?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Xe)),n!==l&&(wn=t,n=Ze()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&kn(tt)),n!==l&&(wn=t,n=nt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ye(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=Gn())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=St,Cn++):(n=l,0===Sn&&kn(Ot)),n!==l&&(r=Jn())!==l?(93===e.charCodeAt(Cn)?(o=Tt,Cn++):(o=l,0===Sn&&kn(_t)),o!==l?(wn=t,t=n=Vt(r)):(Cn=t,t=l)):(Cn=t,t=l),On[i]={nextPos:Cn,result:t},t)}()))),On[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+18,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Sn&&kn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Sn&&kn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=On[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===At?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&kn(Dt)),n!==l&&(wn=t,n=Nt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Mt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&kn(Lt)),n!==l&&(wn=t,n=jt()),t=n),On[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===Ft?(n=Ft,Cn+=2):(n=l,0===Sn&&kn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=qt()):(Cn=t,t=l),t===l&&(t=Cn,Ht.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=On[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Sn&&kn(Wt)),r!==l&&er()!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(fn));else t=l;return On[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Jt,Cn++):(n=l,0===Sn&&kn(Yt)),n!==l&&(wn=t,n=Kt()),t=n)),On[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Qt(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),On[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Zn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===mt?(n=mt,Cn+=2):(n=l,0===Sn&&kn(gt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Sn&&kn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Sn&&kn(wt)),n!==l&&(r=Yn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Sn&&kn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Et,Cn++):(n=l,0===Sn&&kn(Pt)),n!==l&&(r=Yn())!==l?(34===e.charCodeAt(Cn)?(o=Et,Cn++):(o=l,0===Sn&&kn(Pt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),On[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Sn&&kn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Sn&&kn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),On[i]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=On[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=An())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Sn&&kn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=kt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return On[c]={nextPos:Cn,result:t},t}function Yn(){var e,t,n,r=34*Cn+26,o=On[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Kn())!==l)for(;n!==l;)t.push(n),n=Kn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,On[r]={nextPos:Cn,result:e},e}function Kn(){var t,n,r=34*Cn+27,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Zt?(n=Zt,Cn+=2):(n=l,0===Sn&&kn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Sn&&kn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(an)),n!==l&&(wn=t,n=ln()),t=n)),On[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=On[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(cn)),n!==l&&(wn=t,n=ln()),t=n,On[r]={nextPos:Cn,result:t},t)}function Zn(){var e,t,n,r,o,i,s=34*Cn+29,a=On[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return On[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(dn));else t=l;return On[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=On[r];if(o)return Cn=o.nextPos,o.result;if(t=[],mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn)),n!==l)for(;n!==l;)t.push(n),mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(gn));else t=l;return On[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=On[r];if(o)return Cn=o.nextPos,o.result;for(Sn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&kn(bn));return Sn--,t===l&&(n=l,0===Sn&&kn(yn)),On[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&kn({type:"end"}),r=Pn,i=En<e.length?e.charAt(En):null,a=En<e.length?In(En,En+1):In(En,En),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return m})),n.d(t,"OperandMaker",(function(){return g}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=g.unaryFunctions[n],null==r.consumer&&g.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]&&(e.length<2||"."!==e[1]&&","!==e[1])?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n,r){return!e.binaryFunctions.equal(t,n,r)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return a})),n.d(t,"registerFunction",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=n("./src/console-warnings.ts"),s=n("./src/conditions.ts"),a=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n,r){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return i.ConsoleWarnings.warn("Unknown function name: "+e),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(t,r)},e.Instance=new e,e}(),l=a.Instance.register;function u(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)u(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function c(e){var t=[];u(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function p(e,t){var n=[];u(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function d(e,t,n,o,i,s){return!e||r.Helpers.isValueEmpty(e[t])||s&&!s.run(e)?n:o(n,i?"string"==typeof(a=e[t])?r.Helpers.isNumber(a)?r.Helpers.getNumber(a):void 0:a:1);var a}function h(e,t,n,r){void 0===r&&(r=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var n=e[0];if(!n)return null;if(!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;var r=e[1];if("string"!=typeof r&&!(r instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"==typeof o||o instanceof String||(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:n,name:r,expression:o}}(e,t);if(o){var i=o.expression?new s.ConditionRunner(o.expression):void 0;i&&i.isAsync&&(i=void 0);var a=void 0;if(Array.isArray(o.data))for(var l=0;l<o.data.length;l++)a=d(o.data[l],o.name,a,n,r,i);else for(var u in o.data)a=d(o.data[u],o.name,a,n,r,i);return a}}function f(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==n?n:0}function m(e,t){var n=h(e,t,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==n?n:0}function g(e,t,n){if("days"===n)return b([e,t]);var r=e?new Date(e):new Date,o=t?new Date(t):new Date;n=n||"years";var i=12*(o.getFullYear()-r.getFullYear())+o.getMonth()-r.getMonth();return o.getDate()<r.getDate()&&(i-=1),"months"===n?i:~~(i/12)}function y(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function v(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function b(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}function C(e){var t=v(void 0);return e&&e[0]&&(t=new Date(e[0])),t}function w(e,t){if(e&&t){for(var n=["row","panel","survey"],r=0;r<n.length;r++){var o=e[n[r]];if(o&&o.getQuestionByName){var i=o.getQuestionByName(t);if(i)return i}}return null}}a.Instance.register("sum",c),a.Instance.register("min",(function(e){return p(e,!0)})),a.Instance.register("max",(function(e){return p(e,!1)})),a.Instance.register("count",(function(e){var t=[];return u(e,t),t.length})),a.Instance.register("avg",(function(e){var t=[];u(e,t);var n=c(e);return t.length>0?n/t.length:0})),a.Instance.register("sumInArray",f),a.Instance.register("minInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),a.Instance.register("maxInArray",(function(e,t){return h(e,t,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),a.Instance.register("countInArray",m),a.Instance.register("avgInArray",(function(e,t){var n=m(e,t);return 0==n?0:f(e,t)/n})),a.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),a.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),a.Instance.register("age",(function(e){return!Array.isArray(e)||e.length<1||!e[0]?null:g(e[0],void 0,(e.length>1?e[1]:"")||"years")})),a.Instance.register("dateDiff",(function(e){return!Array.isArray(e)||e.length<2||!e[0]||!e[1]?null:g(e[0],e[1],(e.length>2?e[2]:"")||"days")})),a.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!y(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return y(n)})),a.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),a.Instance.register("currentDate",(function(){return new Date})),a.Instance.register("today",v),a.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),a.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),a.Instance.register("diffDays",b),a.Instance.register("year",(function(e){return C(e).getFullYear()})),a.Instance.register("month",(function(e){return C(e).getMonth()+1})),a.Instance.register("day",(function(e){return C(e).getDate()})),a.Instance.register("weekday",(function(e){return C(e).getDay()})),a.Instance.register("displayValue",(function(e){var t=w(this,e[0]);return t?t.displayValue:""})),a.Instance.register("propertyValue",(function(e){if(2===e.length&&e[0]&&e[1]){var t=w(this,e[0]);return t?t[e[1]]:void 0}})),a.Instance.register("substring",(function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var n=e[1];if(!r.Helpers.isNumber(n))return"";var o=e.length>2?e[2]:void 0;return r.Helpers.isNumber(o)?t.substring(n,o):t.substring(n)}))},"./src/global_variables_utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DomWindowHelper",(function(){return r})),n.d(t,"DomDocumentHelper",(function(){return o}));var r=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}()},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),r=t.split("."),o=n.length,i=r.length,s=0;s<o&&s<i;s++){var a=n[s],l=r[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return m})),n.d(t,"JsonMetadata",(function(){return g})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonRequiredArrayPropertyError",(function(){return E})),n.d(t,"JsonIncorrectPropertyValueError",(function(){return P})),n.d(t,"JsonObject",(function(){return S})),n.d(t,"Serializer",(function(){return O}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);if(!r){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),r=e.createLocalizableString(n,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback)}}function c(e){return void 0===e&&(e={}),function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&O.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){var n=this.getDefaultValue(e);return s.Helpers.isValueEmpty(n)?this.isLocalizable?null==t:!1===t&&("boolean"==this.type||"switch"==this.type)||""===t||s.Helpers.isValueEmpty(t):s.Helpers.isTwoValueEquals(t,n,!1,!0,!1)},e.prototype.getSerializableValue=function(e){return this.onSerializeValue?this.onSerializeValue(e):this.getValue(e)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&O.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?O.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||s.Helpers.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.defaultValue;var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(O.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=O.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?O.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!O.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=O.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=O.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),r=O.findProperty(n.getType(),t);if(r)return this.getObjPropertyValueCore(n,r)}var o=O.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new m(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e),o=r.length-1;o>=0;o--)this.findProperty(t,r[o].name)&&r.splice(o,1);return 0===r.length?n:[].concat(n).concat(r)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var r=this;n.forEach((function(n){r.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&r.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&r.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)}))},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,r){var o={configurable:!0,get:function(){return t[n]}};r||(o.set=function(e){t[n]=e}),Object.defineProperty(e,n,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var r=t+"-"+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<o.length;u++){var c=o[u];!i[c.name]&&n.indexOf(c.name)<0&&l.push(c)}return this.dynamicPropsCache[r]=l,l},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=O.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&O.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=new Array;return e.forEach((function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)})),t},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+t+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.baseClassName=t,o.type=n,o.message=r,o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),E=function(e){function t(t,n){var r=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(e){function t(t,n){var r=e.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+t.name+"'.")||this;return r.property=t,r.value=n,r}return a(t,e),t}(y),S=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)},e.prototype.toObjectCore=function(t,n,r){if(t){var o=null,i=void 0,s=!0;if(n.getType&&(i=n.getType(),o=O.getProperties(i),s=!!i&&!O.isDescendantOf(i,"itemvalue")),o){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(t),o=this.addDynamicProperties(n,t,o),this.options=r,t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var l=this.findProperty(o,a);l?this.valueToObj(t[a],n,l,t,r):s&&this.addNewError(new v(a.toString(),i),t,n)}else n[a]=t[a];this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType()));var i=!0===r;return r&&!0!==r||(r={}),i&&(r.storeDefaults=i),this.propertiesToJson(t,O.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return O.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){var r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}var o=this.getDynamicProperties(e);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.propertiesToJson=function(e,t,n,r){for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){r||(r={}),!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r)},e.prototype.valueToJsonCore=function(e,t,n,r){var o=n.getSerializedProperty(e,r.version);if(o&&o!==n)this.valueToJsonCore(e,t,o,r);else{var i=n.getSerializableValue(e);if(r.storeDefaults||!n.isDefaultValueByObj(e,i)){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],n,r));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,n,r);if(null!=i){var l=n.getSerializedName(r.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(r.storeDefaults&&u||!n.isDefaultValueByObj(e,i))&&(O.onSerializingProperty&&O.onSerializingProperty(e,n,i,t)||(t[l]=this.removePosOnValueToJson(n,i)))}}}},e.prototype.valueToObj=function(e,t,n,r,o){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else{if(n.isArray&&!Array.isArray(e)&&e){e=[e];var i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new E(i,t.getType()),r||e,t)}if(this.isValueArray(e))this.valueToArray(e,t,n.name,n,o);else{var s=this.createNewObj(e,n);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),s.error||(null!=n?(n.setValue(t,e,this),o&&o.validatePropertyValues&&(n.validateValue(e)||this.addNewError(new P(n,e),r,t))):t[n.name]=e)}}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if("object"==typeof t)for(var r in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[r])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(e,t){var n={newObj:null,error:null},r=this.getClassNameForNewObj(e,t);return n.newObj=r?O.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var n=O.findClass(e.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var i=r[o];if(s.Helpers.isValueEmpty(i.defaultValue)&&!t[i.name])return new x(i.name,e.getType())}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r,o){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r,o),t[n]||(t[n]=i)}},e.prototype.addValuesIntoArray=function(e,t,n,r){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,r)):i.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),O=S.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s){var l=e.call(this)||this;if(l.onSelectionChanged=r,l.allowSelection=o,l.elementId=s,l.onItemClick=function(e){if(!l.isItemDisabled(e)){l.isExpanded=!1,l.allowSelection&&(l.selectedItem=e),l.onSelectionChanged&&l.onSelectionChanged(e);var t=e.action;t&&t(e)}},l.onItemHover=function(e){l.mouseOverHandler(e)},l.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},l.isItemSelected=function(e){return l.areSameItems(l.selectedItem,e)},l.isItemFocused=function(e){return l.areSameItems(l.focusedItem,e)},l.getListClass=function(){return(new a.CssClassBuilder).append(l.cssClasses.itemsContainer).append(l.cssClasses.itemsContainerFiltering,!!l.filterString&&l.visibleActions.length!==l.visibleItems.length).toString()},l.getItemClass=function(e){return(new a.CssClassBuilder).append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!e.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(e)).append(l.cssClasses.itemFocused,l.isItemFocused(e)).append(l.cssClasses.itemSelected,l.isItemSelected(e)).append(l.cssClasses.itemGroup,e.hasSubItems).append(l.cssClasses.itemHovered,e.isHovered).append(l.cssClasses.itemTextWrap,l.textWrapEnabled).append(e.css).toString()},l.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},-1!==Object.keys(n).indexOf("items")){var u=n;Object.keys(u).forEach((function(e){switch(e){case"items":l.setItems(u.items);break;case"onFilterStringChangedCallback":l.setOnFilterStringChangedCallback(u.onFilterStringChangedCallback);break;case"onTextSearchCallback":l.setOnTextSearchCallback(u.onTextSearchCallback);break;default:l[e]=u[e]}}))}else l.setItems(n),l.selectedItem=i;return l}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var r=n.toLocaleLowerCase();return(r=c.settings.comparator.normalizeTextCallback(r,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return t.forEach((function(e){n.push(e),e.items&&e.items.forEach((function(t){var r=new s.Action(t);r.iconName||(r.iconName=e.iconName),n.push(r)}))})),n}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener((function(){e.hidePopup()}))},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return u})),n.d(t,"LocalizableStrings",(function(){return c}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=n("./src/jsonobject.ts"),l=n("./src/survey-element.ts"),u=function(){function e(e,t,n){var r;void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this._allowLineBreaks=!1,this.onStringChanged=new s.EventBase,e instanceof l.SurveyElementCore&&(this._allowLineBreaks="text"==(null===(r=a.Serializer.findProperty(e.getType(),n))||void 0===r?void 0:r.type)),this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){return this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(o.surveyLocalization.defaultLocale)),this.isValueEmpty(t)){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return this.getLocaleTextCore(e)||""},e.prototype.getLocaleTextCore=function(e){return e||(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||!this.isLocaleTextEqualsWithDefault(e,t)){if(i.settings.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,r)}}else{if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&!this.isValueEmpty(a)&&(this.setValue(s,t),this.fireStrChanged(s,a))}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length)return null;if(1==e.length&&e[0]==i.settings.localization.defaultLocaleName&&!i.settings.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var t={};for(var n in this.values)t[n]=this.values[n];return t},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},null!=e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return this.setHtmlValue(e,""),!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),c=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"}},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return u})),n.d(t,"createDialogOptions",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/console-warnings.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},u=function(e){function t(t,n,r,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=n,r&&"string"==typeof r)i.verticalPosition=r,i.horizontalPosition=o;else if(r){var s=r;for(var a in s)i[a]=s[a]}return i}return a(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},l([Object(i.property)()],t.prototype,"contentComponentName",void 0),l([Object(i.property)()],t.prototype,"contentComponentData",void 0),l([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),l([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"showPointer",void 0),l([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"canShrink",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),l([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),l([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),l([Object(i.property)({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),l([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),l([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function c(e,t,n,r,o,i,a,l,u){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===u&&(u="popup"),s.ConsoleWarnings.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:a,title:l,displayMode:u}}},"./src/react/boolean-checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=n("./src/react/components/title/title-actions.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return l(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?o.createElement(o.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):o.createElement(o.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBoolean",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!e.question.swapOrder)}},o.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/action-bar/action-bar-item.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.viewModel=new s.ActionDropdownViewModel(n.item),n}return c(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel,getTarget:s.getActionDropdownButtonTarget}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyAction",(function(){return d})),n.d(t,"SurveyActionBarItem",(function(){return h}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/action-bar/action-bar-separator.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,n=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),this.item,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarSeparator",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBar",(function(){return d}));var r=n("react"),o=n.n(r),i=n("./src/react/element-factory.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/action-bar/action-bar-item.tsx"),l=n("./src/react/components/action-bar/action-bar-item-dropdown.tsx");n.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=n("./src/react/components/action-bar/action-bar-separator.tsx");n.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t,(function(e){setTimeout(e)}))}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(t,n){if(e.prototype.componentDidUpdate.call(this,t,n),t.model!=this.props.model&&this.model.hasActions){this.model.resetResponsivityManager();var r=this.rootRef.current;r&&this.model.initResponsivityManager(r,(function(e){setTimeout(e)}))}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"BrandInfo",(function(){return a}));var r,o=n("react"),i=n.n(o),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounterComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentsContainer",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/file/file-choose-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFileChooseButton",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactSurvey.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return Object(s.attachKey2click)(i.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(t){return e.question.chooseFile(t.nativeEvent)}},this.question.cssClasses.chooseFileIconId?i.a.createElement(l.SvgIcon,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,i.a.createElement("span",null,this.question.chooseButtonText)))},t}(a.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("sv-file-choose-btn",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/file/file-preview.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFilePreview",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?i.a.createElement("div",{className:e},i.a.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.question.previewValue.map((function(t,n){return t?i.a.createElement("span",{key:e.question.inputId+"_"+n,className:e.question.cssClasses.previewItem,onClick:function(t){return e.question.doDownloadFileFromContainer(t)},style:{display:e.question.isPreviewVisible(n)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),i.a.createElement("div",{className:e.question.getImageWrapperCss(t)},e.question.canPreviewImage(t)?i.a.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?i.a.createElement(a.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?i.a.createElement("div",{className:e.question.getRemoveButtonCss(),onClick:function(n){return e.question.doRemoveFile(t,n)}},i.a.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?i.a.createElement(a.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return i.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(s.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("sv-file-preview",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"HeaderMobile",(function(){return c})),n.d(t,"HeaderCell",(function(){return p})),n.d(t,"Header",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(l.TitleElement,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},s.SurveyElementBase.renderLocString(this.model.survey.locDescription))):null)},t}(i.a.Component),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(e,{data:t})},t.prototype.render=function(){return i.a.createElement("div",{className:this.model.css,style:this.model.style},i.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?i.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?i.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement(l.TitleElement,{element:this.model.survey})):null,this.model.showDescription?i.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},i.a.createElement("div",{className:this.model.survey.css.description},s.SurveyElementBase.renderLocString(this.model.survey.locDescription))):null))},t}(i.a.Component),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var e;return e=this.props.survey.isMobile?i.a.createElement(c,{model:this.model}):i.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(e,t){return i.a.createElement(p,{key:t,model:e})}))),i.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?i.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-header",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/list/list-item-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItemContent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=[],t=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=i.a.createElement(l.SvgIcon,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});e.push(n),e.push(i.a.createElement("span",{key:"text"},t))}else e.push(t);return this.item.markerIconName&&(n=i.a.createElement(l.SvgIcon,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize}),e.push(n)),i.a.createElement(i.a.Fragment,null,e)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item-content",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list-item-group.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItemGroup",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var t=s.ReactElementFactory.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:null===(e=this.item)||void 0===e?void 0:e.popupModel}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item-group",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=this.item.component||"sv-list-item-content",o=s.ReactElementFactory.Instance.createElement(r,{item:this.item,key:this.item.id,model:this.model}),a=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(t){e.model.onItemHover(e.item)},onMouseLeave:function(t){e.model.onItemLeave(e.item)}},o),u=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,c={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:n,role:"option",style:c,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},u,a),this.item)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/list/list.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"List",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/list/list-item.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=s.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/loading-indicator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LoadingIndicatorComponent",(function(){return a}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return o.createElement("div",{className:"sd-loading-indicator"},o.createElement(i.SvgIcon,{iconName:"icon-loading",size:"auto"}))},t}(o.Component)},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRow",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.root=i.a.createRef(),n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.model!==this.model&&(t.element&&t.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},t.prototype.render=function(){var e=this,t=this.model;return t.visible?i.a.createElement("tr",{ref:this.root,className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"NotifierComponent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText);return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h})),n.d(t,"PopupContainer",(function(){return f})),n.d(t,"PopupDropdownContainer",(function(){return m})),n.d(t,"showModal",(function(){return g})),n.d(t,"showDialog",(function(){return y}));var r,o=n("react-dom"),i=n.n(o),s=n("react"),a=n.n(s),l=n("survey-core"),u=n("./src/react/element-factory.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=n("./src/react/components/action-bar/action-bar.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=a.a.createRef(),n.createModel(),n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e,this.props.getTarget?this.props.getTarget(e):void 0,this.props.getArea?this.props.getArea(e):void 0)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?a.a.createElement(f,{model:this.popup}):a.a.createElement(m,{model:this.popup}),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},n,a.a.createElement("div",{className:"sv-popup__body-content"},r,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function g(e,t,n,r,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,n,r,void 0,void 0,o,i,s))}function y(e,t){var n=Object(l.createPopupModalViewModel)(e,t);return n.onVisibilityChanged.add((function(e,t){t.isVisible||(i.a.unmountComponentAtNode(n.container),n.dispose())})),i.a.render(a.a.createElement(f,{model:n}),n.container),n.model.isVisible=!0,n}l.settings.showModal=g,l.settings.showDialog=y},"./src/react/components/question-error.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionErrorComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/string-viewer.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return i.a.createElement("div",null,i.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),i.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},i.a.createElement(a.SurveyLocStringViewer,{locStr:this.props.error.locText})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-question-error",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/rating/rating-dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingDropdownItem",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,t=this.renderDescription(e);return i.a.createElement("div",{className:"sd-rating-dropdown-item"},i.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),t)},t.prototype.renderDescription=function(e){return e.description?i.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-dropdown-item",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemSmiley",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(a.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemStar",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement(a.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(a.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemBase",(function(){return u})),n.d(t,"RatingItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(a.SurveyElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),i.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(u);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/skeleton.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Skeleton",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LogoImage",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=i.a.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleActions",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/title/title-content.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleContent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))}return e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp"))),r.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e,t))),r},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleElement",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/title/title-actions.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),r=void 0;e.hasTitleEvents&&(r=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:r},n)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyCustomWidget",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/components/popup/popup.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.chevronPointerDown=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.chevronPointerDown(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return o.createElement("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var i=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=o.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass()},i,this.renderReadOnlyElement())}else r=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return o.createElement("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!!e.filterReadOnly||void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?o.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},o.createElement(a.SvgIcon,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionOptionItem",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return s(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_dropdown.tsx"),l=n("./src/react/dropdown-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactElementFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementHeader",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/action-bar/action-bar.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(l.TitleElement,{element:e}):null,n=e.hasDescriptionUnderTitle?u.SurveyElementBase.renderQuestionDescription(this.element):null,r=e.hasAdditionalTitleToolbar?i.a.createElement(a.SurveyActionBar,{model:e.additionalTitleToolbar}):null,o={width:void 0};return e instanceof s.Question&&(o.width=e.titleWidth),i.a.createElement("div",{className:e.cssHeader,onClick:function(t){return e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent)},style:o},t,n,r)},t}(i.a.Component)},"./src/react/element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRowElement",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.element.cssClasses,n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.element!==this.element&&(t.element&&t.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},t.prototype.renderElement=function(){var e=this.element,t=this.createElement(e,this.index),n=e.cssClassesValue;return o.createElement("div",{className:n.questionWrapper,style:e.rootStyle,"data-key":t.key,key:t.key,onFocus:function(){var t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},this.row.isNeedRender?t:s.ReactElementFactory.Instance.createElement(e.skeletonComponentName,{element:e,css:this.css}))},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/flow-panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFlowPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/element-factory.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(a.SurveyQuestion,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImagePicker",(function(){return c})),n.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,s=n.isItemSelected(t),a=n.getItemClass(t),u=null;n.showLabel&&(u=o.createElement("span",{className:n.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:r.itemNoImage,style:d},r.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPage",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel-base.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=n("./src/react/reactquestion.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),r=o.createElement(l.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanelBase",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/row.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.activePage&&t.page.id===this.survey.activePage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var t=this;return this.panelBase.visibleRows.map((function(n){return t.createRow(n,e)}))},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanel",(function(){return f}));var r,o=n("react"),i=n("./src/react/reactquestion.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/panel-base.tsx"),u=n("./src/react/reactsurveymodel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/title/title-element.tsx"),d=n("./src/react/element-header.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},s=null;if(this.panel.renderedIsExpanded){var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(r,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/progress.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgress",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/progressButtons.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtons",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.listContainerRef=o.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?o.createElement("div",{className:this.css.progressButtonsHeader},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?o.createElement("div",{className:this.css.progressButtonsFooter},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this,r=l.SurveyElementBase.renderLocString(e.locNavigationTitle);return o.createElement("li",{key:"listelement"+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?function(){return n.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},o.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?o.createElement(o.Fragment,null,o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},r),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,o.createElement("div",{className:this.css.progressButtonsButton},o.createElement("div",{className:this.css.progressButtonsButtonBackground}),o.createElement("div",{className:this.css.progressButtonsButtonContent}),o.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),setTimeout((function(){t.respManager=new i.ProgressButtonsResponsivityManager(t.model,t.listContainerRef.current,t)}),10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(c,e)}))},"./src/react/progressToc.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressToc",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactSurveyNavigationBase.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/list/list.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e,t=this.props.model;return e=t.isMobile?o.createElement("div",{onClick:t.togglePopup},o.createElement(u.SvgIcon,{iconName:t.icon,size:24}),o.createElement(l.Popup,{model:t.popupModel})):o.createElement(a.List,{model:t.listModel}),o.createElement("div",{className:t.containerCss},e)},t}(i.SurveyNavigationBase);s.ReactElementFactory.Instance.registerElement("sv-navigation-toc",(function(e){return o.createElement(p,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRatingDropdown",(function(){return c}));var r=n("react"),o=n("survey-core"),i=n("./src/react/dropdown-base.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/rating/rating-dropdown-item.tsx");n.d(t,"RatingDropdownItem",(function(){return a.RatingDropdownItem}));var l,u=(l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return r.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(i.SurveyQuestionDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return r.createElement(c,e)})),o.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurvey",(function(){return u})),n.d(t,"SurveyWindow",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurvey.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,t=this.renderWindowHeader(),n=this.renderBody(),r={};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r,onScroll:function(){return e.popup.onScroll()}},o.createElement("div",{className:this.popup.cssRootContent},t,n))},t.prototype.renderWindowHeader=function(){var e,t=this.popup,n=(t.cssHeaderRoot,null),r=null,i=null;return t.isCollapsed?(t.cssRootCollapsedMod,n=this.renderTitleCollapsed(t),e=this.renderExpandIcon()):e=this.renderCollapseIcon(),t.allowClose&&(r=this.renderCloseButton(this.popup)),t.allowFullScreen&&(i=this.renderAllowFullScreenButon(this.popup)),o.createElement("div",{className:t.cssHeaderRoot},n,o.createElement("div",{className:t.cssHeaderButtonsContainer},i,o.createElement("div",{className:t.cssHeaderCollapseButton,onClick:this.handleOnExpanded},e),r))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?o.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return o.createElement(a.SvgIcon,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return o.createElement(a.SvgIcon,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){return o.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide()}},o.createElement(a.SvgIcon,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var t;return t=e.isFullScreen?o.createElement(a.SvgIcon,{iconName:"icon-back-to-panel_16x16",size:16}):o.createElement(a.SvgIcon,{iconName:"icon-full-screen_16x16",size:16}),o.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},t)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new i.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.allowFullScreen=t.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(s.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/react/reactSurvey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",(function(){return y})),n.d(t,"attachKey2click",(function(){return v}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/page.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/survey-header/survey-header.tsx"),u=n("./src/react/reactquestion_factory.tsx"),c=n("./src/react/element-factory.tsx"),p=n("./src/react/components/brand-info.tsx"),d=n("./src/react/components/notifier.tsx"),h=n("./src/react/components/components-container.tsx"),f=n("./src/react/svgbundle.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return m(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"empty"==this.survey.state?this.renderEmptySurvey():this.renderSurvey();var t=this.survey.backgroundImage?o.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?o.createElement(l.SurveyHeader,{survey:this.survey}):null,r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var i=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+i:i;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?o.createElement(f.SvgBundleComponent,null):null,o.createElement("div",{className:this.survey.wrapperFormCss},t,o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},n,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(p.BrandInfo,null):null,o.createElement(d.NotifierComponent,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),o.createElement(h.ComponentsContainer,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{className:"sv-components-column sv-components-column--expandable"},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"center"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(h.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(h.ComponentsContainer,{survey:this.survey,container:"contentBottom"}))),o.createElement(h.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return u.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n,r){return c.ReactElementFactory.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasses:n,element:r})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function v(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=g({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}c.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(y,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationBase",(function(){return s}));var r,o=n("react"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactquestion.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestion",(function(){return d})),n.d(t,"SurveyElementErrors",(function(){return h})),n.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return f})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return m})),n.d(t,"SurveyQuestionErrorCell",(function(){return g}));var r,o=n("react"),i=n("./src/react/reactsurveymodel.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_comment.tsx"),u=n("./src/react/custom-widget.tsx"),c=n("./src/react/element-header.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return p(t,e),t.renderQuestionBody=function(e,t){return t.customWidget?o.createElement(u.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.renderedIsExpanded?"":"none"},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=i.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=i.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return a.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=a.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(l.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(c.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(h,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(d,e)}));var h=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n}return p(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses,this.element))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(a.ReactSurveyElement),f=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return o.createElement(o.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return d.renderQuestionBody(this.creator,this.question)},t}(a.ReactSurveyElement),m=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return p(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return o.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.props.cell;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:function(){t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=i.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(f),g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return p(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.registerCallback=function(e){var t=this;e.registerFunctionOnPropertyValueChanged("errors",(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertyValueChanged("errors","__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return o.createElement(h,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(o.Component)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionButtonGroup",(function(){return c})),n.d(t,"SurveyButtonGroupItem",(function(){return p}));var r,o=n("./src/react/reactquestion_element.tsx"),i=n("react"),s=n.n(i),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("survey-core"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return s.a.createElement(p,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCheckbox",(function(){return p})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem("item_h"+n,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,o){return t.renderItem("item"+o,n,0===r&&0===o,e,""+r+o)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i="item"+r,s=this.renderItem(i,o,0==r,e,""+r);s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:n}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=this.question.getItemClass(this.item),i=this.question.getLabelClass(this.item),s=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation"},o.createElement("label",{className:i},o.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionComment",(function(){return c})),n.d(t,"SurveyQuestionCommentItem",(function(){return p})),n.d(t,"SurveyQuestionOtherValueItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("survey-core"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/character-counter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(l.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:n,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var n=t.target.value;e.question.updateRemainingCharacterCounter(n)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage,style:{resize:this.question.resizeStyle}}),r)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={comment:n.getComment()||""},n}return u(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.control){var e=this.control,t=this.getComment()||"";s.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=t)}},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.setComment=function(e){this.props.question.comment=e},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.renderedCommentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,n=this.props.otherCss||this.cssClasses.comment;if(t.isReadOnlyRenderDiv()){var r=this.getComment()||"";return o.createElement("div",null,r)}return o.createElement("textarea",{id:this.getId(),className:n,ref:function(t){return e.setControl(t)},disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),rows:t.commentAreaRows,placeholder:this.getPlaceholder(),onBlur:function(t){e.onCommentChange(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired||t.a11y_input_ariaRequired,"aria-label":t.ariaLabel||t.a11y_input_ariaLabel,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.setComment=function(e){this.props.question.otherValue=e},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(p);a.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCustom",(function(){return c})),n.d(t,"SurveyQuestionComposite",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/panel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementBase",(function(){return u})),n.d(t,"ReactSurveyElement",(function(){return c})),n.d(t,"SurveyQuestionElementBase",(function(){return p})),n.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n}return l(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact(),this.getStateElements().forEach((function(e){e.afterRerender()}))},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRenderedEvent(),this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].disableOnElementRenderedEvent(),this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))})}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();i.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionEmpty",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionExpression",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactQuestionFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionFile",(function(){return h}));var r,o=n("react"),i=n("./src/react/components/action-bar/action-bar.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_factory.tsx"),u=n("./src/react/components/loading-indicator.tsx"),c=n("./src/react/components/action-bar/action-bar-item.tsx"),p=n("./src/entries/react-ui-model.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){return e.call(this,t)||this}return d(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.question.allowShowPreview?this.renderPreview():null,r=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,s=this.question.isPlayingVideo?this.renderVideo():null,a=this.question.showFileDecorator?this.renderFileDecorator():null,l=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,u=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,c=this.question.fileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.fileNavigator}):null;return e=this.question.isReadOnlyAttr?o.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?o.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):null,o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},a,r,s,l,n,u,c))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,t=this.question.actionsContainerVisible?o.createElement(i.SurveyActionBar,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t,n))},t.prototype.renderChooseButton=function(){return o.createElement(p.SurveyFileChooseButton,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return p.ReactElementFactory.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(u.LoadingIndicatorComponent,null))},t.prototype.renderVideo=function(){return o.createElement("div",{className:this.question.cssClasses.videoContainer},o.createElement(c.SurveyAction,{item:this.question.changeCameraAction}),o.createElement(c.SurveyAction,{item:this.question.closeCameraAction}),o.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),o.createElement(c.SurveyAction,{item:this.question.takePictureAction}))},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(h,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionHtml",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrix",(function(){return c})),n.d(t,"SurveyQuestionMatrixRow",(function(){return p})),n.d(t,"SurveyQuestionMatrixCell",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var c=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,c.push(o.createElement(p,{key:a,question:this.question,cssClasses:t,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,c))))},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElement=function(){return this.row?this.row.item:e.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=this.question.cellComponent,i=function(){var i=null,u=s.question.visibleColumns[a],c="value"+a,p=s.question.getItemClass(n,u);if(s.question.hasCellText){var d=function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:c,className:p,onClick:d?d(u):function(){}},s.renderLocString(s.question.getCellDisplayLocText(n.name,u)))}else{var h=l.ReactElementFactory.Instance.createElement(r,{question:s.question,row:s.row,column:u,columnIndex:a,cssClasses:s.cssClasses,cellChanged:function(){e.cellClick(e.row,u)}});i=o.createElement("td",{key:c,"data-responsive-title":u.locText.renderedHtml,className:s.question.cssClasses.cell},h)}t.push(i)},s=this,a=0;a<this.question.visibleColumns.length;a++)i();return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,t=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.isMobile?o.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),r)},t.prototype.renderInput=function(e,t){return o.createElement("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},t}(i.ReactSurveyElement);l.ReactElementFactory.Instance.registerElement("survey-matrix-cell",(function(e){return o.createElement(d,e)})),s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_matrixdropdownbase.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return y})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return C}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_checkbox.tsx"),l=n("./src/react/reactquestion_radiogroup.tsx"),u=n("./src/react/panel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/matrix/row.tsx"),d=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=n("./src/react/reactquestion_comment.tsx"),f=n("./src/react/element-factory.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,t,n){return this.props.wrapCell(e,t,n)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},"row-footer"==r?o.createElement("tr",null,i):o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n,r){var i="cell"+t;if(e.hasQuestion)return o.createElement(C,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:r});var s=r;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,n),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var a=this.renderLocString(e.locTitle),l=e.column?o.createElement(b,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,a,l)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),e.isErrorsCell&&e.isErrorsCell)return o.createElement(s.SurveyQuestionErrorCell,{question:e.question,creator:this.creator});if(!r)return null;var c=o.createElement(o.Fragment,null,r);return this.wrapCell(e,c,t)},t.prototype.renderElement=function(){var e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return o.createElement("table",{className:this.question.getTableCss()},e,n,t)},t}(i.SurveyElementBase),y=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:t,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement(g,{question:this.question,creator:this.creator,wrapCell:function(t,n,r){return e.wrapCell(t,n,r)}}))},t}(i.SurveyQuestionElementBase),v=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(v,e)}));var b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",null," "),o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),C=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderCellContent=function(){var t=e.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?o.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return o.createElement(o.Fragment,null,n,t)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question):o.createElement(o.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/reactquestion_matrixdropdownbase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMultipleText",(function(){return c})),n.d(t,"SurveyMultipleTextItem",(function(){return p})),n.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/title/title-content.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return o.createElement("table",{className:this.question.getQuestionRootCss()},o.createElement("tbody",null,n))},t.prototype.renderCell=function(e,t,n){var r;return r=e.isErrorsCell?o.createElement(s.SurveyQuestionErrorCell,{question:e.item.editor,creator:this.creator}):o.createElement(p,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),o.createElement("td",{key:"item"+n,className:e.className,onFocus:function(){e.item.focusIn()}},r)},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(this.renderCell(a,n,s))}return o.createElement("tr",{key:r,className:n.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle,style:n},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),n.d(t,"SurveyQuestionPanelDynamicItem",(function(){return m}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=n("./src/react/element-factory.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,t=[];this.question.renderedPanels.forEach((function(n,r){t.push(o.createElement(m,{key:n.id,element:n,question:e.question,index:r,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,r=this.question.isProgressTopShowing?this.renderNavigator():null,i=this.question.isProgressBottomShowing?this.renderNavigator():null,s=this.renderNavigatorV2(),a=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},a,r,o.createElement("div",{className:this.question.cssClasses.panelsContainer},t),i,n,s)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRadiogroup",(function(){return p})),n.d(t,"SurveyQuestionRadioItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,i){var s=r.map((function(r,o){return t.renderItem("item"+i+o,r,n,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:n===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:t},o.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRanking",(function(){return c})),n.d(t,"SurveyQuestionRankingItem",(function(){return p})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/element-factory.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return this.question.selectToRankEnabled?o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},o.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),o.createElement("div",{className:this.question.cssClasses.containersDivider}),o.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null)):o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.renderedRankingChoices);for(var r=[],o=function(o){var s=e[o];r.push(i.renderItem(s,o,(function(e){n.question.handleKeydown.call(n.question,e,s)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,s,e.currentTarget)}),(function(e){e.persist(),n.question.handlePointerUp.call(n.question,e,s,e.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,t))},i=this,s=0;s<e.length;s++)o(s);return r},t.prototype.renderItem=function(e,t,n,r,i,s,l,u,c){e.renderedId;var d=this.renderLocString(e.locText),h=t,f=this.question.getNumberByIndex(h),m=this.question.getItemTabIndex(e),g=o.createElement(p,{key:e.value,text:d,index:h,indexText:f,itemTabIndex:m,handleKeydown:n,handlePointerDown:r,handlePointerUp:i,cssClasses:s,itemClass:l,question:u,unrankedItem:c,item:e}),y=this.question.survey,v=null;return y&&(v=a.ReactSurveyElementsWrapper.wrapItemValue(y,g,this.question,e)),null!=v?v:g},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return o.createElement("svg",null,o.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=l.ReactElementFactory.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{className:this.question.getIconHoverCss()},o.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),o.createElement("svg",{className:this.question.getIconFocusCss()},o.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),o.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{className:this.cssClasses.controlLabel},i.SurveyElementBase.renderLocString(this.item.locText))},t}(i.ReactSurveyElement);l.ReactElementFactory.Instance.registerElement("sv-ranking-item",(function(e){return o.createElement(d,e)})),s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRating",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagbox",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/tagbox-item.tsx"),l=n("./src/react/tagbox-filter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionText",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.inputValue);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var r=n("survey-core"),o=n("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,row:n,componentData:i})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapItemValue=function(e,t,n,r){var i=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var i=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:n,componentData:s})},e}();r.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return u(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=n?"-"+n:0,i=t.name+r;return o.createElement(s.SurveyRowElement,{element:t,index:n,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:i})}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return l.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,t.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return a.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),a.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionSignaturePad",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/loading-indicator.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{width:this.question.renderedCanvasWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),o.createElement("div",null,this.renderBackgroundImage(),o.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:this.question.onBlur})),r,n)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?o.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return o.createElement("div",{className:this.question.cssClasses.loadingIndicator},o.createElement(l.LoadingIndicatorComponent,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(c,e)}))},"./src/react/string-editor.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringEditor",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringViewer",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return i.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/svgbundle.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgBundleComponent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=i.a.createRef(),n}return a(t,e),t.prototype.componentDidMount=function(){this.containerRef.current&&(this.containerRef.current.innerHTML=s.SvgRegistry.iconsRenderedHtml())},t.prototype.render=function(){return i.a.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(i.a.Component)},"./src/react/tagbox-filter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TagboxFilterString",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!!this.model.filterReadOnly||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return a}));var r=n("./src/global_variables_utils.ts"),o=n("./src/utils/utils.ts"),i="undefined"!=typeof globalThis?globalThis.document:(void 0).document,s=i?{root:i,_rootElement:r.DomDocumentHelper.getBody(),get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:r.DomDocumentHelper.getBody(),get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.DomDocumentHelper.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:i.head,stylesSheetsMountContainer:i.head}:void 0,a={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return a.commentSuffix},set commentPrefix(e){a.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,n,r,i){return Object(o.showConfirmDialog)(e,t,n,r,i)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:s,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}}}},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return y})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return v}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/utils/animation.ts"),h=n("./src/utils/utils.ts"),f=n("./src/global_variables_utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return m(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},g([Object(i.property)()],t.prototype,"hasDescription",void 0),g([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var v=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r._renderedIsExpanded=!0,r._isAnimatingCollapseExpand=!1,r.animationCollapsed=new d.AnimationBoolean(r.getExpandCollapseAnimationOptions(),(function(e){r._renderedIsExpanded=e,r.animationAllowed&&(e?r.isAnimatingCollapseExpand=!0:r.updateElementCss(!1))}),(function(){return r.renderedIsExpanded})),r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return m(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e,n,r){var o=u.settings.environment.root;if(!e||void 0===o)return!1;var i=o.getElementById(e);return t.ScrollElementToViewCore(i,!1,n,r)},t.ScrollElementToViewCore=function(e,t,n,r){if(!e||!e.scrollIntoView)return!1;var o=n?-1:e.getBoundingClientRect().top,i=o<0,s=-1;if(!i&&t&&(i=(s=e.getBoundingClientRect().left)<0),!i&&f.DomWindowHelper.isAvailable()){var a=f.DomWindowHelper.getInnerHeight();if(!(i=a>0&&a<o)&&t){var l=f.DomWindowHelper.getInnerWidth();i=l>0&&l<s}}return i&&e.scrollIntoView(r),i},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||!f.DomDocumentHelper.isAvailable())return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var n=u.settings.environment.root;if(!n)return!1;var r=n.getElementById(e);return!(!r||r.disabled||"none"===r.style.display||null===r.offsetParent||(t.ScrollElementToViewCore(r,!0,!1),r.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!("collapsed"===this.state&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){return this.getPropertyValueWithoutDefault("cssClassesValue")},set:function(e){this.setPropertyValue("cssClassesValue",e)},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRenderedValue=!0,this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&!this.parent.originalPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={},t=this.minWidth;return"auto"!=t&&(t="min(100%, "+this.minWidth+")"),this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=t,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),t.prototype.isContainsSelection=function(e){var t=void 0,n=f.DomDocumentHelper.getDocument();if(f.DomDocumentHelper.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var r=f.DomWindowHelper.getSelection();if(r&&r.rangeCount>0){var o=r.getRangeAt(0);o.startOffset!==o.endOffset&&(t=o.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!t||!e.isContainsSelection(t.target))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,n=e||this.isReadOnly;return[n&&!t,!this.isDefaultV2Theme&&(n||t)]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,t.style.setProperty("--animation-height",t.offsetHeight+"px")},n=function(t){e.isAnimatingCollapseExpand=!1};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeIn,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){n(),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentFadeOut,onBeforeRunAnimation:t,onAfterRunAnimation:n}},getAnimatedElement:function(){var t,n=e.isPanel?e.cssClasses.panel:e.cssClasses;if(n.content){var r=Object(h.classesToSelector)(n.content);if(r)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+r)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t||!this.renderedIsExpanded||this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,g([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),g([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),g([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),g([Object(i.property)()],t.prototype,"_renderedIsExpanded",void 0),t}(y)},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeDirections:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/utils/animation.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnimationUtils",(function(){return l})),n.d(t,"AnimationPropertyUtils",(function(){return u})),n.d(t,"AnimationGroupUtils",(function(){return c})),n.d(t,"AnimationProperty",(function(){return p})),n.d(t,"AnimationBoolean",(function(){return d})),n.d(t,"AnimationGroup",(function(){return h})),n.d(t,"AnimationTab",(function(){return f}));var r,o=n("./src/utils/taskmanager.ts"),i=n("./src/utils/utils.ts"),s=n("./src/global_variables_utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),n=t.animationDelay.split(", "),r=t.animationDuration.split(", "),o=0,i=0;i<Math.max(r.length,n.length);i++)o=Math.max(o,this.getMsFromRule(r[i%r.length])+this.getMsFromRule(n[i%n.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,n){var r,o=this,i=this.getAnimationsCount(e),s=function(i){void 0===i&&(i=!0),o.afterAnimationRun(e,n),t(i),clearTimeout(r),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),r=setTimeout((function(){s(!1)}),this.getAnimationDuration(e)+10)):(this.afterAnimationRun(e,n),t(!0))},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)},e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,n){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach((function(t){e.classList.add(t)})),this.onAnimationEnd(e,n,t)):n(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach((function(t){e.classList.remove(t)}))},e.prototype.onNextRender=function(e,t){var n=this;if(void 0===t&&(t=!1),!t&&s.DomWindowHelper.isAvailable()){var r=function(){e(!0),cancelAnimationFrame(o)},o=s.DomWindowHelper.requestAnimationFrame((function(){o=s.DomWindowHelper.requestAnimationFrame((function(){e(!1),n.removeCancelCallback(r)}))}));this.addCancelCallback(r)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach((function(e){return e()})),this.cancelQueue=[]},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onEnter=function(e){var t=this,n=e.getAnimatedElement(),r=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,(function(){t.clearHtmlElement(n,r)}))},t.prototype.onLeave=function(e,t){var n=this,r=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,(function(e){t(),n.onNextRender((function(){n.clearHtmlElement(r,o)}),e)}))},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.runGroupAnimation=function(e,t,n,r,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},a=t.map((function(t){return e.getAnimatedElement(t)})),l=t.map((function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}})),u=n.map((function(t){return e.getAnimatedElement(t)})),c=n.map((function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}})),p=r.map((function(t){return e.getAnimatedElement(t.item)})),d=r.map((function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}}));t.forEach((function(e,t){i.beforeAnimationRun(a[t],l[t])})),n.forEach((function(e,t){i.beforeAnimationRun(u[t],c[t])})),r.forEach((function(e,t){i.beforeAnimationRun(p[t],d[t])}));var h=t.length+n.length+p.length,f=function(e){--h<=0&&(o&&o(),i.onNextRender((function(){t.forEach((function(e,t){i.clearHtmlElement(a[t],l[t])})),n.forEach((function(e,t){i.clearHtmlElement(u[t],c[t])})),r.forEach((function(e,t){i.clearHtmlElement(p[t],d[t])}))}),e))};t.forEach((function(e,t){i.runAnimation(a[t],l[t],f)})),n.forEach((function(e,t){i.runAnimation(u[t],c[t],f)})),r.forEach((function(e,t){i.runAnimation(p[t],d[t],f)}))},t}(l),p=function(){function e(e,t,n){var r=this;this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=Object(o.debounce)((function(e){r.animation.cancel();try{r._sync(e)}catch(t){r.update(e)}}))}return e.prototype.onNextRender=function(e,t){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var o=function(){r.remove(i),n.cancelCallback=void 0},i=function(){e(),o()};this.cancelCallback=function(){t&&t(),o()},r.add(i)}else{if(!s.DomWindowHelper.isAvailable())throw new Error("Can't get next render");var a=s.DomWindowHelper.requestAnimationFrame((function(){e(),n.cancelCallback=void 0}));this.cancelCallback=function(){t&&t(),cancelAnimationFrame(a),n.cancelCallback=void 0}}},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new u,t}return a(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender((function(){t.animation.onEnter(t.animationOptions)})),this.update(e)):this.animation.onLeave(this.animationOptions,(function(){t.update(e)})):this.update(e)},t}(p),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new c,t}return a(t,e),t.prototype._sync=function(e){var t,n,r=this,o=this.getCurrentValue(),s=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,a=Object(i.compareArrays)(o,e,null!==(n=this.animationOptions.getKey)&&void 0!==n?n:function(e){return e}),l=a.addedItems,u=a.deletedItems,c=a.reorderedItems,p=a.mergedItems;!s&&(c.length>0||l.length>0)&&(u=[],p=e);var d=function(){r.animation.runGroupAnimation(r.animationOptions,l,u,c,(function(){u.length>0&&r.update(e)}))};[l,u,c].some((function(e){return e.length>0}))?u.length<=0||c.length>0||l.length>0?(this.onNextRender(d,(function(){r.update(e)})),this.update(p)):d():this.update(e)},t}(p),f=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.mergeValues=o,i.animation=new c,i}return a(t,e),t.prototype._sync=function(e){var t=this,n=[].concat(this.getCurrentValue());if(n[0]!==e[0]){var r=this.mergeValues?this.mergeValues(e,n):[].concat(n,e);this.onNextRender((function(){t.animation.runGroupAnimation(t.animationOptions,e,n,[],(function(){t.update(e)}))}),(function(){return t.update(e)})),this.update(r,!0)}else this.update(e)},t}(p)},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return a})),n.d(t,"VerticalResponsivityManager",(function(){return l}));var r,o=n("./src/global_variables_utils.ts"),i=n("./src/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e,t,n,r,i){var s=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=i,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return o.DomDocumentHelper.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(s.isInitialized=!1),setTimeout((function(){s.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){o.DomWindowHelper.requestAnimationFrame((function(){s.process()}))})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.getRenderedVisibleActionsCount=function(){var e=this,t=0;return this.container.querySelectorAll(this.itemsSelector).forEach((function(n){e.calcItemSize(n)>0&&t++})),t},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(i.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var t=function(){var t,n=e.dotsItemSize;if(!e.dotsItemSize){var r=null===(t=e.container)||void 0===t?void 0:t.querySelector(".sv-dots");n=r&&e.calcItemSize(r)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),n)};if(this.isInitialized)t();else{var n=function(){e.calcItemsSizes(),e.isInitialized=!0,t()};this.getRenderedVisibleActionsCount()<this.model.visibleActions.length?this.delayedUpdateFunction?this.delayedUpdateFunction(n):queueMicrotask?queueMicrotask(n):n():n()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),l=function(e){function t(t,n,r,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,n,r,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return s(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(a)},"./src/utils/taskmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Task",(function(){return r})),n.d(t,"TaskManger",(function(){return o})),n.d(t,"debounce",(function(){return i}));var r=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),e}(),o=function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}return e.Instance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],n=0;n<e.tasks.length;n++){var r=e.tasks[n];r.execute(),r.isCompleted?"function"==typeof r.dispose&&r.dispose():t.push(r)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[],e}();function i(e){var t,n=this,r=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,r||(r=!0,queueMicrotask((function(){o||e.apply(n,t),o=!1,r=!1})))},cancel:function(){o=!0}}}},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return E})),n.d(t,"getRenderedSize",(function(){return P})),n.d(t,"getRenderedStyleSize",(function(){return S})),n.d(t,"doKey2ClickBlur",(function(){return T})),n.d(t,"doKey2ClickUp",(function(){return _})),n.d(t,"doKey2ClickDown",(function(){return V})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return B})),n.d(t,"showConfirmDialog",(function(){return q})),n.d(t,"configConfirmDialog",(function(){return H})),n.d(t,"compareArrays",(function(){return Q})),n.d(t,"mergeValues",(function(){return F})),n.d(t,"getElementWidth",(function(){return D})),n.d(t,"isContainerVisible",(function(){return N})),n.d(t,"classesToSelector",(function(){return A})),n.d(t,"compareVersions",(function(){return a})),n.d(t,"confirmAction",(function(){return l})),n.d(t,"confirmActionAsync",(function(){return u})),n.d(t,"detectIEOrEdge",(function(){return p})),n.d(t,"detectIEBrowser",(function(){return c})),n.d(t,"loadFileFromBase64",(function(){return d})),n.d(t,"isMobile",(function(){return h})),n.d(t,"isShadowDOM",(function(){return f})),n.d(t,"getElement",(function(){return m})),n.d(t,"isElementVisible",(function(){return g})),n.d(t,"findScrollableParent",(function(){return y})),n.d(t,"scrollElementByChildId",(function(){return v})),n.d(t,"navigateToUrl",(function(){return b})),n.d(t,"wrapUrlForBackgroundImage",(function(){return C})),n.d(t,"createSvg",(function(){return x})),n.d(t,"getIconNameFromProxy",(function(){return w})),n.d(t,"increaseHeightByContent",(function(){return R})),n.d(t,"getOriginalEvent",(function(){return I})),n.d(t,"preventDefaults",(function(){return k})),n.d(t,"findParentByClassNames",(function(){return L})),n.d(t,"getFirstVisibleChild",(function(){return M})),n.d(t,"chooseFiles",(function(){return z}));var r=n("./src/localizablestring.ts"),o=n("./src/settings.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/global_variables_utils.ts");function a(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function l(e){return o.settings&&o.settings.confirmActionFunc?o.settings.confirmActionFunc(e):confirm(e)}function u(e,t,n,r,i){var s=function(e){e?t():n&&n()};o.settings&&o.settings.confirmActionAsync&&o.settings.confirmActionAsync(e,s,void 0,r,i)||s(l(e))}function c(){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function p(){if(void 0===p.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");p.isIEOrEdge=r>0||n>0||t>0}return p.isIEOrEdge}function d(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function h(){return s.DomWindowHelper.isAvailable()&&s.DomWindowHelper.hasOwn("orientation")}var f=function(e){return!!e&&!(!("host"in e)||!e.host)},m=function(e){var t=o.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function g(e,t){if(void 0===t&&(t=0),void 0===o.settings.environment)return!1;var n=o.settings.environment.root,r=f(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),a=-t,l=Math.max(r,s.DomWindowHelper.getInnerHeight())+t,u=i.top,c=i.bottom;return Math.max(a,u)<=Math.min(l,c)}function y(e){var t=o.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:y(e.parentElement):f(t)?t.host:t.documentElement}function v(e){var t=o.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var r=y(n);r&&setTimeout((function(){return r.dispatchEvent(new CustomEvent("scroll"))}),10)}}}function b(e){var t=s.DomWindowHelper.getLocation();e&&t&&(t.href=e)}function C(e){return e?["url(",e,")"].join(""):""}function w(e){return e&&o.settings.customIcons[e]||e}function x(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var a=o.childNodes[0],l=w(r);a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+l);var u=o.getElementsByTagName("title")[0];i?(u||(u=s.DomDocumentHelper.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(u)),u.textContent=i):u&&o.removeChild(u)}}function E(e){return"function"!=typeof e?e:e()}function P(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function S(e){if(void 0===P(e))return e}var O="sv-focused--by-key";function T(e){var t=e.target;t&&t.classList&&t.classList.remove(O)}function _(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(O)&&n.classList.add(O)}}}function V(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function R(e,t){if(e){t||(t=function(e){return s.DomDocumentHelper.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px")}}function I(e){return e.originalEvent||e}function k(e){e.preventDefault(),e.stopPropagation()}function A(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function D(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function N(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function M(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function L(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:L(e.parentElement,t)}function j(e,t){if(void 0===t&&(t=!0),s.DomWindowHelper.isAvailable()&&s.DomDocumentHelper.isAvailable()&&e.childNodes.length>0){var n=s.DomWindowHelper.getSelection();if(0==n.rangeCount)return;var r=n.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),n.removeAllRanges(),n.addRange(r);var o=n.toString(),i=e.innerText;o=o.replace(/\r/g,""),t&&(o=o.replace(/\n/g,""),i=i.replace(/\n/g,""));var a=o.length;for(e.innerText=i,(r=s.DomDocumentHelper.getDocument().createRange()).setStart(e.firstChild,0),r.setEnd(e.firstChild,0),n.removeAllRanges(),n.addRange(r);n.toString().length<i.length-a;){var l=n.toString().length;if(n.modify("extend","forward","character"),n.toString().length==l)break}(r=n.getRangeAt(0)).setStart(r.endContainer,r.endOffset)}}function F(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),F(r,t[n])):t[n]=r}}var B=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}();function q(e,t,n,s,a){var l=new r.LocalizableString(void 0),u=o.settings.showDialog({componentName:"sv-string-viewer",data:{locStr:l,locString:l,model:l},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:e,displayMode:"popup",isFocusedContent:!1,cssClass:"sv-popup--confirm-delete"},a),c=u.footerToolbar,p=c.getActionById("apply"),d=c.getActionById("cancel");return d.title=i.surveyLocalization.getString("cancel",s),d.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",p.title=n||i.surveyLocalization.getString("ok",s),p.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",H(u),!0}function H(e){e.width="min-content"}function z(e,t){s.DomWindowHelper.isFileReaderAvailable()&&(e.value="",e.onchange=function(n){if(s.DomWindowHelper.isFileReaderAvailable()&&e&&e.files&&!(e.files.length<1)){for(var r=[],o=0;o<e.files.length;o++)r.push(e.files[o]);t(r)}},e.click())}function Q(e,t,n){var r=new Map,o=new Map,i=new Map,s=new Map;e.forEach((function(e){var t=n(e);if(r.has(t))throw new Error("keys must be unique");r.set(n(e),e)})),t.forEach((function(e){var t=n(e);if(o.has(t))throw new Error("keys must be unique");o.set(t,e)}));var a=[],l=[];o.forEach((function(e,t){r.has(t)?i.set(t,i.size):a.push(e)})),r.forEach((function(e,t){o.has(t)?s.set(t,s.size):l.push(e)}));var u=[];i.forEach((function(e,t){var n=s.get(t),r=o.get(t);n!==e&&u.push({item:r,movedForward:n<e})}));var c=new Array(e.length),p=0,d=Array.from(i.keys());e.forEach((function(e,t){i.has(n(e))?(c[t]=o.get(d[p]),p++):c[t]=e}));var h=new Map,f=[];c.forEach((function(e){var t=n(e);o.has(t)?f.length>0&&(h.set(t,f),f=[]):f.push(e)}));var m=new Array;return o.forEach((function(e,t){h.has(t)&&h.get(t).forEach((function(e){m.push(e)})),m.push(e)})),f.forEach((function(e){m.push(e)})),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:m}}},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(540),n(961),n(522))},771:e=>{"use strict";e.exports=function(){}},633:(e,t,n)=>{var r=n(738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof C?t:C,i=Object.create(o.prototype),s=new A(r||[]);return a(i,"_invoke",{value:V(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var m="suspendedStart",g="suspendedYield",y="executing",v="completed",b={};function C(){}function w(){}function x(){}var E={};d(E,u,(function(){return this}));var P=Object.getPrototypeOf,S=P&&P(P(D([])));S&&S!==i&&s.call(S,u)&&(E=S);var O=x.prototype=C.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function V(e,n,r){var o=m;return function(i,s){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=R(a,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?v:g,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(s.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(O),e},n.awrap=function(e){return{__await:e}},T(_.prototype),d(_.prototype,c,(function(){return this})),n.AsyncIterator=_,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var s=new _(h(e,t,r,o),i);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},T(O),d(O,p,"Generator"),d(O,u,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},756:(e,t,n)=>{var r=n(633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{"use strict";var e,t=o(540),n=o.t(t,2),r=o(338);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const s="popstate";function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function p(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let s=[...n,String(o)],l="string"==typeof e.id?e.id:s.join("-");if(a(!0!==e.index||!e.children,"Cannot specify children on an index route"),a(!r[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=i({},e,t(e),{id:l});return r[l]=n,n}{let n=i({},e,t(e),{id:l,children:void 0});return r[l]=n,e.children&&(n.children=m(e.children,t,s,r)),n}}))}function g(e,t,n){return void 0===n&&(n="/"),y(e,t,n,!1)}function y(e,t,n,r){let o=I(("string"==typeof t?d(t):t).pathname||"/",n);if(null==o)return null;let i=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let e=0;null==s&&e<i.length;++e){let t=R(o);s=_(i[e],t,r)}return s}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=M([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:T(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of b(e.path))o(e,t,n);else o(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=b(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const C=/^:[\w-]+$/,w=3,x=2,E=1,P=10,S=-2,O=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(O)&&(r+=S),t&&(r+=x),n.filter((e=>!O(e))).reduce(((e,t)=>e+(C.test(t)?w:""===t?E:P)),r)}function _(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=V({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u),p=a.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=V({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:M([i,c.pathname]),pathnameBase:L(M([i,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(i=M([i,c.pathnameBase]))}return s}function V(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function k(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t){let n=A(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function N(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=d(e):(o=i({},e),a(!o.pathname||!o.pathname.includes("?"),k("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let s,l=""===e||""===o.pathname,u=l?"/":o.pathname;if(null==u)s=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?d(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:j(r),hash:F(o)}}(o,s),p=u&&"/"!==u&&u.endsWith("/"),h=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!p&&!h||(c.pathname+="/"),c}const M=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class B{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],z=new Set(H),Q=["get",...H],U=new Set(Q),W=new Set([301,302,303,307,308]),G=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ee="remix-router-transitions";function te(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let e of t)if(l.push(e),e.route.id===s){u=e;break}}else l=t,u=t[t.length-1];let c=N(o||".",D(l,i),I(e.pathname,n)||e.pathname,"path"===a);return null==o&&(c.search=e.search,c.hash=e.hash),null!=o&&""!==o&&"."!==o||!u||!u.route.index||Re(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:M([n,c.pathname])),p(c)}function ne(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!U.has(o.toLowerCase())))return{path:n,error:Ce(405,{method:r.formMethod})};var o;let i,s,l=()=>({path:n,error:Ce(400,{type:"invalid-body"})}),u=r.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),h=xe(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Te(c))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:c,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Te(c))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:h,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(a("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=he(r.formData),s=r.formData;else if(r.body instanceof FormData)i=he(r.body),s=r.body;else if(r.body instanceof URLSearchParams)i=r.body,s=fe(i);else if(null==r.body)i=new URLSearchParams,s=new FormData;else try{i=new URLSearchParams(r.body),s=fe(i)}catch(e){return l()}let f={formMethod:c,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Te(f.formMethod))return{path:n,submission:f};let m=d(n);return t&&m.search&&Re(m.search)&&i.append("index",""),m.search="?"+i,{path:p(m),submission:f}}function re(e,t,n,r,o,s,a,l,u,c,p,d,h,f,m,y){let v=y?Pe(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),C=e.createURL(o),w=y&&Pe(y[1])?y[0]:void 0,x=w?function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,w):n,E=y?y[1].statusCode:void 0,P=a&&E&&E>=400,S=x.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(s)return!("function"==typeof o.loader&&!o.loader.hydrate&&(void 0!==t.loaderData[o.id]||t.errors&&void 0!==t.errors[o.id]));if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let a=t.matches[n],c=e;return ie(e,i({currentUrl:b,currentParams:a.params,nextUrl:C,nextParams:c.params},r,{actionResult:v,unstable_actionStatus:E,defaultShouldRevalidate:!P&&(l||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||oe(a,c))}))})),O=[];return d.forEach(((e,o)=>{if(s||!n.some((t=>t.route.id===e.routeId))||p.has(o))return;let a=g(f,e.path,m);if(!a)return void O.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),d=Ie(a,e.path),y=!1;y=!h.has(o)&&(!!c.includes(o)||(u&&"idle"!==u.state&&void 0===u.data?l:ie(d,i({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,unstable_actionStatus:E,defaultShouldRevalidate:!P&&l})))),y&&O.push({key:o,routeId:e.routeId,path:e.path,matches:a,match:d,controller:new AbortController})})),[S,O]}function oe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ie(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function se(e,t,n,r,o,i,s,a){let l=[t,...n.map((e=>e.route.id))].join("-");try{let c=s.get(l);c||(c=e({path:t,matches:n,patch:(e,t)=>{a.aborted||ae(e,t,r,o,i)}}),s.set(l,c)),c&&"object"==typeof(u=c)&&null!=u&&"then"in u&&await c}finally{s.delete(l)}var u}function ae(e,t,n,r,o){if(e){var i;let n=r[e];a(n,"No route found to patch children into: routeId = "+e);let s=m(t,o,[e,"patch",String((null==(i=n.children)?void 0:i.length)||"0")],r);n.children?n.children.push(...s):n.children=s}else{let e=m(t,o,["patch",String(n.length||"0")],r);n.push(...e)}}async function le(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];a(o,"No route found in manifest");let s={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;l(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(s[e]=r[e])}Object.assign(o,s),Object.assign(o,i({},t(o),{lazy:void 0}))}function ue(e){return Promise.all(e.matches.map((e=>e.resolve())))}function ce(e,t,n,r,o,i){let s=e.headers.get("Location");if(a(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!X.test(s)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);s=te(new URL(t.url),a,o,!0,s,i),e.headers.set("Location",s)}return e}function pe(e,t,n){if(X.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=I(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function de(e,t,n,r){let o=e.createURL(xe(t)).toString(),i={signal:n};if(r&&Te(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=he(r.formData):i.body=r.formData}return new Request(o,i)}function he(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function fe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function me(e,t,n,r,o,s,l,u){let{loaderData:c,errors:p}=function(e,t,n,r,o,i){let s,l={},u=null,c=!1,p={},d=r&&Pe(r[1])?r[1].error:void 0;return n.forEach(((n,r)=>{let h=t[r].route.id;if(a(!Se(n),"Cannot handle redirect results in processLoaderData"),Pe(n)){let t=n.error;if(void 0!==d&&(t=d,d=void 0),u=u||{},i)u[h]=t;else{let n=ve(e,h);null==u[n.route.id]&&(u[n.route.id]=t)}l[h]=void 0,c||(c=!0,s=q(n.error)?n.error.status:500),n.headers&&(p[h]=n.headers)}else Ee(n)?(o.set(h,n.deferredData),l[h]=n.deferredData.data,null==n.statusCode||200===n.statusCode||c||(s=n.statusCode),n.headers&&(p[h]=n.headers)):(l[h]=n.data,n.statusCode&&200!==n.statusCode&&!c&&(s=n.statusCode),n.headers&&(p[h]=n.headers))})),void 0!==d&&r&&(u={[r[0]]:d},l[r[0]]=void 0),{loaderData:l,errors:u,statusCode:s||200,loaderHeaders:p}}(t,n,r,o,u,!1);for(let t=0;t<s.length;t++){let{key:n,match:r,controller:o}=s[t];a(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let u=l[t];if(!o||!o.signal.aborted)if(Pe(u)){let t=ve(e.matches,null==r?void 0:r.route.id);p&&p[t.route.id]||(p=i({},p,{[t.route.id]:u.error})),e.fetchers.delete(n)}else if(Se(u))a(!1,"Unhandled fetcher revalidation redirect");else if(Ee(u))a(!1,"Unhandled fetcher deferred data");else{let t=Ne(u.data);e.fetchers.set(n,t)}}return{loaderData:c,errors:p}}function ge(e,t,n,r){let o=i({},t);for(let i of n){let n=i.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ye(e){return e?Pe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ve(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function be(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ce(e,t){let{pathname:n,routeId:r,method:o,type:i,message:s}=void 0===t?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(a="Bad Request","route-discovery"===i?l='Unable to match URL "'+n+'" - the `children()` function for route `'+r+"` threw the following error:\n"+s:o&&n&&r?l="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(a="Not Found",l='No route matches URL "'+n+'"'):405===e&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new B(e||500,a,new Error(l),!0)}function we(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Se(n))return{result:n,idx:t}}}function xe(e){return p(i({},"string"==typeof e?d(e):e,{hash:""}))}function Ee(e){return e.type===h.deferred}function Pe(e){return e.type===h.error}function Se(e){return(e&&e.type)===h.redirect}function Oe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Te(e){return z.has(e.toLowerCase())}async function _e(e,t,n,r,o,i){for(let s=0;s<n.length;s++){let l=n[s],u=t[s];if(!u)continue;let c=e.find((e=>e.route.id===u.route.id)),p=null!=c&&!oe(c,u)&&void 0!==(i&&i[u.route.id]);if(Ee(l)&&(o||p)){let e=r[s];a(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ve(l,e,o).then((e=>{e&&(n[s]=e||n[s])}))}}}async function Ve(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Re(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ie(e,t){let n="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Re(n||""))return e[e.length-1];let r=A(e);return r[r.length-1]}function ke(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==s?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}:void 0}function Ae(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function De(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ne(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}Symbol("deferred");const Le=t.createContext(null),je=t.createContext(null),Fe=t.createContext(null),Be=t.createContext(null),qe=t.createContext({outlet:null,matches:[],isDataRoute:!1}),He=t.createContext(null);function ze(){return null!=t.useContext(Be)}function Qe(){return ze()||a(!1),t.useContext(Be).location}function Ue(e){t.useContext(Fe).static||t.useLayoutEffect(e)}function We(){let{isDataRoute:e}=t.useContext(qe);return e?function(){let{router:e}=nt(et.UseNavigateStable),n=ot(tt.UseNavigateStable),r=t.useRef(!1);Ue((()=>{r.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),r.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Me({fromRouteId:n},o)))}),[e,n]);return o}():function(){ze()||a(!1);let e=t.useContext(Le),{basename:n,future:r,navigator:o}=t.useContext(Fe),{matches:i}=t.useContext(qe),{pathname:s}=Qe(),l=JSON.stringify(D(i,r.v7_relativeSplatPath)),u=t.useRef(!1);Ue((()=>{u.current=!0}));let c=t.useCallback((function(t,r){if(void 0===r&&(r={}),!u.current)return;if("number"==typeof t)return void o.go(t);let i=N(t,JSON.parse(l),s,"path"===r.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:M([n,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[n,o,l,s,e]);return c}()}const $e=t.createContext(null);function Ge(e,n){let{relative:r}=void 0===n?{}:n,{future:o}=t.useContext(Fe),{matches:i}=t.useContext(qe),{pathname:s}=Qe(),a=JSON.stringify(D(i,o.v7_relativeSplatPath));return t.useMemo((()=>N(e,JSON.parse(a),s,"path"===r)),[e,a,s,r])}function Je(n,r,o,i){ze()||a(!1);let{navigator:s}=t.useContext(Fe),{matches:l}=t.useContext(qe),u=l[l.length-1],c=u?u.params:{},p=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let h,f=Qe();if(r){var m;let e="string"==typeof r?d(r):r;"/"===p||(null==(m=e.pathname)?void 0:m.startsWith(p))||a(!1),h=e}else h=f;let y=h.pathname||"/",v=y;if("/"!==p){let e=p.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=g(n,{pathname:v}),C=function(e,n,r,o){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var s;if(null==(s=r)||!s.errors)return null;e=r.matches}let l=e,u=null==(i=r)?void 0:i.errors;if(null!=u){let e=l.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||a(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,p=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(p=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,l=p>=0?l.slice(0,p+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let s,a=!1,d=null,h=null;var f;r&&(s=u&&o.route.id?u[o.route.id]:void 0,d=o.route.errorElement||Ke,c&&(p<0&&0===i?(st[f="route-fallback"]||(st[f]=!0),a=!0,h=null):p===i&&(a=!0,h=o.route.hydrateFallbackElement||null)));let m=n.concat(l.slice(0,i+1)),g=()=>{let n;return n=s?d:a?h:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(Ze,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(Xe,{location:r.location,revalidation:r.revalidation,component:d,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:M([p,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:M([p,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,o,i);return r&&C?t.createElement(Be.Provider,{value:{location:Me({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:e.Pop}},C):C}function Ye(){let e=function(){var e;let n=t.useContext(He),r=rt(tt.UseRouteError),o=ot(tt.UseRouteError);return void 0!==n?n:null==(e=r.errors)?void 0:e[o]}(),n=q(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}const Ke=t.createElement(Ye,null);class Xe extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(qe.Provider,{value:this.props.routeContext},t.createElement(He.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ze(e){let{routeContext:n,match:r,children:o}=e,i=t.useContext(Le);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(qe.Provider,{value:n},o)}var et=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(et||{}),tt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tt||{});function nt(e){let n=t.useContext(Le);return n||a(!1),n}function rt(e){let n=t.useContext(je);return n||a(!1),n}function ot(e){let n=function(e){let n=t.useContext(qe);return n||a(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||a(!1),r.route.id}let it=0;const st={};function at(e){return function(e){let n=t.useContext(qe).outlet;return n?t.createElement($e.Provider,{value:e},n):n}(e.context)}function lt(n){let{basename:r="/",children:o=null,location:i,navigationType:s=e.Pop,navigator:l,static:u=!1,future:c}=n;ze()&&a(!1);let p=r.replace(/^\/*/,"/"),h=t.useMemo((()=>({basename:p,navigator:l,static:u,future:Me({v7_relativeSplatPath:!1},c)})),[p,c,l,u]);"string"==typeof i&&(i=d(i));let{pathname:f="/",search:m="",hash:g="",state:y=null,key:v="default"}=i,b=t.useMemo((()=>{let e=I(f,p);return null==e?null:{location:{pathname:e,search:m,hash:g,state:y,key:v},navigationType:s}}),[p,f,m,g,y,v,s]);return null==b?null:t.createElement(Fe.Provider,{value:h},t.createElement(Be.Provider,{children:o,value:b}))}n.startTransition,new Promise((()=>{})),t.Component;var ut=o(961),ct=o.t(ut,2);function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function dt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ht=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(qS){}function ft(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new B(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const mt=t.createContext({isTransitioning:!1}),gt=t.createContext(new Map),yt=n.startTransition,vt=ct.flushSync;function bt(e){vt?vt(e):e()}n.useId;class Ct{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function wt(e){let{fallbackElement:n,router:r,future:o}=e,[i,s]=t.useState(r.state),[a,l]=t.useState(),[u,c]=t.useState({isTransitioning:!1}),[p,d]=t.useState(),[h,f]=t.useState(),[m,g]=t.useState(),y=t.useRef(new Map),{v7_startTransition:v}=o||{},b=t.useCallback((e=>{v?function(e){yt?yt(e):e()}(e):e()}),[v]),C=t.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:o,unstable_viewTransitionOpts:i}=t;n.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(i&&!a){if(o){bt((()=>{h&&(p&&p.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=r.window.document.startViewTransition((()=>{bt((()=>s(e)))}));return t.finished.finally((()=>{bt((()=>{d(void 0),f(void 0),l(void 0),c({isTransitioning:!1})}))})),void bt((()=>f(t)))}h?(p&&p.resolve(),h.skipTransition(),g({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?bt((()=>s(e))):b((()=>s(e)))}),[r.window,h,p,y,b]);t.useLayoutEffect((()=>r.subscribe(C)),[r,C]),t.useEffect((()=>{u.isTransitioning&&!u.flushSync&&d(new Ct)}),[u]),t.useEffect((()=>{if(p&&a&&r.window){let e=a,t=p.promise,n=r.window.document.startViewTransition((async()=>{b((()=>s(e))),await t}));n.finished.finally((()=>{d(void 0),f(void 0),l(void 0),c({isTransitioning:!1})})),f(n)}}),[b,a,p,r.window]),t.useEffect((()=>{p&&a&&i.location.key===a.location.key&&p.resolve()}),[p,h,i.location,a]),t.useEffect((()=>{!u.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))}),[u.isTransitioning,m]),t.useEffect((()=>{}),[]);let w=t.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),x=r.basename||"/",E=t.useMemo((()=>({router:r,navigator:w,static:!1,basename:x})),[r,w,x]);return t.createElement(t.Fragment,null,t.createElement(Le.Provider,{value:E},t.createElement(je.Provider,{value:i},t.createElement(gt.Provider,{value:y.current},t.createElement(mt.Provider,{value:u},t.createElement(lt,{basename:x,location:i.location,navigationType:i.historyAction,navigator:w,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?t.createElement(xt,{routes:r.routes,future:r.future,state:i}):n))))),null)}function xt(e){let{routes:t,future:n,state:r}=e;return Je(t,void 0,r,n)}const Et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Pt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,St=t.forwardRef((function(e,n){let r,{onClick:o,relative:i,reloadDocument:s,replace:l,state:u,target:c,to:d,preventScrollReset:h,unstable_viewTransition:f}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ht),{basename:g}=t.useContext(Fe),y=!1;if("string"==typeof d&&Pt.test(d)&&(r=d,Et))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=I(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:y=!0}catch(e){}let v=function(e,n){let{relative:r}=void 0===n?{}:n;ze()||a(!1);let{basename:o,navigator:i}=t.useContext(Fe),{hash:s,pathname:l,search:u}=Ge(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:M([o,l])),i.createHref({pathname:c,search:u,hash:s})}(d,{relative:i}),b=function(e,n){let{target:r,replace:o,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l}=void 0===n?{}:n,u=We(),c=Qe(),d=Ge(e,{relative:a});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:p(c)===p(d);u(e,{replace:n,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l})}}),[c,u,d,o,i,r,e,s,a,l])}(d,{replace:l,state:u,target:c,preventScrollReset:h,relative:i,unstable_viewTransition:f});return t.createElement("a",pt({},m,{href:r||v,onClick:y||s?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:n,target:c}))}));var Ot,Tt;function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vt(e,t){if(e){if("string"==typeof e)return _t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||Vt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ot||(Ot={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Tt||(Tt={}));var It=(0,t.createContext)({show:!1,toggle:function(){}});const kt=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1];return t.createElement(It.Provider,{value:{show:o,toggle:function(){i(!o)}}},n)};function At(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Dt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){At(i,r,o,s,a,"next",e)}function a(e){At(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Nt=o(756),Mt=o.n(Nt);function Lt(){return(Lt=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/user/");case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var jt={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ft=(0,t.createContext)({user:jt,logout:function(){}});const Bt=function(e){var n=e.children,r=Rt((0,t.useState)(jt),2),o=r[0],i=r[1];function s(){return(s=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/logout");case 2:i(jt);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,t.useEffect)((function(){(function(){return Lt.apply(this,arguments)})().then((function(e){i(e)}))}),[]),t.createElement(Ft.Provider,{value:{user:o,logout:function(){return s.apply(this,arguments)}}},n)};var qt=(0,t.createContext)({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:function(){}});const Ht=function(e){var n=e.children,r=Rt((0,t.useState)({selectedYears:[],selectedNrens:[]}),2),o=r[0],i=r[1];return t.createElement(qt.Provider,{value:{filterSelection:o,setFilterSelection:i}},n)};var zt=(0,t.createContext)(null);const Qt=function(e){var n=e.children,r=(0,t.useRef)(null);return t.createElement(zt.Provider,{value:r},n)};var Ut=(0,t.createContext)({preview:!1,setPreview:function(){}});const Wt=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1];return t.createElement(Ut.Provider,{value:{preview:o,setPreview:i}},n)};function $t(){return($t=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var Gt=(0,t.createContext)({nrens:[],setNrens:function(){}});const Jt=function(e){var n=e.children,r=Rt((0,t.useState)([]),2),o=r[0],i=r[1];return(0,t.useEffect)((function(){(function(){return $t.apply(this,arguments)})().then((function(e){return i(e)}))}),[]),t.createElement(Gt.Provider,{value:{nrens:o,setNrens:i}},n)};function Yt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kt(e){return function(e){if(Array.isArray(e))return _t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Zt(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}function tn(e,t,n){return(t=Zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=["category","action","name","value"];function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=function(){return function(e,t,n){return t&&en(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tn(this,"mutationObserver",void 0),!t.urlBase)throw new Error("Matomo urlBase is required.");if(!t.siteId)throw new Error("Matomo siteId is required.");this.initialize(t)}),[{key:"initialize",value:function(e){var t=this,n=e.urlBase,r=e.siteId,o=e.userId,i=e.trackerUrl,s=e.srcUrl,a=e.disabled,l=e.heartBeat,u=e.requireConsent,c=void 0!==u&&u,p=e.configurations,d=void 0===p?{}:p,h="/"!==n[n.length-1]?"".concat(n,"/"):n;if("undefined"!=typeof window&&(window._paq=window._paq||[],0===window._paq.length&&!a)){var f;c&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",null!=i?i:"".concat(h,"matomo.php")),this.pushInstruction("setSiteId",r),o&&this.pushInstruction("setUserId",o),Object.entries(d).forEach((function(e){var n=Rt(e,2),r=n[0],o=n[1];o instanceof Array?t.pushInstruction.apply(t,[r].concat(Kt(o))):t.pushInstruction(r,o)})),(!l||l&&l.active)&&this.enableHeartBeatTimer(null!==(f=l&&l.seconds)&&void 0!==f?f:15);var m=document,g=m.createElement("script"),y=m.getElementsByTagName("script")[0];g.type="text/javascript",g.async=!0,g.defer=!0,g.src=s||"".concat(h,"matomo.js"),y&&y.parentNode&&y.parentNode.insertBefore(g,y)}}},{key:"enableHeartBeatTimer",value:function(e){this.pushInstruction("enableHeartBeatTimer",e)}},{key:"trackEventsForElements",value:function(e){var t=this;e.length&&e.forEach((function(e){e.addEventListener("click",(function(){var n=e.dataset,r=n.matomoCategory,o=n.matomoAction,i=n.matomoName,s=n.matomoValue;if(!r||!o)throw new Error("Error: data-matomo-category and data-matomo-action are required.");t.trackEvent({category:r,action:o,name:i,value:Number(s)})}))}))}},{key:"trackEvents",value:function(){var e=this,t='[data-matomo-event="click"]',n=!1;if(this.mutationObserver||(n=!0,this.mutationObserver=new MutationObserver((function(n){n.forEach((function(n){n.addedNodes.forEach((function(n){if(n instanceof HTMLElement){n.matches(t)&&e.trackEventsForElements([n]);var r=Array.from(n.querySelectorAll(t));e.trackEventsForElements(r)}}))}))}))),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),n){var r=Array.from(document.querySelectorAll(t));this.trackEventsForElements(r)}}},{key:"stopObserving",value:function(){this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"trackEvent",value:function(e){var t=e.category,n=e.action,r=e.name,o=e.value,i=function(e,t){if(null==e)return{};var n,r,o=Yt(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,nn);if(!t||!n)throw new Error("Error: category and action are required.");this.track(on({data:["trackEvent",t,n,r,o]},i))}},{key:"giveConsent",value:function(){this.pushInstruction("setConsentGiven")}},{key:"trackLink",value:function(e){var t=e.href,n=e.linkType,r=void 0===n?"link":n;this.pushInstruction("trackLink",t,r)}},{key:"trackPageView",value:function(e){this.track(on({data:["trackPageView"]},e))}},{key:"track",value:function(e){var t=this,n=e.data,r=void 0===n?[]:n,o=e.documentTitle,i=void 0===o?window.document.title:o,s=e.href,a=e.customDimensions,l=void 0!==a&&a;r.length&&(l&&Array.isArray(l)&&l.length&&l.map((function(e){return t.pushInstruction("setCustomDimension",e.id,e.value)})),this.pushInstruction("setCustomUrl",null!=s?s:window.location.href),this.pushInstruction("setDocumentTitle",i),this.pushInstruction.apply(this,Kt(r)))}},{key:"pushInstruction",value:function(e){if("undefined"!=typeof window){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];window._paq.push([e].concat(n))}return this}}])}(),an=(0,t.createContext)({consent:null,setConsent:function(){}});const ln=function(e){var n=e.children,r=(0,t.useState)(function(){var e=localStorage.getItem("matomo_consent");if(e){var t=JSON.parse(e);if(new Date(t.expiry)>new Date)return t.consent}return null}()),o=Rt(r,2),i=o[0],s=o[1];return t.createElement(an.Provider,{value:{setConsent:function(e){return s(e)},consent:i}},n)};var un=(0,t.createContext)(null);const cn=function(e){var n,r=e.children,o=un,i=(n={urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:!(0,t.useContext)(an).consent},"localhost"===window.location.hostname&&(console.log("Matomo tracking disabled in development mode."),n.disabled=!0),new sn(n));return t.createElement(o.Provider,{value:i},r)},pn=function(e){var n=e.children;return t.createElement(ln,null,t.createElement(cn,null,t.createElement(kt,null,t.createElement(Bt,null,t.createElement(Ht,null,t.createElement(Qt,null,t.createElement(Wt,null,t.createElement(Jt,null,n))))))))};var dn=function(e){return e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e}({}),hn=function(e){return e.network_services="network_services",e.isp_support="isp_support",e.security="security",e.identity="identity",e.collaboration="collaboration",e.multimedia="multimedia",e.storage_and_hosting="storage_and_hosting",e.professional_services="professional_services",e}({}),fn=o(942),mn=o.n(fn),gn=o(848);const yn=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:vn,Provider:bn}=yn;function Cn(e,n){const{prefixes:r}=(0,t.useContext)(yn);return e||r[n]||n}function wn(){const{breakpoints:e}=(0,t.useContext)(yn);return e}function xn(){const{minBreakpoint:e}=(0,t.useContext)(yn);return e}function En(){const{dir:e}=(0,t.useContext)(yn);return"rtl"===e}const Pn=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=Cn(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,gn.jsx)(n,{ref:i,...o,className:mn()(r,t?`${s}${a}`:s)})}));Pn.displayName="Container";const Sn=Pn,On=t.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=Cn(e,"row"),s=wn(),a=xn(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==a?`-${e}`:"";null!=n&&u.push(`${l}${o}-${n}`)})),(0,gn.jsx)(n,{ref:o,...r,className:mn()(t,i,...u)})}));On.displayName="Row";const Tn=On,_n=t.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:n,...r}){t=Cn(t,"col");const o=wn(),i=xn(),s=[],a=[];return o.forEach((e=>{const n=r[e];let o,l,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:l,order:u}=n):o=n;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...r,className:mn()(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,gn.jsx)(o,{...r,ref:t,className:mn()(n,!s.length&&i)})}));_n.displayName="Col";const Vn=_n,Rn=o.p+"9ab20ac1d835b50b2e01.svg",In=function(){var e=(0,t.useContext)(Ft).user,n=Qe().pathname;return t.createElement("div",{className:"external-page-nav-bar"},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,{xs:10},t.createElement("div",{className:"nav-wrapper"},t.createElement("nav",{className:"header-nav"},t.createElement("a",{href:"https://geant.org/"},t.createElement("img",{src:Rn})),t.createElement("ul",null,t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"/"},"COMPENDIUM")))))),t.createElement(Vn,{xs:2},e.permissions.admin&&!n.includes("survey")&&t.createElement("div",{className:"nav-link",style:{float:"right"}},t.createElement("a",{className:"nav-link-entry",href:"/survey"},"Go to Survey"))))))},kn=o.p+"a0a202b04b5c8b9d1b93.svg",An=o.p+"67fa101547c0e32181b3.png",Dn=function(){return t.createElement("footer",{className:"page-footer pt-3"},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,null,t.createElement("a",{href:"https://geant.org"},t.createElement("img",{src:kn,className:"m-3",style:{maxWidth:"100px"}})),t.createElement("img",{src:An,className:"m-3",style:{maxWidth:"200px"}})),t.createElement(Vn,{className:"mt-4 text-end"},t.createElement("span",null,t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/"},"Disclaimer"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/"},"GEANT Anti‑Slavery Policy"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"),t.createElement("wbr",null),"|",t.createElement("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:function(){localStorage.removeItem("matomo_consent"),window.location.reload()}},"Analytics Consent"))))))},Nn=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-body"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Nn.displayName="CardBody";const Mn=Nn,Ln=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-footer"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Ln.displayName="CardFooter";const jn=Ln,Fn=t.createContext(null);Fn.displayName="CardHeaderContext";const Bn=Fn,qn=t.forwardRef((({bsPrefix:e,className:n,as:r="div",...o},i)=>{const s=Cn(e,"card-header"),a=(0,t.useMemo)((()=>({cardHeaderBsPrefix:s})),[s]);return(0,gn.jsx)(Bn.Provider,{value:a,children:(0,gn.jsx)(r,{ref:i,...o,className:mn()(n,s)})})}));qn.displayName="CardHeader";const Hn=qn,zn=t.forwardRef((({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=Cn(e,"card-img");return(0,gn.jsx)(r,{ref:i,className:mn()(n?`${s}-${n}`:s,t),...o})}));zn.displayName="CardImg";const Qn=zn,Un=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"card-img-overlay"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Un.displayName="CardImgOverlay";const Wn=Un,$n=t.forwardRef((({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=Cn(t,"card-link"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));$n.displayName="CardLink";const Gn=$n,Jn=e=>t.forwardRef(((t,n)=>(0,gn.jsx)("div",{...t,ref:n,className:mn()(t.className,e)}))),Yn=Jn("h6"),Kn=t.forwardRef((({className:e,bsPrefix:t,as:n=Yn,...r},o)=>(t=Cn(t,"card-subtitle"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Kn.displayName="CardSubtitle";const Xn=Kn,Zn=t.forwardRef((({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=Cn(t,"card-text"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Zn.displayName="CardText";const er=Zn,tr=Jn("h5"),nr=t.forwardRef((({className:e,bsPrefix:t,as:n=tr,...r},o)=>(t=Cn(t,"card-title"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));nr.displayName="CardTitle";const rr=nr,or=t.forwardRef((({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=Cn(e,"card");return(0,gn.jsx)(a,{ref:u,...l,className:mn()(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?(0,gn.jsx)(Mn,{children:s}):s})}));or.displayName="Card";const ir=Object.assign(or,{Img:Qn,Title:rr,Subtitle:Xn,Body:Mn,Link:Gn,Text:er,Header:Hn,Footer:jn,ImgOverlay:Wn}),sr=o.p+"4b5816823ff8fb2eb238.svg",ar=o.p+"b604b5dd99b466fbf823.svg",lr=function(){var e=(0,t.useContext)(un),n=(0,t.useCallback)((function(t){return null==e?void 0:e.trackPageView(t)}),[e]),r=(0,t.useCallback)((function(t){return null==e?void 0:e.trackEvent(t)}),[e]),o=(0,t.useCallback)((function(){return null==e?void 0:e.trackEvents()}),[e]),i=(0,t.useCallback)((function(t){return null==e?void 0:e.trackLink(t)}),[e]),s=(0,t.useCallback)((function(){}),[]),a=(0,t.useCallback)((function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==e||e.pushInstruction.apply(e,[t].concat(r))}),[e]);return{trackEvent:r,trackEvents:o,trackPageView:n,trackLink:i,enableLinkTracking:s,pushInstruction:a}},ur=function(){var e=lr().trackPageView;return(0,t.useEffect)((function(){e({documentTitle:"GEANT Compendium Landing Page"})}),[e]),t.createElement(Sn,{className:"py-5 grey-container"},t.createElement(Tn,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS"),t.createElement("div",{className:"wordwrap pt-4"},t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."),t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."),t.createElement("p",{style:{textAlign:"left",fontSize:"20px"}},"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form.")))),t.createElement(Tn,null,t.createElement(Vn,null,t.createElement(Sn,{style:{backgroundColor:"white"},className:"rounded-border"},t.createElement(Tn,{className:"justify-content-md-center"},t.createElement(Vn,{align:"center"},t.createElement(ir,{border:"light",style:{width:"18rem"}},t.createElement(St,{to:"/data",className:"link-text"},t.createElement(ir.Img,{src:sr}),t.createElement(ir.Body,null,t.createElement(ir.Title,null,"Compendium Data"),t.createElement(ir.Text,null,t.createElement("span",null,"Statistical representation of the annual Compendium Survey data is available here")))))),t.createElement(Vn,{align:"center"},t.createElement(ir,{border:"light",style:{width:"18rem"}},t.createElement("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer"},t.createElement(ir.Img,{src:ar}),t.createElement(ir.Body,null,t.createElement(ir.Title,null,"Compendium Reports"),t.createElement(ir.Text,null,"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"))))))))))};var cr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pr=t.createContext&&t.createContext(cr),dr=["attr","size","title"];function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(e){return e&&e.map(((e,n)=>t.createElement(e.tag,mr({key:n},e.attr),gr(e.child))))}function yr(e){return n=>t.createElement(vr,hr({attr:mr({},e.attr)},n),gr(e.child))}function vr(e){var n=n=>{var r,{attr:o,size:i,title:s}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,dr),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",hr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,a,{className:r,style:mr(mr({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&t.createElement("title",null,s),e.children)};return void 0!==pr?t.createElement(pr.Consumer,null,(e=>n(e))):n(cr)}function br(e){return yr({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function Cr(e){return yr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(e)}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Er=function(e){var n=e.title,r=e.children,o=e.startCollapsed,i=e.theme,s=void 0===i?"":i,a=Rt((0,t.useState)(!!o),2),l=a[0],u=a[1],c={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"};return s&&(c=xr(xr({},c),{},{color:"black",fontWeight:"bold"})),t.createElement("div",{className:"collapsible-box".concat(s," p-0")},t.createElement(Tn,null,t.createElement(Vn,null,t.createElement("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3"},n)),t.createElement(Vn,{className:"flex-grow-0 flex-shrink-1"},t.createElement("div",{className:"toggle-btn".concat(s," p-").concat(s?3:2),onClick:function(){return u(!l)}},l?t.createElement(Cr,{style:c}):t.createElement(br,{style:c})))),t.createElement("div",{className:"collapsible-content".concat(l?" collapsed":"")},r))},Pr=function(e){var n=e.section;return t.createElement("div",{className:"bold-caps-17pt section-container"},t.createElement("div",{style:{display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"}},t.createElement("span",null,"Compendium ",t.createElement("br",null),t.createElement("span",{style:{float:"right"}},n))),t.createElement("img",{src:ar,style:{maxWidth:"4rem"}}))},Sr=function(e){var n=e.type,r="";return"data"==n?r+=" compendium-data-header":"reports"==n&&(r=" compendium-reports-header"),t.createElement("div",{className:r},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Vn,{sm:8},t.createElement("h1",{className:"bold-caps-30pt",style:{marginTop:"0.5rem"}},t.createElement(St,{to:"data"===n?"/data":"/",style:{textDecoration:"none",color:"white"}},t.createElement("span",null,"Compendium ","data"===n?"Data":"Reports")))),t.createElement(Vn,{sm:4},t.createElement("a",{style:{color:"inherit"},href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer"},t.createElement(Pr,{section:"Reports"}))))))},Or=function(e){var n=e.children,r=e.type,o="";return"data"==r?o+=" compendium-data-banner":"reports"==r&&(o=" compendium-reports-banner"),t.createElement("div",{className:o},t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Tn,null,t.createElement("div",{className:"section-container"},t.createElement("img",{src:sr,style:{maxWidth:"7rem",marginBottom:"1rem"}}),t.createElement("div",{style:{display:"flex",alignSelf:"right"}},t.createElement("div",{className:"center-text",style:{paddingTop:"1rem"}},n)))))))};var Tr=function(e){return e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e}({}),_r=function(e){return e.CSV="CSV",e.EXCEL="EXCEL",e}({}),Vr=function(e){return e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e}({}),Rr={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},Ir={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},kr={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function Ar(){var e=(0,t.useContext)(Ut),n=e.preview,r=e.setPreview,o=(0,t.useContext)(Ft).user,i=Rt(function(e){let n=t.useRef(dt(e)),r=t.useRef(!1),o=Qe(),i=t.useMemo((()=>function(e,t){let n=dt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(o.search,r.current?null:n.current)),[o.search]),s=We(),a=t.useCallback(((e,t)=>{const n=dt("function"==typeof e?e(i):e);r.current=!0,s("?"+n,t)}),[s,i]);return[i,a]}(),1)[0].get("preview");return(0,t.useEffect)((function(){null!==i&&o.permissions.admin&&r(!0)}),[i,r,o]),n}const Dr=function(){Ar();var e=lr().trackPageView;return t.useEffect((function(){e({documentTitle:"Compendium Data"})}),[e]),t.createElement("main",{className:"grow"},t.createElement(Sr,{type:"data"}),t.createElement(Or,{type:"data"},t.createElement("p",{className:"wordwrap"},"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing.")),t.createElement(Sn,{className:"pt-5"},t.createElement(Er,{title:Tr.Organisation},t.createElement("h6",{className:"section-title"},"Budget, Income and Billing"),t.createElement(St,{to:"/budget",className:"link-text-underline"},t.createElement("span",null,"Budget of NRENs per Year")),t.createElement(St,{to:"/funding",className:"link-text-underline"},t.createElement("span",null,"Income Source of NRENs")),t.createElement(St,{to:"/charging",className:"link-text-underline"},t.createElement("span",null,"Charging Mechanism of NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Staff and Projects"),t.createElement(St,{to:"/employee-count",className:"link-text-underline"},t.createElement("span",null,"Number of NREN Employees")),t.createElement(St,{to:"/roles",className:"link-text-underline"},t.createElement("span",null,"Roles of NREN employees (Technical v. Non-Technical)")),t.createElement(St,{to:"/employment",className:"link-text-underline"},t.createElement("span",null,"Types of Employment within NRENs")),t.createElement(St,{to:"/suborganisations",className:"link-text-underline"},t.createElement("span",null,"NREN Sub-Organisations")),t.createElement(St,{to:"/parentorganisation",className:"link-text-underline"},t.createElement("span",null,"NREN Parent Organisations")),t.createElement(St,{to:"/ec-projects",className:"link-text-underline"},t.createElement("span",null,"NREN Involvement in European Commission Projects"))),t.createElement(Er,{title:Tr.Policy,startCollapsed:!0},t.createElement(St,{to:"/policy",className:"link-text-underline"},t.createElement("span",null,"NREN Policies")),t.createElement("h6",{className:"section-title"},"Standards"),t.createElement(St,{to:"/audits",className:"link-text-underline"},t.createElement("span",null,"External and Internal Audits of Information Security Management Systems")),t.createElement(St,{to:"/business-continuity",className:"link-text-underline"},t.createElement("span",null,"NREN Business Continuity Planning")),t.createElement(St,{to:"/central-procurement",className:"link-text-underline"},t.createElement("span",null,"Central Procurement of Software")),t.createElement(St,{to:"/crisis-management",className:"link-text-underline"},t.createElement("span",null,"Crisis Management Procedures")),t.createElement(St,{to:"/crisis-exercise",className:"link-text-underline"},t.createElement("span",null,"Crisis Exercises - NREN Operation and Participation")),t.createElement(St,{to:"/security-control",className:"link-text-underline"},t.createElement("span",null,"Security Controls Used by NRENs")),t.createElement(St,{to:"/services-offered",className:"link-text-underline"},t.createElement("span",null,"Services Offered by NRENs by Types of Users")),t.createElement(St,{to:"/corporate-strategy",className:"link-text-underline"},t.createElement("span",null,"NREN Corporate Strategies ")),t.createElement(St,{to:"/service-level-targets",className:"link-text-underline"},t.createElement("span",null,"NRENs Offering Service Level Targets")),t.createElement(St,{to:"/service-management-framework",className:"link-text-underline"},t.createElement("span",null,"NRENs Operating a Formal Service Management Framework"))),t.createElement(Er,{title:Tr.ConnectedUsers,startCollapsed:!0},t.createElement("h6",{className:"section-title"},"Connected Users"),t.createElement(St,{to:"/institutions-urls",className:"link-text-underline"},t.createElement("span",null,"Webpages Listing Institutions and Organisations Connected to NREN Networks")),t.createElement(St,{to:"/connected-proportion",className:"link-text-underline"},t.createElement("span",null,"Proportion of Different Categories of Institutions Served by NRENs")),t.createElement(St,{to:"/connectivity-level",className:"link-text-underline"},t.createElement("span",null,"Level of IP Connectivity by Institution Type")),t.createElement(St,{to:"/connection-carrier",className:"link-text-underline"},t.createElement("span",null,"Methods of Carrying IP Traffic to Users")),t.createElement(St,{to:"/connectivity-load",className:"link-text-underline"},t.createElement("span",null,"Connectivity Load")),t.createElement(St,{to:"/connectivity-growth",className:"link-text-underline"},t.createElement("span",null,"Connectivity Growth")),t.createElement(St,{to:"/remote-campuses",className:"link-text-underline"},t.createElement("span",null,"NREN Connectivity to Remote Campuses in Other Countries")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Connected Users - Commercial"),t.createElement(St,{to:"/commercial-charging-level",className:"link-text-underline"},t.createElement("span",null,"Commercial Charging Level")),t.createElement(St,{to:"/commercial-connectivity",className:"link-text-underline"},t.createElement("span",null,"Commercial Connectivity"))),t.createElement(Er,{title:Tr.Network,startCollapsed:!0},t.createElement("h6",{className:"section-title"},"Connectivity"),t.createElement(St,{to:"/traffic-volume",className:"link-text-underline"},t.createElement("span",null,"NREN Traffic - NREN Customers & External Networks")),t.createElement(St,{to:"/iru-duration",className:"link-text-underline"},t.createElement("span",null,"Average Duration of IRU leases of Fibre by NRENs")),t.createElement(St,{to:"/fibre-light",className:"link-text-underline"},t.createElement("span",null,"Approaches to lighting NREN fibre networks")),t.createElement(St,{to:"/dark-fibre-lease",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (National)")),t.createElement(St,{to:"/dark-fibre-lease-international",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (International)")),t.createElement(St,{to:"/dark-fibre-installed",className:"link-text-underline"},t.createElement("span",null,"Kilometres of Installed Dark Fibre")),t.createElement(St,{to:"/network-map",className:"link-text-underline"},t.createElement("span",null,"NREN Network Maps")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Performance Monitoring & Management"),t.createElement(St,{to:"/monitoring-tools",className:"link-text-underline"},t.createElement("span",null,"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions")),t.createElement(St,{to:"/pert-team",className:"link-text-underline"},t.createElement("span",null,"NRENs with Performance Enhancement Response Teams")),t.createElement(St,{to:"/passive-monitoring",className:"link-text-underline"},t.createElement("span",null,"Methods for Passively Monitoring International Traffic")),t.createElement(St,{to:"/traffic-stats",className:"link-text-underline"},t.createElement("span",null,"Traffic Statistics ")),t.createElement(St,{to:"/weather-map",className:"link-text-underline"},t.createElement("span",null,"NREN Online Network Weather Maps ")),t.createElement(St,{to:"/certificate-provider",className:"link-text-underline"},t.createElement("span",null,"Certification Services used by NRENs")),t.createElement(St,{to:"/siem-vendors",className:"link-text-underline"},t.createElement("span",null,"Vendors of SIEM/SOC systems used by NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Alienwave"),t.createElement(St,{to:"/alien-wave",className:"link-text-underline"},t.createElement("span",null,"NREN Use of 3rd Party Alienwave/Lightpath Services")),t.createElement(St,{to:"/alien-wave-internal",className:"link-text-underline"},t.createElement("span",null,"Internal NREN Use of Alien Waves")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Capacity"),t.createElement(St,{to:"/capacity-largest-link",className:"link-text-underline"},t.createElement("span",null,"Capacity of the Largest Link in an NREN Network")),t.createElement(St,{to:"/external-connections",className:"link-text-underline"},t.createElement("span",null,"NREN External IP Connections")),t.createElement(St,{to:"/capacity-core-ip",className:"link-text-underline"},t.createElement("span",null,"NREN Core IP Capacity")),t.createElement(St,{to:"/non-rne-peers",className:"link-text-underline"},t.createElement("span",null,"Number of Non-R&E Networks NRENs Peer With")),t.createElement(St,{to:"/traffic-ratio",className:"link-text-underline"},t.createElement("span",null,"Types of traffic in NREN networks")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"),t.createElement(St,{to:"/ops-automation",className:"link-text-underline"},t.createElement("span",null,"NREN Automation of Operational Processes")),t.createElement(St,{to:"/network-automation",className:"link-text-underline"},t.createElement("span",null,"Network Tasks for which NRENs Use Automation ")),t.createElement(St,{to:"/nfv",className:"link-text-underline"},t.createElement("span",null,"Kinds of Network Function Virtualisation used by NRENs"))),t.createElement(Er,{title:Tr.Services,startCollapsed:!0},t.createElement(St,{to:"/network-services",className:"link-text-underline"},t.createElement("span",null,"Network services")),t.createElement(St,{to:"/isp-support-services",className:"link-text-underline"},t.createElement("span",null,"ISP support services")),t.createElement(St,{to:"/security-services",className:"link-text-underline"},t.createElement("span",null,"Security services")),t.createElement(St,{to:"/identity-services",className:"link-text-underline"},t.createElement("span",null,"Identity services")),t.createElement(St,{to:"/collaboration-services",className:"link-text-underline"},t.createElement("span",null,"Collaboration services")),t.createElement(St,{to:"/multimedia-services",className:"link-text-underline"},t.createElement("span",null,"Multimedia services")),t.createElement(St,{to:"/storage-and-hosting-services",className:"link-text-underline"},t.createElement("span",null,"Storage and hosting services")),t.createElement(St,{to:"/professional-services",className:"link-text-underline"},t.createElement("span",null,"Professional services")))))},Nr=!("undefined"==typeof window||!window.document||!window.document.createElement);var Mr=!1,Lr=!1;try{var jr={get passive(){return Mr=!0},get once(){return Lr=Mr=!0}};Nr&&(window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,!0))}catch(qS){}const Fr=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Lr){var o=r.once,i=r.capture,s=n;!Lr&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=s),e.addEventListener(t,s,Mr?r:i)}e.addEventListener(t,n,r)};function Br(e){return e&&e.ownerDocument||document}const qr=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var Hr;function zr(e){if((!Hr&&0!==Hr||e)&&Nr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Hr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Hr}function Qr(){return(0,t.useState)(null)}const Ur=function(e){const n=(0,t.useRef)(e);return(0,t.useEffect)((()=>{n.current=e}),[e]),n};function Wr(e){const n=Ur(e);return(0,t.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const $r=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,Gr=function(e,n){return(0,t.useMemo)((()=>function(e,t){const n=$r(e),r=$r(t);return e=>{n&&n(e),r&&r(e)}}(e,n)),[e,n])};function Jr(e){const n=function(e){const n=(0,t.useRef)(e);return n.current=e,n}(e);(0,t.useEffect)((()=>()=>n.current()),[])}var Yr=/([A-Z])/g,Kr=/^ms-/;function Xr(e){return function(e){return e.replace(Yr,"-$1").toLowerCase()}(e).replace(Kr,"-ms-")}var Zr=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const eo=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Xr(t))||function(e,t){return function(e){var t=Br(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Xr(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Zr.test(e))}(o)?r+=o+"("+i+") ":n+=Xr(o)+": "+i+";":e.style.removeProperty(Xr(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},to=function(e,t,n,r){return Fr(e,t,n,r),function(){qr(e,t,n,r)}};function no(e,t,n,r){var o,i;null==n&&(i=-1===(o=eo(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=to(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),a=to(e,"transitionend",t);return function(){s(),a()}}function ro(e){void 0===e&&(e=Br());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}function oo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function io(){const e=(0,t.useRef)(!0),n=(0,t.useRef)((()=>e.current));return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),n.current}function so(e){const n=(0,t.useRef)(null);return(0,t.useEffect)((()=>{n.current=e})),n.current}const ao="data-rr-ui-";function lo(e){return`${ao}${e}`}const uo=lo("modal-open"),co=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(eo(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(uo,""),eo(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(uo),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},po=(0,t.createContext)(Nr?window:void 0);function ho(){return(0,t.useContext)(po)}po.Provider;const fo=(e,t)=>Nr?null==e?(t||Br()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null,mo=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,go="undefined"!=typeof document||mo?t.useLayoutEffect:t.useEffect,yo=function({children:e,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const s=(0,t.useRef)(null),a=(0,t.useRef)(n),l=Wr(r);(0,t.useEffect)((()=>{n?a.current=!0:l(s.current)}),[n,l]);const u=Gr(s,e.ref),c=(0,t.cloneElement)(e,{ref:u});return n?c:i||!a.current&&o?null:c},vo=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];const bo=["component"],Co=t.forwardRef(((e,n)=>{let{component:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,bo);const i=function(e){let{onEnter:n,onEntering:r,onEntered:o,onExit:i,onExiting:s,onExited:a,addEndListener:l,children:u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,vo);const{major:p}=function(){const e=t.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}(),d=p>=19?u.props.ref:u.ref,h=(0,t.useRef)(null),f=Gr(h,"function"==typeof u?null:d),m=e=>t=>{e&&h.current&&e(h.current,t)},g=(0,t.useCallback)(m(n),[n]),y=(0,t.useCallback)(m(r),[r]),v=(0,t.useCallback)(m(o),[o]),b=(0,t.useCallback)(m(i),[i]),C=(0,t.useCallback)(m(s),[s]),w=(0,t.useCallback)(m(a),[a]),x=(0,t.useCallback)(m(l),[l]);return Object.assign({},c,{nodeRef:h},n&&{onEnter:g},r&&{onEntering:y},o&&{onEntered:v},i&&{onExit:b},s&&{onExiting:C},a&&{onExited:w},l&&{addEndListener:x},{children:"function"==typeof u?(e,t)=>u(e,Object.assign({},t,{ref:f})):(0,t.cloneElement)(u,{ref:f})})}(o);return(0,gn.jsx)(r,Object.assign({ref:n},i))})),wo=Co;function xo({children:e,in:n,onExited:r,onEntered:o,transition:i}){const[s,a]=(0,t.useState)(!n);n&&s&&a(!1);const l=function({in:e,onTransition:n}){const r=(0,t.useRef)(null),o=(0,t.useRef)(!0),i=Wr(n);return go((()=>{if(!r.current)return;let t=!1;return i({in:e,element:r.current,initial:o.current,isStale:()=>t}),()=>{t=!0}}),[e,i]),go((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(a(!0),null==r||r(e.element)))}),(t=>{throw e.in||a(!0),t}))}}),u=Gr(l,e.ref);return s&&!n?null:(0,t.cloneElement)(e,{ref:u})}function Eo(e,t,n){return e?(0,gn.jsx)(wo,Object.assign({},n,{component:e})):t?(0,gn.jsx)(xo,Object.assign({},n,{transition:t})):(0,gn.jsx)(yo,Object.assign({},n))}const Po=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let So;const Oo=(0,t.forwardRef)(((e,n)=>{let{show:r=!1,role:o="dialog",className:i,style:s,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:p,transition:d,runTransition:h,backdropTransition:f,runBackdropTransition:m,autoFocus:g=!0,enforceFocus:y=!0,restoreFocus:v=!0,restoreFocusOptions:b,renderDialog:C,renderBackdrop:w=(e=>(0,gn.jsx)("div",Object.assign({},e))),manager:x,container:E,onShow:P,onHide:S=(()=>{}),onExit:O,onExited:T,onExiting:_,onEnter:V,onEntering:R,onEntered:I}=e,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Po);const A=ho(),D=function(e,n){const r=ho(),[o,i]=(0,t.useState)((()=>fo(e,null==r?void 0:r.document)));if(!o){const t=fo(e);t&&i(t)}return(0,t.useEffect)((()=>{}),[n,o]),(0,t.useEffect)((()=>{const t=fo(e);t!==o&&i(t)}),[e,o]),o}(E),N=function(e){const n=ho(),r=e||function(e){return So||(So=new co({ownerDocument:null==e?void 0:e.document})),So}(n),o=(0,t.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,t.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,t.useCallback)((e=>{o.current.backdrop=e}),[])})}(x),M=io(),L=so(r),[j,F]=(0,t.useState)(!r),B=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(()=>N),[N]),Nr&&!L&&r&&(B.current=ro(null==A?void 0:A.document)),r&&j&&F(!1);const q=Wr((()=>{if(N.add(),$.current=to(document,"keydown",U),W.current=to(document,"focus",(()=>setTimeout(z)),!0),P&&P(),g){var e,t;const n=ro(null!=(e=null==(t=N.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);N.dialog&&n&&!oo(N.dialog,n)&&(B.current=n,N.dialog.focus())}})),H=Wr((()=>{var e;N.remove(),null==$.current||$.current(),null==W.current||W.current(),v&&(null==(e=B.current)||null==e.focus||e.focus(b),B.current=null)}));(0,t.useEffect)((()=>{r&&D&&q()}),[r,D,q]),(0,t.useEffect)((()=>{j&&H()}),[j,H]),Jr((()=>{H()}));const z=Wr((()=>{if(!y||!M()||!N.isTopModal())return;const e=ro(null==A?void 0:A.document);N.dialog&&e&&!oo(N.dialog,e)&&N.dialog.focus()})),Q=Wr((e=>{e.target===e.currentTarget&&(null==c||c(e),!0===l&&S())})),U=Wr((e=>{u&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&N.isTopModal()&&(null==p||p(e),e.defaultPrevented||S())})),W=(0,t.useRef)(),$=(0,t.useRef)();if(!D)return null;const G=Object.assign({role:o,ref:N.setDialogRef,"aria-modal":"dialog"===o||void 0},k,{style:s,className:i,tabIndex:-1});let J=C?C(G):(0,gn.jsx)("div",Object.assign({},G,{children:t.cloneElement(a,{role:"document"})}));J=Eo(d,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:O,onExiting:_,onExited:(...e)=>{F(!0),null==T||T(...e)},onEnter:V,onEntering:R,onEntered:I,children:J});let Y=null;return l&&(Y=w({ref:N.setBackdropRef,onClick:Q}),Y=Eo(f,m,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Y})),(0,gn.jsx)(gn.Fragment,{children:ut.createPortal((0,gn.jsxs)(gn.Fragment,{children:[Y,J]}),D)})}));Oo.displayName="Modal";const To=Object.assign(Oo,{Manager:co});var _o=Function.prototype.bind.call(Function.prototype.call,[].slice);function Vo(e,t){return _o(e.querySelectorAll(t))}function Ro(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Io=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ko=".sticky-top",Ao=".navbar-toggler";class Do extends co{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,eo(t,{[e]:`${parseFloat(eo(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],eo(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vo(t,Io).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Vo(t,ko).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),Vo(t,Ao).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ro(n.className,r):n.setAttribute("class",Ro(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vo(t,Io).forEach((e=>this.restore(o,e))),Vo(t,ko).forEach((e=>this.restore(i,e))),Vo(t,Ao).forEach((e=>this.restore(i,e)))}}let No;function Mo(e,t){return Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mo(e,t)}const Lo=t.createContext(null);var jo="unmounted",Fo="exited",Bo="entering",qo="entered",Ho="exiting",zo=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fo,r.appearStatus=Bo):o=qo:o=t.unmountOnExit||t.mountOnEnter?jo:Fo,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jo?{status:Fo}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Bo&&n!==qo&&(t=Bo):n!==Bo&&n!==qo||(t=Ho)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fo&&this.setState({status:jo})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ut.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:Bo},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:qo},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:qo},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ut.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Ho},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fo},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fo},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===jo)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Yt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Lo.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function Qo(){}zo.contextType=Lo,zo.propTypes={},zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qo,onEntering:Qo,onEntered:Qo,onExit:Qo,onExiting:Qo,onExited:Qo},zo.UNMOUNTED=jo,zo.EXITED=Fo,zo.ENTERING=Bo,zo.ENTERED=qo,zo.EXITING=Ho;const Uo=zo;function Wo(e,t){const n=eo(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function $o(e,t){const n=Wo(e,"transitionDuration"),r=Wo(e,"transitionDelay"),o=no(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Go(e){e.offsetHeight}const Jo=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=Gr(d,u),f=e=>{var t;h((t=e)&&"setState"in t?ut.findDOMNode(t):null!=t?t:null)},m=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,t.useCallback)(m(e),[e]),y=(0,t.useCallback)(m(n),[n]),v=(0,t.useCallback)(m(r),[r]),b=(0,t.useCallback)(m(o),[o]),C=(0,t.useCallback)(m(i),[i]),w=(0,t.useCallback)(m(s),[s]),x=(0,t.useCallback)(m(a),[a]);return(0,gn.jsx)(Uo,{ref:p,...c,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:C,addEndListener:x,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),Yo=Jo,Ko={[Bo]:"show",[qo]:"show"},Xo=t.forwardRef((({className:e,children:n,transitionClasses:r={},onEnter:o,...i},s)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,t.useCallback)(((e,t)=>{Go(e),null==o||o(e,t)}),[o]);return(0,gn.jsx)(Yo,{ref:s,addEndListener:$o,...a,onEnter:l,childRef:n.ref,children:(o,i)=>t.cloneElement(n,{...i,className:mn()("fade",e,n.props.className,Ko[o],r[o])})})}));Xo.displayName="Fade";const Zo=Xo,ei=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"modal-body"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));ei.displayName="ModalBody";const ti=ei,ni=t.createContext({onHide(){}}),ri=t.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:s,scrollable:a,...l},u)=>{const c=`${e=Cn(e,"modal")}-dialog`,p="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return(0,gn.jsx)("div",{...l,ref:u,className:mn()(c,t,o&&`${e}-${o}`,r&&`${c}-centered`,a&&`${c}-scrollable`,i&&p),children:(0,gn.jsx)("div",{className:mn()(`${e}-content`,n),children:s})})}));ri.displayName="ModalDialog";const oi=ri,ii=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"modal-footer"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));ii.displayName="ModalFooter";const si=ii;var ai=o(556),li=o.n(ai);const ui={"aria-label":li().string,onClick:li().func,variant:li().oneOf(["white"])},ci=t.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,gn.jsx)("button",{ref:o,type:"button",className:mn()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));ci.displayName="CloseButton",ci.propTypes=ui;const pi=ci,di=t.forwardRef((({closeLabel:e="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...s},a)=>{const l=(0,t.useContext)(ni),u=Wr((()=>{null==l||l.onHide(),null==o||o()}));return(0,gn.jsxs)("div",{ref:a,...s,children:[i,r&&(0,gn.jsx)(pi,{"aria-label":e,variant:n,onClick:u})]})})),hi=di,fi=t.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=Cn(e,"modal-header"),(0,gn.jsx)(hi,{ref:i,...o,className:mn()(t,e),closeLabel:n,closeButton:r}))));fi.displayName="ModalHeader";const mi=fi,gi=Jn("h4"),yi=t.forwardRef((({className:e,bsPrefix:t,as:n=gi,...r},o)=>(t=Cn(t,"modal-title"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));yi.displayName="ModalTitle";const vi=yi;function bi(e){return(0,gn.jsx)(Zo,{...e,timeout:null})}function Ci(e){return(0,gn.jsx)(Zo,{...e,timeout:null})}const wi=t.forwardRef((({bsPrefix:e,className:n,style:r,dialogClassName:o,contentClassName:i,children:s,dialogAs:a=oi,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":p,show:d=!1,animation:h=!0,backdrop:f=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:y,onHide:v,container:b,autoFocus:C=!0,enforceFocus:w=!0,restoreFocus:x=!0,restoreFocusOptions:E,onEntered:P,onExit:S,onExiting:O,onEnter:T,onEntering:_,onExited:V,backdropClassName:R,manager:I,...k},A)=>{const[D,N]=(0,t.useState)({}),[M,L]=(0,t.useState)(!1),j=(0,t.useRef)(!1),F=(0,t.useRef)(!1),B=(0,t.useRef)(null),[q,H]=Qr(),z=Gr(A,H),Q=Wr(v),U=En();e=Cn(e,"modal");const W=(0,t.useMemo)((()=>({onHide:Q})),[Q]);function $(){return I||function(e){return No||(No=new Do(e)),No}({isRTL:U})}function G(e){if(!Nr)return;const t=$().getScrollbarWidth()>0,n=e.scrollHeight>Br(e).documentElement.clientHeight;N({paddingRight:t&&!n?zr():void 0,paddingLeft:!t&&n?zr():void 0})}const J=Wr((()=>{q&&G(q.dialog)}));Jr((()=>{qr(window,"resize",J),null==B.current||B.current()}));const Y=()=>{j.current=!0},K=e=>{j.current&&q&&e.target===q.dialog&&(F.current=!0),j.current=!1},X=()=>{L(!0),B.current=no(q.dialog,(()=>{L(!1)}))},Z=e=>{"static"!==f?F.current||e.target!==e.currentTarget?F.current=!1:null==v||v():(e=>{e.target===e.currentTarget&&X()})(e)},ee=(0,t.useCallback)((t=>(0,gn.jsx)("div",{...t,className:mn()(`${e}-backdrop`,R,!h&&"show")})),[h,R,e]),te={...r,...D};return te.display="block",(0,gn.jsx)(ni.Provider,{value:W,children:(0,gn.jsx)(To,{show:d,ref:z,backdrop:f,container:b,keyboard:!0,autoFocus:C,enforceFocus:w,restoreFocus:x,restoreFocusOptions:E,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===f&&X())},onShow:y,onHide:v,onEnter:(e,t)=>{e&&G(e),null==T||T(e,t)},onEntering:(e,t)=>{null==_||_(e,t),Fr(window,"resize",J)},onEntered:P,onExit:e=>{null==B.current||B.current(),null==S||S(e)},onExiting:O,onExited:e=>{e&&(e.style.display=""),null==V||V(e),qr(window,"resize",J)},manager:$(),transition:h?bi:void 0,backdropTransition:h?Ci:void 0,renderBackdrop:ee,renderDialog:t=>(0,gn.jsx)("div",{role:"dialog",...t,style:te,className:mn()(n,e,M&&`${e}-static`,!h&&"show"),onClick:f?Z:void 0,onMouseUp:K,"data-bs-theme":l,"aria-label":p,"aria-labelledby":u,"aria-describedby":c,children:(0,gn.jsx)(a,{...k,onMouseDown:Y,className:o,contentClassName:i,children:s})})})})}));wi.displayName="Modal";const xi=Object.assign(wi,{Body:ti,Header:mi,Title:vi,Footer:si,Dialog:oi,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Ei={type:li().string,tooltip:li().bool,as:li().elementType},Pi=t.forwardRef((({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>(0,gn.jsx)(e,{...o,ref:i,className:mn()(t,`${n}-${r?"tooltip":"feedback"}`)})));Pi.displayName="Feedback",Pi.propTypes=Ei;const Si=Pi,Oi=t.createContext({}),Ti=t.forwardRef((({id:e,bsPrefix:n,className:r,type:o="checkbox",isValid:i=!1,isInvalid:s=!1,as:a="input",...l},u)=>{const{controlId:c}=(0,t.useContext)(Oi);return n=Cn(n,"form-check-input"),(0,gn.jsx)(a,{...l,ref:u,type:o,id:e||c,className:mn()(r,n,i&&"is-valid",s&&"is-invalid")})}));Ti.displayName="FormCheckInput";const _i=Ti,Vi=t.forwardRef((({bsPrefix:e,className:n,htmlFor:r,...o},i)=>{const{controlId:s}=(0,t.useContext)(Oi);return e=Cn(e,"form-check-label"),(0,gn.jsx)("label",{...o,ref:i,htmlFor:r||s,className:mn()(n,e)})}));Vi.displayName="FormCheckLabel";const Ri=Vi,Ii=t.forwardRef((({id:e,bsPrefix:n,bsSwitchPrefix:r,inline:o=!1,reverse:i=!1,disabled:s=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:p,className:d,style:h,title:f="",type:m="checkbox",label:g,children:y,as:v="input",...b},C)=>{n=Cn(n,"form-check"),r=Cn(r,"form-switch");const{controlId:w}=(0,t.useContext)(Oi),x=(0,t.useMemo)((()=>({controlId:e||w})),[w,e]),E=!y&&null!=g&&!1!==g||function(e,n){return t.Children.toArray(e).some((e=>t.isValidElement(e)&&e.type===n))}(y,Ri),P=(0,gn.jsx)(_i,{...b,type:"switch"===m?"checkbox":m,ref:C,isValid:a,isInvalid:l,disabled:s,as:v});return(0,gn.jsx)(Oi.Provider,{value:x,children:(0,gn.jsx)("div",{style:h,className:mn()(d,E&&n,o&&`${n}-inline`,i&&`${n}-reverse`,"switch"===m&&r),children:y||(0,gn.jsxs)(gn.Fragment,{children:[P,E&&(0,gn.jsx)(Ri,{title:f,children:g}),c&&(0,gn.jsx)(Si,{type:p,tooltip:u,children:c})]})})})}));Ii.displayName="FormCheck";const ki=Object.assign(Ii,{Input:_i,Label:Ri});var Ai=o(771),Di=o.n(Ai);const Ni=t.forwardRef((({bsPrefix:e,type:n,size:r,htmlSize:o,id:i,className:s,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:p="input",...d},h)=>{const{controlId:f}=(0,t.useContext)(Oi);return e=Cn(e,"form-control"),(0,gn.jsx)(p,{...d,type:n,size:o,ref:h,readOnly:c,id:i||f,className:mn()(s,u?`${e}-plaintext`:e,r&&`${e}-${r}`,"color"===n&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})}));Ni.displayName="FormControl";const Mi=Object.assign(Ni,{Feedback:Si}),Li=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Cn(t,"form-floating"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));Li.displayName="FormFloating";const ji=Li,Fi=t.forwardRef((({controlId:e,as:n="div",...r},o)=>{const i=(0,t.useMemo)((()=>({controlId:e})),[e]);return(0,gn.jsx)(Oi.Provider,{value:i,children:(0,gn.jsx)(n,{...r,ref:o})})}));Fi.displayName="FormGroup";const Bi=Fi,qi=t.forwardRef((({as:e="label",bsPrefix:n,column:r=!1,visuallyHidden:o=!1,className:i,htmlFor:s,...a},l)=>{const{controlId:u}=(0,t.useContext)(Oi);n=Cn(n,"form-label");let c="col-form-label";"string"==typeof r&&(c=`${c} ${c}-${r}`);const p=mn()(i,n,o&&"visually-hidden",r&&c);return s=s||u,r?(0,gn.jsx)(Vn,{ref:l,as:"label",className:p,htmlFor:s,...a}):(0,gn.jsx)(e,{ref:l,className:p,htmlFor:s,...a})}));qi.displayName="FormLabel";const Hi=qi,zi=t.forwardRef((({bsPrefix:e,className:n,id:r,...o},i)=>{const{controlId:s}=(0,t.useContext)(Oi);return e=Cn(e,"form-range"),(0,gn.jsx)("input",{...o,type:"range",ref:i,className:mn()(n,e),id:r||s})}));zi.displayName="FormRange";const Qi=zi,Ui=t.forwardRef((({bsPrefix:e,size:n,htmlSize:r,className:o,isValid:i=!1,isInvalid:s=!1,id:a,...l},u)=>{const{controlId:c}=(0,t.useContext)(Oi);return e=Cn(e,"form-select"),(0,gn.jsx)("select",{...l,size:r,ref:u,className:mn()(o,e,n&&`${e}-${n}`,i&&"is-valid",s&&"is-invalid"),id:a||c})}));Ui.displayName="FormSelect";const Wi=Ui,$i=t.forwardRef((({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=Cn(e,"form-text"),(0,gn.jsx)(n,{...o,ref:i,className:mn()(t,e,r&&"text-muted")}))));$i.displayName="FormText";const Gi=$i,Ji=t.forwardRef(((e,t)=>(0,gn.jsx)(ki,{...e,ref:t,type:"switch"})));Ji.displayName="Switch";const Yi=Object.assign(Ji,{Input:ki.Input,Label:ki.Label}),Ki=t.forwardRef((({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=Cn(e,"form-floating"),(0,gn.jsxs)(Bi,{ref:s,className:mn()(t,e),controlId:r,...i,children:[n,(0,gn.jsx)("label",{htmlFor:r,children:o})]}))));Ki.displayName="FloatingLabel";const Xi=Ki,Zi={_ref:li().any,validated:li().bool,as:li().elementType},es=t.forwardRef((({className:e,validated:t,as:n="form",...r},o)=>(0,gn.jsx)(n,{...r,ref:o,className:mn()(e,t&&"was-validated")})));es.displayName="Form",es.propTypes=Zi;const ts=Object.assign(es,{Group:Bi,Control:Mi,Floating:ji,Check:ki,Switch:Yi,Label:Hi,Text:Gi,Range:Qi,Select:Wi,FloatingLabel:Xi}),ns=["as","disabled"];function rs({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=n||null!=r||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==s||s(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}const os=t.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ns);const[i,{tagName:s}]=rs(Object.assign({tagName:n,disabled:r},o));return(0,gn.jsx)(s,Object.assign({},o,i,{ref:t}))}));os.displayName="Button";const is=os,ss=t.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=Cn(t,"btn"),[c,{tagName:p}]=rs({tagName:e,disabled:i,...a}),d=p;return(0,gn.jsx)(d,{...c,...a,ref:l,disabled:i,className:mn()(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})}));ss.displayName="Button";const as=ss,ls=function(){var e=(0,t.useContext)(an),n=e.consent,r=e.setConsent,o=Rt((0,t.useState)(null===n),2),i=o[0],s=o[1],a=function(){s(!1),window.location.reload()},l=Rt((0,t.useState)(!0),2),u=l[0],c=l[1],p=function(e){var t=new Date;t.setDate(t.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:e,expiry:t})),r(e)};return t.createElement(xi,{show:i,centered:!0},t.createElement(xi.Header,{closeButton:!0},t.createElement(xi.Title,null,"Privacy on this site")),t.createElement(xi.Body,null,t.createElement("p",null,"On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",t.createElement("a",{href:"https://geant.org/Privacy-Notice/"},"Privacy Policy"),".",t.createElement("br",null),"Below, you can choose to accept or decline to have this data collected."),t.createElement(ts,null,t.createElement(ts.Group,{className:"mb-3"},t.createElement(ts.Check,{type:"checkbox",label:"Analytics",checked:u,onChange:function(){return c(!u)}}),t.createElement(ts.Text,{className:"text-muted"},"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it.")))),t.createElement(xi.Footer,null,t.createElement(as,{variant:"secondary",onClick:function(){p(!1),a()}},"Decline all"),t.createElement(as,{variant:"primary",onClick:function(){p(u),a()}},"Save consent for 30 days")))};function us(e){return e+.5|0}const cs=(e,t,n)=>Math.max(Math.min(e,n),t);function ps(e){return cs(us(2.55*e),0,255)}function ds(e){return cs(us(255*e),0,255)}function hs(e){return cs(us(e/2.55)/100,0,1)}function fs(e){return cs(us(100*e),0,100)}const ms={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},gs=[..."0123456789ABCDEF"],ys=e=>gs[15&e],vs=e=>gs[(240&e)>>4]+gs[15&e],bs=e=>(240&e)>>4==(15&e);const Cs=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ws(e,t,n){const r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function xs(e,t,n){const r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Es(e,t,n){const r=ws(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function Ps(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=Math.min(t,n,r),s=(o+i)/2;let a,l,u;return o!==i&&(u=o-i,l=s>.5?u/(2-o-i):u/(o+i),a=function(e,t,n,r,o){return e===o?(t-n)/r+(t<n?6:0):t===o?(n-e)/r+2:(e-t)/r+4}(t,n,r,u,o),a=60*a+.5),[0|a,l||0,s]}function Ss(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ds)}function Os(e,t,n){return Ss(ws,e,t,n)}function Ts(e){return(e%360+360)%360}const _s={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Rs;const Is=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ks=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,As=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ds(e,t,n){if(e){let r=Ps(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Os(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Ns(e,t){return e?Object.assign(t||{},e):e}function Ms(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ds(e[3]))):(t=Ns(e,{r:0,g:0,b:0,a:1})).a=ds(t.a),t}function Ls(e){return"r"===e.charAt(0)?function(e){const t=Is.exec(e);let n,r,o,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?ps(e):cs(255*e,0,255)}return n=+t[1],r=+t[3],o=+t[5],n=255&(t[2]?ps(n):cs(n,0,255)),r=255&(t[4]?ps(r):cs(r,0,255)),o=255&(t[6]?ps(o):cs(o,0,255)),{r:n,g:r,b:o,a:i}}}(e):function(e){const t=Cs.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?ps(+t[5]):ds(+t[5]));const o=Ts(+t[2]),i=+t[3]/100,s=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return Ss(Es,e,t,n)}(o,i,s):"hsv"===t[1]?function(e,t,n){return Ss(xs,e,t,n)}(o,i,s):Os(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}(e)}class js{constructor(e){if(e instanceof js)return e;const t=typeof e;let n;var r,o,i;"object"===t?n=Ms(e):"string"===t&&(i=(r=e).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*ms[r[1]],g:255&17*ms[r[2]],b:255&17*ms[r[3]],a:5===i?17*ms[r[4]]:255}:7!==i&&9!==i||(o={r:ms[r[1]]<<4|ms[r[2]],g:ms[r[3]]<<4|ms[r[4]],b:ms[r[5]]<<4|ms[r[6]],a:9===i?ms[r[7]]<<4|ms[r[8]]:255})),n=o||function(e){Rs||(Rs=function(){const e={},t=Object.keys(Vs),n=Object.keys(_s);let r,o,i,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],o=0;o<n.length;o++)i=n[o],a=a.replace(i,_s[i]);i=parseInt(Vs[s],16),e[a]=[i>>16&255,i>>8&255,255&i]}return e}(),Rs.transparent=[0,0,0,0]);const t=Rs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||Ls(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ns(this._rgb);return e&&(e.a=hs(e.a)),e}set rgb(e){this._rgb=Ms(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${hs(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(e){var t=(e=>bs(e.r)&&bs(e.g)&&bs(e.b)&&bs(e.a))(e)?ys:vs;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Ps(e),n=t[0],r=fs(t[1]),o=fs(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${hs(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let o;const i=t===o?.5:t,s=2*i-1,a=n.a-r.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;o=1-l,n.r=255&l*n.r+o*r.r+.5,n.g=255&l*n.g+o*r.g+.5,n.b=255&l*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=As(hs(e.r)),o=As(hs(e.g)),i=As(hs(e.b));return{r:ds(ks(r+n*(As(hs(t.r))-r))),g:ds(ks(o+n*(As(hs(t.g))-o))),b:ds(ks(i+n*(As(hs(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new js(this.rgb)}alpha(e){return this._rgb.a=ds(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=us(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ds(this._rgb,2,e),this}darken(e){return Ds(this._rgb,2,-e),this}saturate(e){return Ds(this._rgb,1,e),this}desaturate(e){return Ds(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Ps(e);n[0]=Ts(n[0]+t),n=Os(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Fs(){}const Bs=(()=>{let e=0;return()=>e++})();function qs(e){return null==e}function Hs(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function zs(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Qs(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Us(e,t){return Qs(e)?e:t}function Ws(e,t){return void 0===e?t:e}function $s(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Gs(e,t,n,r){let o,i,s;if(Hs(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o);else if(zs(e))for(s=Object.keys(e),i=s.length,o=0;o<i;o++)t.call(n,e[s[o]],s[o])}function Js(e,t){let n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function Ys(e){if(Hs(e))return e.map(Ys);if(zs(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let o=0;for(;o<r;++o)t[n[o]]=Ys(e[n[o]]);return t}return e}function Ks(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Xs(e,t,n,r){if(!Ks(e))return;const o=t[e],i=n[e];zs(o)&&zs(i)?Zs(o,i,r):t[e]=Ys(i)}function Zs(e,t,n){const r=Hs(t)?t:[t],o=r.length;if(!zs(e))return e;const i=(n=n||{}).merger||Xs;let s;for(let t=0;t<o;++t){if(s=r[t],!zs(s))continue;const o=Object.keys(s);for(let t=0,r=o.length;t<r;++t)i(o[t],e,s,n)}return e}function ea(e,t){return Zs(e,t,{merger:ta})}function ta(e,t,n){if(!Ks(e))return;const r=t[e],o=n[e];zs(r)&&zs(o)?ea(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ys(o))}const na={"":e=>e,x:e=>e.x,y:e=>e.y};function ra(e,t){const n=na[t]||(na[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function oa(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ia=e=>void 0!==e,sa=e=>"function"==typeof e,aa=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},la=Math.PI,ua=2*la,ca=ua+la,pa=Number.POSITIVE_INFINITY,da=la/180,ha=la/2,fa=la/4,ma=2*la/3,ga=Math.log10,ya=Math.sign;function va(e,t,n){return Math.abs(e-t)<n}function ba(e){const t=Math.round(e);e=va(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ga(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Ca(e){return!isNaN(parseFloat(e))&&isFinite(e)}function wa(e){return e*(la/180)}function xa(e){if(!Qs(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Ea(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*la&&(i+=ua),{angle:i,distance:o}}function Pa(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Sa(e,t){return(e-t+ca)%ua-la}function Oa(e){return(e%ua+ua)%ua}function Ta(e,t,n,r){const o=Oa(e),i=Oa(t),s=Oa(n),a=Oa(i-o),l=Oa(s-o),u=Oa(o-i),c=Oa(o-s);return o===i||o===s||r&&i===s||a>l&&u<c}function _a(e,t,n){return Math.max(t,Math.min(n,e))}function Va(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Ra(e,t,n){n=n||(n=>e[n]<t);let r,o=e.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const Ia=(e,t,n,r)=>Ra(e,n,r?r=>{const o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),ka=(e,t,n)=>Ra(e,n,(r=>e[r][t]>=n)),Aa=["push","pop","shift","splice","unshift"];function Da(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(Aa.forEach((t=>{delete e[t]})),delete e._chartjs)}const Na="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Ma(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,Na.call(window,(()=>{r=!1,e.apply(t,n)})))}}const La=e=>"start"===e?"left":"end"===e?"right":"center",ja=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const Fa=e=>0===e||1===e,Ba=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ua/n),qa=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ua/n)+1,Ha={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ha),easeOutSine:e=>Math.sin(e*ha),easeInOutSine:e=>-.5*(Math.cos(la*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Fa(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Fa(e)?e:Ba(e,.075,.3),easeOutElastic:e=>Fa(e)?e:qa(e,.075,.3),easeInOutElastic(e){const t=.1125;return Fa(e)?e:e<.5?.5*Ba(2*e,t,.45):.5+.5*qa(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Ha.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Ha.easeInBounce(2*e):.5*Ha.easeOutBounce(2*e-1)+.5};function za(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Qa(e){return za(e)?e:new js(e)}function Ua(e){return za(e)?e:new js(e).saturate(.5).darken(.1).hexString()}const Wa=["x","y","borderWidth","radius","tension"],$a=["color","borderColor","backgroundColor"],Ga=new Map;function Ja(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Ga.get(n);return r||(r=new Intl.NumberFormat(e,t),Ga.set(n,r)),r}(t,n).format(e)}const Ya={values:e=>Hs(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const s=ga(Math.abs(i)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ja(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ga(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ya.numeric.call(this,e,t,n):""}};var Ka={formatters:Ya};const Xa=Object.create(null),Za=Object.create(null);function el(e,t){if(!t)return e;const n=t.split(".");for(let t=0,r=n.length;t<r;++t){const r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tl(e,t,n){return"string"==typeof t?Zs(el(e,t),n):Zs(el(e,""),t)}class nl{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ua(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ua(t.borderColor),this.hoverColor=(e,t)=>Ua(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tl(this,e,t)}get(e){return el(this,e)}describe(e,t){return tl(Za,e,t)}override(e,t){return tl(Xa,e,t)}route(e,t,n,r){const o=el(this,e),i=el(this,n),s="_"+t;Object.defineProperties(o,{[s]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=i[r];return zs(e)?Object.assign({},t,e):Ws(e,t)},set(e){this[s]=e}}})}apply(e){e.forEach((e=>e(this)))}}var rl=new nl({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:$a},numbers:{type:"number",properties:Wa}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ka.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ol(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function il(e,t,n){const r=e.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((t-o)*r)/r+o}function sl(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function al(e,t,n,r){ll(e,t,n,r,null)}function ll(e,t,n,r,o){let i,s,a,l,u,c,p,d;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*da;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:o?e.ellipse(n,r,o/2,m,0,0,ua):e.arc(n,r,m,0,ua),e.closePath();break;case"triangle":c=o?o/2:m,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=ma,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=ma,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":u=.516*m,l=m-u,s=Math.cos(g+fa)*l,p=Math.cos(g+fa)*(o?o/2-u:l),a=Math.sin(g+fa)*l,d=Math.sin(g+fa)*(o?o/2-u:l),e.arc(n-p,r-a,u,g-la,g-ha),e.arc(n+d,r-s,u,g-ha,g),e.arc(n+p,r+a,u,g,g+ha),e.arc(n-d,r+s,u,g+ha,g+la),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,c=o?o/2:l,e.rect(n-c,r-l,2*c,2*l);break}g+=fa;case"rectRot":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+d,r-s),e.lineTo(n+p,r+a),e.lineTo(n-d,r+s),e.closePath();break;case"crossRot":g+=fa;case"cross":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"star":p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s),g+=fa,p=Math.cos(g)*(o?o/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,d=Math.sin(g)*(o?o/2:m),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"line":s=o?o/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(o?o/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function ul(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function cl(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pl(e){e.restore()}function dl(e,t,n,r,o){if(!t)return e.lineTo(n.x,n.y);if("middle"===o){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===o!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function hl(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function fl(e,t,n,r,o){if(o.strikethrough||o.underline){const i=e.measureText(r),s=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,c=o.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(s,c),e.lineTo(a,c),e.stroke()}}function ml(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function gl(e,t,n,r,o,i={}){const s=Hs(t)?t:[t],a=i.strokeWidth>0&&""!==i.strokeColor;let l,u;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),qs(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<s.length;++l)u=s[l],i.backdrop&&ml(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),qs(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,r,i.maxWidth)),e.fillText(u,n,r,i.maxWidth),fl(e,n,r,u,i),r+=Number(o.lineHeight);e.restore()}function yl(e,t){const{x:n,y:r,w:o,h:i,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*la,la,!0),e.lineTo(n,r+i-s.bottomLeft),e.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,la,ha,!0),e.lineTo(n+o-s.bottomRight,r+i),e.arc(n+o-s.bottomRight,r+i-s.bottomRight,s.bottomRight,ha,0,!0),e.lineTo(n+o,r+s.topRight),e.arc(n+o-s.topRight,r+s.topRight,s.topRight,0,-ha,!0),e.lineTo(n+s.topLeft,r)}const vl=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,bl=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Cl(e,t){const n=(""+e).match(vl);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const wl=e=>+e||0;function xl(e,t){const n={},r=zs(t),o=r?Object.keys(t):t,i=zs(e)?r?n=>Ws(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of o)n[e]=wl(i(e));return n}function El(e){return xl(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Pl(e){return xl(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Sl(e){const t=El(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ol(e,t){e=e||{},t=t||rl.font;let n=Ws(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=Ws(e.style,t.style);r&&!(""+r).match(bl)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Ws(e.family,t.family),lineHeight:Cl(Ws(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ws(e.weight,t.weight),string:""};return o.string=function(e){return!e||qs(e.size)||qs(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function Tl(e,t,n,r){let o,i,s,a=!0;for(o=0,i=e.length;o<i;++o)if(s=e[o],void 0!==s&&(void 0!==t&&"function"==typeof s&&(s=s(t),a=!1),void 0!==n&&Hs(s)&&(s=s[n%s.length],a=!1),void 0!==s))return r&&!a&&(r.cacheable=!1),s}function _l(e,t){return Object.assign(Object.create(e),t)}function Vl(e,t=[""],n,r,o=(()=>e[0])){const i=n||e;void 0===r&&(r=Bl("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:o,override:n=>Vl([n,...e],t,i,r)};return new Proxy(s,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>Dl(n,r,(()=>function(e,t,n,r){let o;for(const i of t)if(o=Bl(kl(i,e),n),void 0!==o)return Al(e,o)?jl(n,r,e,o):o}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>ql(e).includes(t),ownKeys:e=>ql(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Rl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Il(e,r),setContext:t=>Rl(e,t,n,r),override:o=>Rl(e.override(o),t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Dl(e,t,(()=>function(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:s}=e;let a=r[t];return sa(a)&&s.isScriptable(t)&&(a=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,s||r);return a.delete(e),Al(e,l)&&(l=jl(o._scopes,o,e,l)),l}(t,a,e,n)),Hs(a)&&a.length&&(a=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=n;if(void 0!==i.index&&r(e))return t[i.index%t.length];if(zs(t[0])){const n=t,r=o._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=jl(r,o,e,l);t.push(Rl(n,i,s&&s[e],a))}}return t}(t,a,e,s.isIndexable)),Al(t,a)&&(a=Rl(a,o,i&&i[t],s)),a}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function Il(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:sa(n)?n:()=>n,isIndexable:sa(r)?r:()=>r}}const kl=(e,t)=>e?e+oa(t):t,Al=(e,t)=>zs(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Dl(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const r=n();return e[t]=r,r}function Nl(e,t,n){return sa(e)?e(t,n):e}const Ml=(e,t)=>!0===e?t:"string"==typeof e?ra(t,e):void 0;function Ll(e,t,n,r,o){for(const i of t){const t=Ml(n,i);if(t){e.add(t);const i=Nl(t._fallback,n,o);if(void 0!==i&&i!==n&&i!==r)return i}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}function jl(e,t,n,r){const o=t._rootScopes,i=Nl(t._fallback,n,r),s=[...e,...o],a=new Set;a.add(r);let l=Fl(a,s,n,i||n,r);return null!==l&&(void 0===i||i===n||(l=Fl(a,s,i,l,r),null!==l))&&Vl(Array.from(a),[""],o,i,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return Hs(o)&&zs(n)?n:o||{}}(t,n,r)))}function Fl(e,t,n,r,o){for(;n;)n=Ll(e,t,n,r,o);return n}function Bl(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function ql(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Hl=Number.EPSILON||1e-14,zl=(e,t)=>t<e.length&&!e[t].skip&&e[t],Ql=e=>"x"===e?"y":"x";function Ul(e,t,n,r){const o=e.skip?t:e,i=t,s=n.skip?t:n,a=Pa(i,o),l=Pa(s,i);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const p=r*u,d=r*c;return{previous:{x:i.x-p*(s.x-o.x),y:i.y-p*(s.y-o.y)},next:{x:i.x+d*(s.x-o.x),y:i.y+d*(s.y-o.y)}}}function Wl(e,t,n){return Math.max(Math.min(e,n),t)}function $l(e,t,n,r,o){let i,s,a,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=Ql(t),r=e.length,o=Array(r).fill(0),i=Array(r);let s,a,l,u=zl(e,0);for(s=0;s<r;++s)if(a=l,l=u,u=zl(e,s+1),l){if(u){const e=u[t]-l[t];o[s]=0!==e?(u[n]-l[n])/e:0}i[s]=a?u?ya(o[s-1])!==ya(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}!function(e,t,n){const r=e.length;let o,i,s,a,l,u=zl(e,0);for(let c=0;c<r-1;++c)l=u,u=zl(e,c+1),l&&u&&(va(t[c],0,Hl)?n[c]=n[c+1]=0:(o=n[c]/t[c],i=n[c+1]/t[c],a=Math.pow(o,2)+Math.pow(i,2),a<=9||(s=3/Math.sqrt(a),n[c]=o*s*t[c],n[c+1]=i*s*t[c])))}(e,o,i),function(e,t,n="x"){const r=Ql(n),o=e.length;let i,s,a,l=zl(e,0);for(let u=0;u<o;++u){if(s=a,a=l,l=zl(e,u+1),!a)continue;const o=a[n],c=a[r];s&&(i=(o-s[n])/3,a[`cp1${n}`]=o-i,a[`cp1${r}`]=c-i*t[u]),l&&(i=(l[n]-o)/3,a[`cp2${n}`]=o+i,a[`cp2${r}`]=c+i*t[u])}}(e,i,t)}(e,o);else{let n=r?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)a=e[i],l=Ul(n,a,e[Math.min(i+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,o,i,s,a=ul(e[0],t);for(n=0,r=e.length;n<r;++n)s=i,i=a,a=n<r-1&&ul(e[n+1],t),i&&(o=e[n],s&&(o.cp1x=Wl(o.cp1x,t.left,t.right),o.cp1y=Wl(o.cp1y,t.top,t.bottom)),a&&(o.cp2x=Wl(o.cp2x,t.left,t.right),o.cp2y=Wl(o.cp2y,t.top,t.bottom)))}(e,n)}function Gl(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Jl(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Yl(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const Kl=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),Xl=["top","right","bottom","left"];function Zl(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Xl[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const eu=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tu(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Kl(n),i="border-box"===o.boxSizing,s=Zl(o,"padding"),a=Zl(o,"border","width"),{x:l,y:u,box:c}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let s,a,l=!1;if(eu(o,i,e.target))s=o,a=i;else{const e=t.getBoundingClientRect();s=r.clientX-e.left,a=r.clientY-e.top,l=!0}return{x:s,y:a,box:l}}(e,n),p=s.left+(c&&a.left),d=s.top+(c&&a.top);let{width:h,height:f}=t;return i&&(h-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-p)/h*n.width/r),y:Math.round((u-d)/f*n.height/r)}}const nu=e=>Math.round(10*e)/10;function ru(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||s.height!==o||s.width!==i)&&(e.currentDevicePixelRatio=r,s.height=o,s.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}const ou=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gl()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function iu(e,t){const n=function(e,t){return Kl(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function su(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function au(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function lu(e,t,n,r){const o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=su(e,o,n),a=su(o,i,n),l=su(i,t,n),u=su(s,a,n),c=su(a,l,n);return su(u,c,n)}function uu(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function cu(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function pu(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function du(e){return"angle"===e?{between:Ta,compare:Sa,normalize:Oa}:{between:Va,compare:(e,t)=>e-t,normalize:e=>e}}function hu({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function fu(e,t,n){if(!n)return[e];const{property:r,start:o,end:i}=n,s=t.length,{compare:a,between:l,normalize:u}=du(r),{start:c,end:p,loop:d,style:h}=function(e,t,n){const{property:r,start:o,end:i}=n,{between:s,normalize:a}=du(r),l=t.length;let u,c,{start:p,end:d,loop:h}=e;if(h){for(p+=l,d+=l,u=0,c=l;u<c&&s(a(t[p%l][r]),o,i);++u)p--,d--;p%=l,d%=l}return d<p&&(d+=l),{start:p,end:d,loop:h,style:e.style}}(e,t,n),f=[];let m,g,y,v=!1,b=null;for(let e=c,n=c;e<=p;++e)g=t[e%s],g.skip||(m=u(g[r]),m!==y&&(v=l(m,o,i),null===b&&(v||l(o,y,m)&&0!==a(o,y))&&(b=0===a(m,o)?e:n),null!==b&&(!v||0===a(i,m)||l(i,y,m))&&(f.push(hu({start:b,end:e,loop:d,count:s,style:h})),b=null),n=e,y=m));return null!==b&&f.push(hu({start:b,end:p,loop:d,count:s,style:h})),f}function mu(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function gu(e,t){if(!t)return!1;const n=[],r=function(e,t){return za(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}class yu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=Na.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,s=o.length-1,a=!1;for(;s>=0;--s)i=o[s],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),a=!0):(o[s]=o[o.length-1],o.pop());a&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var vu=new yu;const bu="transparent",Cu={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=Qa(e||bu),o=r.valid&&Qa(t||bu);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class wu{constructor(e,t,n,r){const o=t[n];r=Tl([e.to,r,o,e.from]);const i=Tl([e.from,o,r]);this._active=!0,this._fn=e.fn||Cu[e.type||typeof i],this._easing=Ha[e.easing]||Ha.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Tl([e.to,t,r,e.from]),this._from=Tl([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,s=this._to;let a;if(this._active=o!==s&&(i||t<n),!this._active)return this._target[r]=s,void this._notify(!0);t<0?this._target[r]=o:(a=t/n%2,a=i&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(o,s,a))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class xu{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!zs(e))return;const t=Object.keys(rl.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!zs(o))return;const i={};for(const e of t)i[e]=o[e];(Hs(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),s=Date.now();let a;for(a=i.length-1;a>=0;--a){const l=i[a];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const u=t[l];let c=o[l];const p=n.get(l);if(c){if(p&&c.active()){c.update(p,u,s);continue}c.cancel()}p&&p.duration?(o[l]=c=new wu(p,e,l,u),r.push(c)):e[l]=u}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(vu.add(this._chart,n),!0):void 0}}function Eu(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function Pu(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Su(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let s,a,l,u;if(null!==t){for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===n){if(r.all)continue;break}u=e.values[l],Qs(u)&&(i||0===t||ya(t)===ya(u))&&(t+=u)}return t}}function Ou(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Tu(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function _u(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function Vu(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:a}=r,l=i.axis,u=s.axis,c=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,s,r),p=t.length;let d;for(let e=0;e<p;++e){const n=t[e],{[l]:i,[u]:p}=n;d=(n._stacks||(n._stacks={}))[u]=Tu(o,c,i),d[a]=p,d._top=_u(d,s,!0,r.type),d._bottom=_u(d,s,!1,r.type),(d._visualValues||(d._visualValues={}))[a]=p}}function Ru(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Iu(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const ku=e=>"reset"===e||"none"===e,Au=(e,t)=>t?e:Object.assign({},e);class Du{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ou(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Iu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=Ws(n.xAxisID,Ru(e,"x")),i=t.yAxisID=Ws(n.yAxisID,Ru(e,"y")),s=t.rAxisID=Ws(n.rAxisID,Ru(e,"r")),a=t.indexAxis,l=t.iAxisID=r(a,o,i,s),u=t.vAxisID=r(a,i,o,s);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Da(this._data,this),e._stacked&&Iu(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(zs(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",s=Object.keys(e),a=new Array(s.length);let l,u,c;for(l=0,u=s.length;l<u;++l)c=s[l],a[l]={[o]:c,[i]:e[c]};return a}(t,e)}else if(n!==t){if(n){Da(n,this);const e=this._cachedMeta;Iu(e),e._parsed=[]}t&&Object.isExtensible(t)&&((r=t)._chartjs?r._chartjs.listeners.push(this):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Aa.forEach((e=>{const t="_onData"+oa(e),n=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value(...e){const o=n.apply(this,e);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),o}})})))),this._syncList=[],this._data=t}var r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=Ou(t.vScale,t),t.stack!==n.stack&&(r=!0,Iu(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&Vu(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,s=o.axis;let a,l,u,c=0===e&&t===r.length||n._sorted,p=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,u=r;else{u=Hs(r[e])?this.parseArrayData(n,r,e,t):zs(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[s]||p&&l[s]<p[s];for(a=0;a<t;++a)n._parsed[a+e]=l=u[a],c&&(o()&&(c=!1),p=l);n._sorted=c}i&&Vu(this,u)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,s=o.axis,a=i.axis,l=o.getLabels(),u=o===i,c=new Array(r);let p,d,h;for(p=0,d=r;p<d;++p)h=p+n,c[p]={[s]:u||o.parse(l[h],h),[a]:i.parse(t[h],h)};return c}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,s=new Array(r);let a,l,u,c;for(a=0,l=r;a<l;++a)u=a+n,c=t[u],s[a]={x:o.parse(c[0],u),y:i.parse(c[1],u)};return s}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(r);let u,c,p,d;for(u=0,c=r;u<c;++u)p=u+n,d=t[p],l[u]={x:o.parse(ra(d,s),p),y:i.parse(ra(d,a),p)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return Su({keys:Pu(r,!0),values:t._stacks[e.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const s=r&&n._stacks[t.axis];r&&s&&(r.values=s,i=Su(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,s=this._getOtherScale(e),a=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Pu(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:c}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(s);let p,d;function h(){d=r[p];const t=d[s.axis];return!Qs(d[e.axis])||u>t||c<t}for(p=0;p<i&&(h()||(this.updateRangeFromParsed(l,e,d,a),!o));++p);if(o)for(p=i-1;p>=0;--p)if(!h()){this.updateRangeFromParsed(l,e,d,a);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],Qs(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return zs(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(Ws(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=Eu(e,n),o=Eu(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],s=this._drawStart||0,a=this._drawCount||r.length-s,l=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(e,o,s,a),u=s;u<s+a;++u){const t=r[u];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(u=0;u<i.length;++u)i[u].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return _l(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return _l(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,s=o[i],a=this.enableOptionSharing&&ia(n);if(s)return Au(s,a);const l=this.chart.config,u=l.datasetElementScopeKeys(this._type,e),c=r?[`${e}Hover`,"hover",e,""]:[e,""],p=l.getOptionScopes(this.getDataset(),u),d=Object.keys(rl.elements[e]),h=l.resolveNamedOptions(p,d,(()=>this.getContext(n,r,t)),c);return h.$shared&&(h.$shared=a,o[i]=Object.freeze(Au(h,a))),h}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,s=o[i];if(s)return s;let a;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);a=r.createResolver(i,this.getContext(e,n,t))}const l=new xu(r,a&&a.animations);return a&&a._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||ku(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){ku(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!ku(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let s;const a=e=>{for(e.length+=t,s=e.length-1;s>=i;s--)e[s]=e[s-t]};for(a(o),s=e;s<i;++s)o[s]=new this.dataElementType;this._parsing&&a(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&Iu(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nu(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=function(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,i,s,a=t._length;const l=()=>{32767!==i&&-32768!==i&&(ia(s)&&(a=Math.min(a,Math.abs(i-s)||a)),s=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(s=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return a}function Mu(e,t,n,r){return Hs(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),s=Math.min(o,i),a=Math.max(o,i);let l=s,u=a;Math.abs(s)>Math.abs(a)&&(l=a,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:o,end:i,min:s,max:a}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Lu(e,t,n,r){const o=e.iScale,i=e.vScale,s=o.getLabels(),a=o===i,l=[];let u,c,p,d;for(u=n,c=n+r;u<c;++u)d=t[u],p={},p[o.axis]=a||o.parse(s[u],u),l.push(Mu(d,p,i,u));return l}function ju(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Fu(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:u,bottom:c}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=u:(n._bottom||0)===r?o=c:(i[Bu(c,s,a,l)]=!0,o=u)),i[Bu(o,s,a,l)]=!0,e.borderSkipped=i}function Bu(e,t,n,r){var o,i,s;return r?(s=n,e=qu(e=(o=e)===(i=t)?s:o===s?i:o,n,t)):e=qu(e,t,n),e}function qu(e,t,n){return"start"===e?t:"end"===e?n:e}function Hu(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class zu extends Du{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return Lu(e,t,n,r)}parseArrayData(e,t,n,r){return Lu(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===o.axis?s:a,u="x"===i.axis?s:a,c=[];let p,d,h,f;for(p=n,d=n+r;p<d;++p)f=t[p],h={},h[o.axis]=o.parse(ra(f,l),p),c.push(Mu(ra(f,u),h,i,p));return c}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,s=ju(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),u=this._getRuler(),{sharedOptions:c,includeOptions:p}=this._getSharedOptions(t,r);for(let d=t;d<t+n;d++){const t=this.getParsed(d),n=o||qs(t[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),h=this._calculateBarIndexPixels(d,u),f=(t._stacks||{})[s.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||ju(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};p&&(m.options=c||this.resolveDataElementOptions(d,e[d].active?"active":r));const g=m.options||e[d].options;Fu(m,g,f,i),Hu(m,g,u.ratio),this.updateElement(e[d],d,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,i=[],s=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(qs(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!s(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=e.barThickness;return{min:s||Nu(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,s=o||0,a=this.getParsed(e),l=a._custom,u=ju(l);let c,p,d=a[t.axis],h=0,f=n?this.applyStack(t,a,n):d;f!==d&&(h=f-d,f=d),u&&(d=l.barStart,f=l.barEnd-l.barStart,0!==d&&ya(d)!==ya(l.barEnd)&&(h=0),h+=d);const m=qs(o)||u?h:o;let g=t.getPixelForValue(m);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):g,p=c-g,Math.abs(p)<i){p=function(e,t,n){return 0!==e?ya(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(p,t,s)*i,d===s&&(g-=p/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),l=Math.min(e,o),h=Math.max(e,o);g=Math.max(Math.min(g,h),l),c=g+p,n&&!u&&(a._stacks[t.axis]._visualValues[r]=t.getValueForPixel(c)-t.getValueForPixel(g))}if(g===t.getPixelForValue(s)){const e=ya(p)*t.getLineWidthForValue(s)/2;g+=e,p-=e}return{size:p,base:g,head:c,center:c+p/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=Ws(r.maxBarThickness,1/0);let s,a;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let s=e>0?o[e-1]:null,a=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===s&&(s=i-(null===a?t.end-t.start:a-i)),null===a&&(a=i+i-s);const u=i-(i-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,s;return qs(o)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=o*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}(e,t,r,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);s=l.start+l.chunk*u+l.chunk/2,a=Math.min(i,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(e)[n.axis],e),a=Math.min(i,t.min*t.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[t.axis]||n[o].hidden||n[o].draw(this._ctx)}}class Qu extends Du{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:s,count:a}=function(e,t,n){const r=t.length;let o=0,i=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:u,max:c,minDefined:p,maxDefined:d}=s.getUserBounds();p&&(o=_a(Math.min(Ia(a,l,u).lo,n?r:Ia(t,l,s.getPixelForValue(u)).lo),0,r-1)),i=d?_a(Math.max(Ia(a,s.axis,c,!0).hi+1,n?0:Ia(t,l,s.getPixelForValue(c),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}(t,r,i);this._drawStart=s,this._drawCount=a,function(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}(t)&&(s=0,a=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,s,a,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(t,r),p=i.axis,d=s.axis,{spanGaps:h,segment:f}=this.options,m=Ca(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r,y=t+n,v=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<v;++n){const h=e[n],v=g?h:{};if(n<t||n>=y){v.skip=!0;continue}const C=this.getParsed(n),w=qs(C[d]),x=v[p]=i.getPixelForValue(C[p],n),E=v[d]=o||w?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,C,a):C[d],n);v.skip=isNaN(x)||isNaN(E)||w,v.stop=n>0&&Math.abs(C[p]-b[p])>m,f&&(v.parsed=C,v.raw=l.data[n]),c&&(v.options=u||this.resolveDataElementOptions(n,h.active?"active":r)),g||this.updateElement(h,n,v,r),b=C}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}function Uu(e,t,n,r){const{controller:o,data:i,_sorted:s}=e,a=o._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&s&&i.length){const e=a._reversePixels?ka:Ia;if(!r)return e(i,t,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(i,t,n-o),s=e(i,t,n+o);return{lo:r.lo,hi:s.hi}}}}return{lo:0,hi:i.length-1}}function Wu(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:a}=i[e],{lo:l,hi:u}=Uu(i[e],t,s,o);for(let e=l;e<=u;++e){const t=a[e];t.skip||r(t,n,e)}}}function $u(e,t,n,r,o){const i=[];return o||e.isPointInArea(t)?(Wu(e,n,t,(function(n,s,a){(o||ul(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:s,index:a})}),!0),i):i}function Gu(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?function(e,t,n,r,o,i){let s=[];const a=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Wu(e,n,t,(function(n,u,c){const p=n.inRange(t.x,t.y,o);if(r&&!p)return;const d=n.getCenterPoint(o);if(!i&&!e.isPointInArea(d)&&!p)return;const h=a(t,d);h<l?(s=[{element:n,datasetIndex:u,index:c}],l=h):h===l&&s.push({element:n,datasetIndex:u,index:c})})),s}(e,t,n,r,o,i):function(e,t,n,r){let o=[];return Wu(e,n,t,(function(e,n,i){const{startAngle:s,endAngle:a}=e.getProps(["startAngle","endAngle"],r),{angle:l}=Ea(e,{x:t.x,y:t.y});Ta(l,s,a)&&o.push({element:e,datasetIndex:n,index:i})})),o}(e,t,n,o):[]}function Ju(e,t,n,r,o){const i=[],s="x"===n?"inXRange":"inYRange";let a=!1;return Wu(e,n,t,((e,r,l)=>{e[s](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),a=a||e.inRange(t.x,t.y,o))})),r&&!a?[]:i}var Yu={evaluateInteractionItems:Wu,modes:{index(e,t,n,r){const o=tu(t,e),i=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?$u(e,o,i,r,s):Gu(e,o,i,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=a[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const o=tu(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?$u(e,o,i,r,s):Gu(e,o,i,!1,r,s);if(a.length>0){const t=a[0].datasetIndex,n=e.getDatasetMeta(t).data;a=[];for(let e=0;e<n.length;++e)a.push({element:n[e],datasetIndex:t,index:e})}return a},point:(e,t,n,r)=>$u(e,tu(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=tu(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Gu(e,o,i,n.intersect,r,s)},x:(e,t,n,r)=>Ju(e,tu(t,e),"x",n.intersect,r),y:(e,t,n,r)=>Ju(e,tu(t,e),"y",n.intersect,r)}};const Ku=["left","top","right","bottom"];function Xu(e,t){return e.filter((e=>e.pos===t))}function Zu(e,t){return e.filter((e=>-1===Ku.indexOf(e.pos)&&e.box.axis===t))}function ec(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function tc(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function nc(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function rc(e,t,n,r){const{pos:o,box:i}=n,s=e.maxPadding;if(!zs(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&nc(s,i.getPadding());const a=Math.max(0,t.outerWidth-tc(s,e,"left","right")),l=Math.max(0,t.outerHeight-tc(s,e,"top","bottom")),u=a!==e.w,c=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function oc(e,t){const n=t.maxPadding;return function(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}(e?["left","right"]:["top","bottom"])}function ic(e,t,n,r){const o=[];let i,s,a,l,u,c;for(i=0,s=e.length,u=0;i<s;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,oc(a.horizontal,t));const{same:s,other:p}=rc(t,n,a,r);u|=s&&o.length,c=c||p,l.fullSize||o.push(a)}return u&&ic(o,t,n,r)||c}function sc(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function ac(e,t,n,r){const o=n.padding;let{x:i,y:s}=t;for(const a of e){const e=a.box,l=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/l.weight||1;if(a.horizontal){const r=t.w*u,i=l.size||e.height;ia(l.start)&&(s=l.start),e.fullSize?sc(e,o.left,s,n.outerWidth-o.right-o.left,i):sc(e,t.left+l.placed,s,r,i),l.start=s,l.placed+=r,s=e.bottom}else{const r=t.h*u,s=l.size||e.width;ia(l.start)&&(i=l.start),e.fullSize?sc(e,i,o.top,s,n.outerHeight-o.bottom-o.top):sc(e,i,t.top+l.placed,s,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=s}var lc={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=Sl(e.options.layout.padding),i=Math.max(t-o.width,0),s=Math.max(n-o.height,0),a=function(e){const t=function(e){const t=[];let n,r,o,i,s,a;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:s,stackWeight:a=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return t}(e),n=ec(t.filter((e=>e.box.fullSize)),!0),r=ec(Xu(t,"left"),!0),o=ec(Xu(t,"right")),i=ec(Xu(t,"top"),!0),s=ec(Xu(t,"bottom")),a=Zu(t,"x"),l=Zu(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:Xu(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}(e.boxes),l=a.vertical,u=a.horizontal;Gs(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const c=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},o);nc(d,Sl(r));const h=Object.assign({maxPadding:d,w:i,h:s,x:o.left,y:o.top},o),f=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Ku.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,s,a;for(i=0,s=e.length;i<s;++i){a=e[i];const{fullSize:s}=a.box,l=n[a.stack],u=l&&a.stackWeight/l.weight;a.horizontal?(a.width=u?u*r:s&&t.availableWidth,a.height=o):(a.width=r,a.height=u?u*o:s&&t.availableHeight)}return n}(l.concat(u),p);ic(a.fullSize,h,p,f),ic(l,h,p,f),ic(u,h,p,f)&&ic(l,h,p,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),ac(a.leftAndTop,h,p,f),h.x+=h.w,h.y+=h.h,ac(a.rightAndBottom,h,p,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Gs(a.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class uc{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class cc extends uc{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const pc="$chartjs",dc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},hc=e=>null===e||""===e,fc=!!ou&&{passive:!0};function mc(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,fc)}function gc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function yc(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||gc(n.addedNodes,r),t=t&&!gc(n.removedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function vc(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||gc(n.removedNodes,r),t=t&&!gc(n.addedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const bc=new Map;let Cc=0;function wc(){const e=window.devicePixelRatio;e!==Cc&&(Cc=e,bc.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function xc(e,t,n){const r=e.canvas,o=r&&Jl(r);if(!o)return;const i=Ma(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),s=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return s.observe(o),function(e,t){bc.size||window.addEventListener("resize",wc),bc.set(e,t)}(e,i),s}function Ec(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){bc.delete(e),bc.size||window.removeEventListener("resize",wc)}(e)}function Pc(e,t,n){const r=e.canvas,o=Ma((t=>{null!==e.ctx&&n(function(e,t){const n=dc[e.type]||e.type,{x:r,y:o}=tu(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,fc)}(r,t,o),o}class Sc extends uc{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[pc]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",hc(o)){const t=iu(e,"width");void 0!==t&&(e.width=t)}if(hc(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=iu(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[pc])return!1;const n=t[pc].initial;["height","width"].forEach((e=>{const r=n[e];qs(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[pc],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:yc,detach:vc,resize:xc}[t]||Pc;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:Ec,detach:Ec,resize:Ec}[t]||mc)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return function(e,t,n,r){const o=Kl(e),i=Zl(o,"margin"),s=Yl(o.maxWidth,e,"clientWidth")||pa,a=Yl(o.maxHeight,e,"clientHeight")||pa,l=function(e,t,n){let r,o;if(void 0===t||void 0===n){const i=e&&Jl(e);if(i){const e=i.getBoundingClientRect(),s=Kl(i),a=Zl(s,"border","width"),l=Zl(s,"padding");t=e.width-l.width-a.width,n=e.height-l.height-a.height,r=Yl(s.maxWidth,i,"clientWidth"),o=Yl(s.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||pa,maxHeight:o||pa}}(e,t,n);let{width:u,height:c}=l;if("content-box"===o.boxSizing){const e=Zl(o,"border","width"),t=Zl(o,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-i.width),c=Math.max(0,r?u/r:c-i.height),u=nu(Math.min(u,s,l.maxWidth)),c=nu(Math.min(c,a,l.maxHeight)),u&&!c&&(c=nu(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=nu(Math.floor(c*r))),{width:u,height:c}}(e,t,n,r)}isAttached(e){const t=e&&Jl(e);return!(!t||!t.isConnected)}}class Oc{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Ca(this.x)&&Ca(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function Tc(e,t,n,r,o){const i=Ws(r,0),s=Math.min(Ws(o,e.length),e.length);let a,l,u,c=0;for(n=Math.ceil(n),o&&(a=o-r,n=a/Math.floor(a/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(l=Math.max(i,0);l<s;l++)l===u&&(t.push(e[l]),c++,u=Math.round(i+c*n))}const _c=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,Vc=(e,t)=>Math.min(t||e,e);function Rc(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function Ic(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,a=1e-6;let l,u=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(u-i,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(o-1))/2,u+=o<t?l:-l,u<i-a||u>s+a)))return u}function kc(e){return e.drawTicks?e.tickLength:0}function Ac(e,t){if(!e.display)return 0;const n=Ol(e.font,t),r=Sl(e.padding);return(Hs(e.text)?e.text.length:1)*n.lineHeight+r.height}function Dc(e,t,n){let r=La(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class Nc extends Oc{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=Us(e,Number.POSITIVE_INFINITY),t=Us(t,Number.NEGATIVE_INFINITY),n=Us(n,Number.POSITIVE_INFINITY),r=Us(r,Number.NEGATIVE_INFINITY),{min:Us(e,n),max:Us(t,r),minDefined:Qs(e),maxDefined:Qs(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)t=s[a].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:Us(n,Us(r,n)),max:Us(r,Us(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){$s(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,s=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=(l=(o-r)/2,"string"==typeof(a=t)&&a.endsWith("%")?parseFloat(a)/100*l:+a),s=(e,t)=>n&&0===e?0:e+t;var a,l;return{min:s(r,-Math.abs(i)),max:s(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?Rc(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=function(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],s=i.length,a=i[0],l=i[s-1],u=[];if(s>o)return function(e,t,n,r){let o,i=0,s=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===s&&(t.push(e[o]),i++,s=n[i*r])}(t,u,i,s/o),u;const c=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r==0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(i,t,o);if(s>0){let e,n;const r=s>1?Math.round((l-a)/(s-1)):null;for(Tc(t,u,c,qs(r)?0:a-r,a),e=0,n=s-1;e<n;e++)Tc(t,u,c,i[e],i[e+1]);return Tc(t,u,c,l,qs(r)?t.length:l+r),u}return Tc(t,u,c),u}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){$s(this.options.afterUpdate,[this])}beforeSetDimensions(){$s(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){$s(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),$s(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$s(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=$s(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){$s(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$s(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=Vc(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let i,s,a,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const u=this._getLabelSizes(),c=u.widest.width,p=u.highest.height,d=_a(this.chart.width-c,0,this.maxWidth);i=e.offset?this.maxWidth/n:d/(n-1),c+6>i&&(i=d/(n-(e.offset?.5:1)),s=this.maxHeight-kc(e.grid)-t.padding-Ac(e.title,this.chart.options.font),a=Math.sqrt(c*c+p*p),l=Math.min(Math.asin(_a((u.highest.height+6)/i,-1,1)),Math.asin(_a(s/a,-1,1))-Math.asin(_a(p/a,-1,1)))*(180/la),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){$s(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$s(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),s=this.isHorizontal();if(i){const i=Ac(r,t.options.font);if(s?(e.width=this.maxWidth,e.height=kc(o)+i):(e.height=this.maxHeight,e.width=kc(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),a=2*n.padding,l=wa(this.labelRotation),u=Math.cos(l),c=Math.sin(l);if(s){const t=n.mirror?0:c*o.width+u*i.height;e.height=Math.min(this.maxHeight,e.height+t+a)}else{const t=n.mirror?0:u*o.width+c*i.height;e.width=Math.min(this.maxWidth,e.width+t+a)}this._calculatePadding(t,r,c,u)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,p=0;a?l?(c=r*e.width,p=n*t.height):(c=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?c=e.width:"inner"!==o&&(c=e.width/2,p=t.width/2),this.paddingLeft=Math.max((c-s+i)*this.width/(this.width-s),0),this.paddingRight=Math.max((p-u+i)*this.width/(this.width-u),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){$s(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)qs(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Rc(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,i=[],s=[],a=Math.floor(t/Vc(t,n));let l,u,c,p,d,h,f,m,g,y,v,b=0,C=0;for(l=0;l<t;l+=a){if(p=e[l].label,d=this._resolveTickFontOptions(l),r.font=h=d.string,f=o[h]=o[h]||{data:{},gc:[]},m=d.lineHeight,g=y=0,qs(p)||Hs(p)){if(Hs(p))for(u=0,c=p.length;u<c;++u)v=p[u],qs(v)||Hs(v)||(g=ol(r,f.data,f.gc,g,v),y+=m)}else g=ol(r,f.data,f.gc,g,p),y=m;i.push(g),s.push(y),b=Math.max(g,b),C=Math.max(y,C)}!function(e,t){Gs(e,(e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}}))}(o,t);const w=i.indexOf(b),x=s.indexOf(C),E=e=>({width:i[e]||0,height:s[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(x),widths:i,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return _a(this._alignToPixels?il(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return _l(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=_l(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=wa(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,s=o?o.widest.width+i:0,a=o?o.highest.height+i:0;return this.isHorizontal()?a*n>s*r?s/n:a/r:a*r<s*n?a/n:s/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:s}=r,a=o.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),c=kc(o),p=[],d=s.setContext(this.getContext()),h=d.display?d.width:0,f=h/2,m=function(e){return il(n,e,h)};let g,y,v,b,C,w,x,E,P,S,O,T;if("top"===i)g=m(this.bottom),w=this.bottom-c,E=g-f,S=m(e.top)+f,T=e.bottom;else if("bottom"===i)g=m(this.top),S=e.top,T=m(e.bottom)-f,w=g+f,E=this.top+c;else if("left"===i)g=m(this.right),C=this.right-c,x=g-f,P=m(e.left)+f,O=e.right;else if("right"===i)g=m(this.left),P=e.left,O=m(e.right)-f,C=g+f,x=this.left+c;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(zs(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}S=e.top,T=e.bottom,w=g+f,E=w+c}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(zs(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=g-f,x=C-c,P=e.left,O=e.right}const _=Ws(r.ticks.maxTicksLimit,u),V=Math.max(1,Math.ceil(u/_));for(y=0;y<u;y+=V){const e=this.getContext(y),t=o.setContext(e),r=s.setContext(e),i=t.lineWidth,u=t.color,c=r.dash||[],d=r.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=Ic(this,y,a),void 0!==v&&(b=il(n,v,i),l?C=x=P=O=b:w=E=S=T=b,p.push({tx1:C,ty1:w,tx2:x,ty2:E,x1:P,y1:S,x2:O,y2:T,width:i,color:u,borderDash:c,borderDashOffset:d,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=u,this._borderValue=g,p}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:u,mirror:c}=o,p=kc(n.grid),d=p+u,h=c?-u:d,f=-wa(this.labelRotation),m=[];let g,y,v,b,C,w,x,E,P,S,O,T,_="middle";if("top"===r)w=this.bottom-h,x=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,x=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(p);x=e.textAlign,C=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(p);x=e.textAlign,C=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+d;else if(zs(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+d}x=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)C=(e.left+e.right)/2-d;else if(zs(r)){const e=Object.keys(r)[0],t=r[e];C=this.chart.scales[e].getPixelForValue(t)}x=this._getYAxisLabelAlignment(p).textAlign}"y"===t&&("start"===a?_="top":"end"===a&&(_="bottom"));const V=this._getLabelSizes();for(g=0,y=s.length;g<y;++g){v=s[g],b=v.label;const e=o.setContext(this.getContext(g));E=this.getPixelForTick(g)+o.labelOffset,P=this._resolveTickFontOptions(g),S=P.lineHeight,O=Hs(b)?b.length:1;const t=O/2,n=e.color,a=e.textStrokeColor,u=e.textStrokeWidth;let p,d=x;if(i?(C=E,"inner"===x&&(d=g===y-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),T="top"===r?"near"===l||0!==f?-O*S+S/2:"center"===l?-V.highest.height/2-t*S+S:-V.highest.height+S/2:"near"===l||0!==f?S/2:"center"===l?V.highest.height/2-t*S:V.highest.height-O*S,c&&(T*=-1),0===f||e.showLabelBackdrop||(C+=S/2*Math.sin(f))):(w=E,T=(1-O)*S/2),e.showLabelBackdrop){const t=Sl(e.backdropPadding),n=V.heights[g],r=V.widths[g];let o=T-t.top,i=0-t.left;switch(_){case"middle":o-=n/2;break;case"bottom":o-=n}switch(x){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===y-1?i-=r:g>0&&(i-=r/2)}p={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:P,textOffset:T,options:{rotation:f,color:n,strokeColor:a,strokeWidth:u,textAlign:d,textBaseline:_,translation:[C,w],backdrop:p}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-wa(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,s=this._getLabelSizes().widest.width;let a,l;return"left"===t?r?(l=this.right+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-i,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+i,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const s=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&s({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const s=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,u,c,p;this.isHorizontal()?(l=il(e,this.left,i)-i/2,u=il(e,this.right,s)+s/2,c=p=a):(c=il(e,this.top,i)-i/2,p=il(e,this.bottom,s)+s/2,l=u=a),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(l,c),t.lineTo(u,p),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&cl(t,n);const r=this.getLabelItems(e);for(const e of r){const n=e.options,r=e.font;gl(t,e.label,0,e.textOffset,r,n)}n&&pl(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=Ol(n.font),i=Sl(n.padding),s=n.align;let a=o.lineHeight/2;"bottom"===t||"center"===t||zs(t)?(a+=i.bottom,Hs(n.text)&&(a+=o.lineHeight*(n.text.length-1))):a+=i.top;const{titleX:l,titleY:u,maxWidth:c,rotation:p}=function(e,t,n,r){const{top:o,left:i,bottom:s,right:a,chart:l}=e,{chartArea:u,scales:c}=l;let p,d,h,f=0;const m=s-o,g=a-i;if(e.isHorizontal()){if(d=ja(r,i,a),zs(n)){const e=Object.keys(n)[0],r=n[e];h=c[e].getPixelForValue(r)+m-t}else h="center"===n?(u.bottom+u.top)/2+m-t:_c(e,n,t);p=a-i}else{if(zs(n)){const e=Object.keys(n)[0],r=n[e];d=c[e].getPixelForValue(r)-g+t}else d="center"===n?(u.left+u.right)/2-g+t:_c(e,n,t);h=ja(r,s,o),f="left"===n?-ha:ha}return{titleX:d,titleY:h,maxWidth:p,rotation:f}}(this,a,t,s);gl(e,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:p,textAlign:Dc(s,t,r),textBaseline:"middle",translation:[l,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Ws(e.grid&&e.grid.z,-1),r=Ws(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Nc.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return Ol(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Mc{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=Zs(Object.create(null),[n?rl.get(n):{},rl.get(t),e.defaults]);rl.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");rl.route(i,o,l,a)}))}(t,e.defaultRoutes),e.descriptors&&rl.describe(t,e.descriptors)}(e,i,n),this.override&&rl.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in rl[r]&&(delete rl[r][n],this.override&&delete Xa[n])}}class Lc{constructor(){this.controllers=new Mc(Du,"datasets",!0),this.elements=new Mc(Oc,"elements"),this.plugins=new Mc(Object,"plugins"),this.scales=new Mc(Nc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Gs(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=oa(e);$s(n["before"+r],[],n),t[e](n),$s(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var jc=new Lc;class Fc{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===$s(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){qs(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=Ws(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(jc.plugins.items);for(let e=0;e<r.length;e++)n.push(jc.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],s=e.getContext();for(const a of t){const t=a.id,l=Bc(r[t],o);null!==l&&i.push({plugin:a,options:qc(e.config,{plugin:a,local:n[t]},l,s)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Bc(e,t){return t||!1!==e?!0===e?{}:e:null}function qc(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Hc(e,t){const n=rl.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function zc(e){if("x"===e||"y"===e||"r"===e)return e}function Qc(e,...t){if(zc(e))return e;for(const r of t){const t=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.length>1&&zc(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Uc(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Wc(e){const t=e.options||(e.options={});t.plugins=Ws(t.plugins,{}),t.scales=function(e,t){const n=Xa[e.type]||{scales:{}},r=t.scales||{},o=Hc(e.type,t),i=Object.create(null);return Object.keys(r).forEach((t=>{const s=r[t];if(!zs(s))return console.error(`Invalid scale configuration for scale: ${t}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=Qc(t,s,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Uc(e,"x",n[0])||Uc(e,"y",n[0])}return{}}(t,e),rl.scales[s.type]),l=function(e,t){return e===t?"_index_":"_value_"}(a,o),u=n.scales||{};i[t]=ea(Object.create(null),[{axis:a},s,u[a],u[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,s=n.indexAxis||Hc(o,t),a=(Xa[o]||{}).scales||{};Object.keys(a).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),o=n[t+"AxisID"]||t;i[o]=i[o]||Object.create(null),ea(i[o],[{axis:t},r[o],a[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];ea(t,[rl.scales[t.type],rl.scale])})),i}(e,t)}function $c(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Gc=new Map,Jc=new Set;function Yc(e,t){let n=Gc.get(e);return n||(n=t(),Gc.set(e,n),Jc.add(n)),n}const Kc=(e,t,n)=>{const r=ra(t,n);void 0!==r&&e.add(r)};class Xc{constructor(e){this._config=function(e){return(e=e||{}).data=$c(e.data),Wc(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$c(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Wc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Yc(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Yc(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Yc(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Yc(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),s=i.get(t);if(s)return s;const a=new Set;t.forEach((t=>{e&&(a.add(e),t.forEach((t=>Kc(a,e,t)))),t.forEach((e=>Kc(a,r,e))),t.forEach((e=>Kc(a,Xa[o]||{},e))),t.forEach((e=>Kc(a,rl,e))),t.forEach((e=>Kc(a,Za,e)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Jc.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Xa[t]||{},rl.datasets[t]||{},{type:t},rl,Za]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:s}=Zc(this._resolverCache,e,r);let a=i;(function(e,t){const{isScriptable:n,isIndexable:r}=Il(e);for(const o of t){const t=n(o),i=r(o),s=(i||t)&&e[o];if(t&&(sa(s)||ep(s))||i&&Hs(s))return!0}return!1})(i,t)&&(o.$shared=!1,a=Rl(i,n=sa(n)?n():n,this.createResolver(e,n,s)));for(const e of t)o[e]=a[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Zc(this._resolverCache,e,n);return zs(t)?Rl(o,t,void 0,r):o}}function Zc(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:Vl(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,i)),i}const ep=e=>zs(e)&&Object.getOwnPropertyNames(e).some((t=>sa(e[t]))),tp=["top","bottom","left","right","chartArea"];function np(e,t){return"top"===e||"bottom"===e||-1===tp.indexOf(e)&&"x"===t}function rp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function op(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),$s(n&&n.onComplete,[e],t)}function ip(e){const t=e.chart,n=t.options.animation;$s(n&&n.onProgress,[e],t)}function sp(e){return Gl()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ap={},lp=e=>{const t=sp(e);return Object.values(ap).filter((e=>e.canvas===t)).pop()};function up(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}function cp(e,t,n){return e.options.clip?e[n]:t[n]}class pp{static defaults=rl;static instances=ap;static overrides=Xa;static registry=jc;static version="4.4.3";static getChart=lp;static register(...e){jc.add(...e),dp()}static unregister(...e){jc.remove(...e),dp()}constructor(e,t){const n=this.config=new Xc(t),r=sp(e),o=lp(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Gl()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?cc:Sc}(r)),this.platform.updateConfig(n);const s=this.platform.acquireContext(r,i.aspectRatio),a=s&&s.canvas,l=a&&a.height,u=a&&a.width;this.id=Bs(),this.ctx=s,this.canvas=a,this.width=u,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Fc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],ap[this.id]=this,s&&a?(vu.listen(this,"complete",op),vu.listen(this,"progress",ip),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return qs(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return jc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ru(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return sl(this.canvas,this.ctx),this}stop(){return vu.stop(this),this}resize(e,t){vu.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,ru(this,s,!0)&&(this.notifyPlugins("resize",{size:i}),$s(n.onResize,[this,i],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Gs(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Qc(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),Gs(o,(t=>{const o=t.options,i=o.id,s=Qc(i,o),a=Ws(o.type,t.dtype);void 0!==o.position&&np(o.position,s)===np(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;i in n&&n[i].type===a?l=n[i]:(l=new(jc.getScale(a))({id:i,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,e)})),Gs(r,((e,t)=>{e||delete n[t]})),Gs(n,(e=>{lc.configure(this,e,e.options),lc.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(rp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||Hc(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=jc.getController(i),{datasetElementType:r,dataElementType:s}=rl.datasets[i];Object.assign(t,{dataElementType:jc.getElement(s),datasetElementType:r&&jc.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Gs(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||Gs(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(rp("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Gs(this.scales,(e=>{lc.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);aa(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t)up(e,r,"_removeElements"===n?-o:o)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let e=1;e<t;e++)if(!aa(r,n(e)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;lc.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Gs(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,sa(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vu.has(this)?this.attached&&!vu.running(this)&&vu.start(this):(this.draw(),op({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:cp(n,t,"left"),right:cp(n,t,"right"),top:cp(r,t,"top"),bottom:cp(r,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&cl(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&pl(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return ul(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=Yu.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=_l(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);ia(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),vu.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),sl(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete ap[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Gs(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const s=()=>{r("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",s)},t.isAttached(this.canvas)?s():i()}unbindEvents(){Gs(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Gs(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,s,a;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),s=0,a=e.length;s<a;++s){i=e[s];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!Js(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),s=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),s.length&&r.mode&&this.updateHoverStyle(s,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,s=this._getActiveElements(e,r,n,i),a=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,a);n&&(this._lastEvent=null,$s(o.onHover,[e,s,this],this),a&&$s(o.onClick,[e,s,this],this));const u=!Js(s,r);return(u||t)&&(this._active=s,this._updateHoverStyles(s,r,t)),this._lastEvent=l,u}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function dp(){return Gs(pp.instances,(e=>e._plugins.invalidate()))}function hp(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function fp(e,t,n,r,o,i){const{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=t,p=Math.max(t.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0;let h=0;const f=o-l;if(r){const e=((c>0?c-r:0)+(p>0?p-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*p-n/la)/p)/2,g=l+m+h,y=o-m-h,{outerStart:v,outerEnd:b,innerStart:C,innerEnd:w}=function(e,t,n,r){const o=xl(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),i=(n-t)/2,s=Math.min(i,r*t/2),a=e=>{const t=(n-Math.min(i,e))*r/2;return _a(e,0,Math.min(i,t))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:_a(o.innerStart,0,s),innerEnd:_a(o.innerEnd,0,s)}}(t,d,p,y-g),x=p-v,E=p-b,P=g+v/x,S=y-b/E,O=d+C,T=d+w,_=g+C/O,V=y-w/T;if(e.beginPath(),i){const t=(P+S)/2;if(e.arc(s,a,p,P,t),e.arc(s,a,p,t,S),b>0){const t=hp(E,S,s,a);e.arc(t.x,t.y,b,S,y+ha)}const n=hp(T,y,s,a);if(e.lineTo(n.x,n.y),w>0){const t=hp(T,V,s,a);e.arc(t.x,t.y,w,y+ha,V+Math.PI)}const r=(y-w/d+(g+C/d))/2;if(e.arc(s,a,d,y-w/d,r,!0),e.arc(s,a,d,r,g+C/d,!0),C>0){const t=hp(O,_,s,a);e.arc(t.x,t.y,C,_+Math.PI,g-ha)}const o=hp(x,g,s,a);if(e.lineTo(o.x,o.y),v>0){const t=hp(x,P,s,a);e.arc(t.x,t.y,v,g-ha,P)}}else{e.moveTo(s,a);const t=Math.cos(P)*p+s,n=Math.sin(P)*p+a;e.lineTo(t,n);const r=Math.cos(S)*p+s,o=Math.sin(S)*p+a;e.lineTo(r,o)}e.closePath()}class mp extends Oc{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=Ea(r,{x:e,y:t}),{startAngle:s,endAngle:a,innerRadius:l,outerRadius:u,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,d=Ws(c,a-s)>=ua||Ta(o,s,a),h=Va(i,l+p,u+p);return d&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:a,spacing:l}=this.options,u=(r+o)/2,c=(i+s+l+a)/2;return{x:t+Math.cos(u)*c,y:n+Math.sin(u)*c}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>ua?Math.floor(n/ua):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*r,Math.sin(s)*r);const a=r*(1-Math.sin(Math.min(la,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:i,startAngle:s,circumference:a}=t;let l=t.endAngle;if(i){fp(e,t,n,r,l,o);for(let t=0;t<i;++t)e.fill();isNaN(a)||(l=s+(a%ua||ua))}fp(e,t,n,r,l,o),e.fill()}(e,this,a,o,i),function(e,t,n,r,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:p,borderDashOffset:d}=l,h="inner"===l.borderAlign;if(!u)return;e.setLineDash(p||[]),e.lineDashOffset=d,h?(e.lineWidth=2*u,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let f=t.endAngle;if(i){fp(e,t,n,r,f,o);for(let t=0;t<i;++t)e.stroke();isNaN(a)||(f=s+(a%ua||ua))}h&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=t;let u=o/a;e.beginPath(),e.arc(i,s,a,r-u,n+u),l>o?(u=o/l,e.arc(i,s,l,n+u,r-u,!0)):e.arc(i,s,o,n+ha,r-ha),e.closePath(),e.clip()}(e,t,f),i||(fp(e,t,n,r,f,o),e.stroke())}(e,this,a,o,i),e.restore()}}function gp(e,t,n=t){e.lineCap=Ws(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ws(n.borderDash,t.borderDash)),e.lineDashOffset=Ws(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ws(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ws(n.borderWidth,t.borderWidth),e.strokeStyle=Ws(n.borderColor,t.borderColor)}function yp(e,t,n){e.lineTo(n.x,n.y)}function vp(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:s,end:a}=t,l=Math.max(o,s),u=Math.min(i,a),c=o<s&&i<s||o>a&&i>a;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function bp(e,t,n,r){const{points:o,options:i}=t,{count:s,start:a,loop:l,ilen:u}=vp(o,n,r),c=function(e){return e.stepped?dl:e.tension||"monotone"===e.cubicInterpolationMode?hl:yp}(i);let p,d,h,{move:f=!0,reverse:m}=r||{};for(p=0;p<=u;++p)d=o[(a+(m?u-p:p))%s],d.skip||(f?(e.moveTo(d.x,d.y),f=!1):c(e,h,d,m,i.stepped),h=d);return l&&(d=o[(a+(m?u:0))%s],c(e,h,d,m,i.stepped)),!!l}function Cp(e,t,n,r){const o=t.points,{count:i,start:s,ilen:a}=vp(o,n,r),{move:l=!0,reverse:u}=r||{};let c,p,d,h,f,m,g=0,y=0;const v=e=>(s+(u?a-e:e))%i,b=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(p=o[v(0)],e.moveTo(p.x,p.y)),c=0;c<=a;++c){if(p=o[v(c)],p.skip)continue;const t=p.x,n=p.y,r=0|t;r===d?(n<h?h=n:n>f&&(f=n),g=(y*g+t)/++y):(b(),e.lineTo(t,n),d=r,y=0,h=f=n),m=n}b()}function wp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?bp:Cp}const xp="function"==typeof Path2D;class Ep extends Oc{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;$l(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:s,end:a}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return function(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const o=e._chart.getContext(),i=mu(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,u=[];let c=i,p=t[0].start,d=p;function h(e,t,r,o){const i=a?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:o}),c=o,p=t%l)}}for(const e of t){p=a?p:e.start;let t,i=n[p%l];for(d=p+1;d<=e.end;d++){const a=n[d%l];t=mu(r.setContext(_l(o,{type:"segment",p0:i,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),gu(t,c)&&h(p,d-1,e.loop,c),i=a,c=t}p<d-1&&h(p,d-1,e.loop,c)}return u}(e,t,n,r):t}(e,!0===r?[{start:s,end:a,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let s,a=t,l=e[t];for(s=t+1;s<=n;++s){const n=e[s%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(s-1)%o,loop:r}),t=a=n.stop?s:null):(a=s,l.skip&&(t=s)),l=n}return null!==a&&i.push({start:t%o,end:a%o,loop:r}),i}(n,s,a<s?a+o:a,!!e._fullLoop&&0===s&&a===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=function(e,t){const n=[],r=e.segments;for(let o=0;o<r.length;o++){const i=fu(r[o],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:r,end:r});if(!i.length)return;const s=[],a=function(e){return e.stepped?au:e.tension||"monotone"===e.cubicInterpolationMode?lu:su}(n);let l,u;for(l=0,u=i.length;l<u;++l){const{start:u,end:c}=i[l],p=o[u],d=o[c];if(p===d){s.push(p);continue}const h=a(p,d,Math.abs((r-p[t])/(d[t]-p[t])),n.stepped);h[t]=e[t],s.push(h)}return 1===s.length?s[0]:s}pathSegment(e,t,n){return wp(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=wp(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const s of r)i&=o(e,this,s,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),function(e,t,n,r){xp&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),gp(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,s=wp(t);for(const a of o)gp(e,i,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pp(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}class Sp extends Oc{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return Pp(this,e,"x",t)}inYRange(e,t){return Pp(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!ul(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,al(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Op(e,t){const{x:n,y:r,base:o,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,u,c,p;return e.horizontal?(p=s/2,a=Math.min(n,o),l=Math.max(n,o),u=r-p,c=r+p):(p=i/2,a=n-p,l=n+p,u=Math.min(r,o),c=Math.max(r,o)),{left:a,top:u,right:l,bottom:c}}function Tp(e,t,n,r){return e?0:_a(t,n,r)}function _p(e,t,n,r){const o=null===t,i=null===n,s=e&&!(o&&i)&&Op(e,r);return s&&(o||Va(t,s.left,s.right))&&(i||Va(n,s.top,s.bottom))}function Vp(e,t){e.rect(t.x,t.y,t.w,t.h)}function Rp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+s,radius:e.radius}}class Ip extends Oc{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=function(e){const t=Op(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=El(r);return{t:Tp(o.top,i.top,0,n),r:Tp(o.right,i.right,0,t),b:Tp(o.bottom,i.bottom,0,n),l:Tp(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Pl(o),s=Math.min(t,n),a=e.borderSkipped,l=r||zs(o);return{topLeft:Tp(!l||a.top||a.left,i.topLeft,0,s),topRight:Tp(!l||a.top||a.right,i.topRight,0,s),bottomLeft:Tp(!l||a.bottom||a.left,i.bottomLeft,0,s),bottomRight:Tp(!l||a.bottom||a.right,i.bottomRight,0,s)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}(this),s=(a=i.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?yl:Vp;var a;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),s(e,Rp(i,t,o)),e.clip(),s(e,Rp(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),s(e,Rp(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return _p(this,e,t,n)}inXRange(e,t){return _p(this,e,null,t)}inYRange(e,t){return _p(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}const kp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Ap extends Oc{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=$s(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Ol(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:s,itemHeight:a}=kp(n,o);let l,u;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,u=this._fitRows(i,o,s,a)+10):(u=this.maxHeight,l=this._fitCols(i,r,s,a)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+s;let c=e;o.textAlign="left",o.textBaseline="middle";let p=-1,d=-u;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+o.measureText(e.text).width;(0===h||l[l.length-1]+f+2*s>i)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,p++),a[h]={left:0,top:d,row:p,width:f,height:r},l[l.length-1]+=f+s})),c}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],u=i-e;let c=s,p=0,d=0,h=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,o){const i=function(e,t,n,r){let o=e.text;return o&&"string"!=typeof o&&(o=o.reduce(((e,t)=>e.length>t.length?e:t))),t+n.size/2+r.measureText(o).width}(r,e,t,n),s=function(e,t,n){let r=e;return"string"!=typeof t.text&&(r=Dp(t,n)),r}(o,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}(n,t,o,e,r);i>0&&d+g+2*s>u&&(c+=p+s,l.push({width:p,height:d}),h+=p+s,f++,p=d=0),a[i]={left:h,top:d,col:f,width:m,height:g},p=Math.max(p,m),d+=g+s})),c+=p,l.push({width:p,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=uu(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=ja(n,this.left+r,this.right-this.lineWidths[o]);for(const a of t)o!==a.row&&(o=a.row,s=ja(n,this.left+r,this.right-this.lineWidths[o])),a.top+=this.top+e+r,a.left=i.leftForLtr(i.x(s),a.width),s+=a.width+r}else{let o=0,s=ja(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const a of t)a.col!==o&&(o=a.col,s=ja(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),a.top=s,a.left+=this.left+r,a.left=i.leftForLtr(i.x(a.left),a.width),s+=a.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;cl(e,this),this._draw(),pl(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,s=rl.color,a=uu(e.rtl,this.left,this.width),l=Ol(i.font),{padding:u}=i,c=l.size,p=c/2;let d;this.drawTitle(),r.textAlign=a.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=kp(i,c),g=this.isHorizontal(),y=this._computeTitleHeight();d=g?{x:ja(o,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:ja(o,this.top+y+u,this.bottom-t[0].height),line:0},cu(this.ctx,e.textDirection);const v=m+u;this.legendItems.forEach(((b,C)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const w=r.measureText(b.text).width,x=a.textAlign(b.textAlign||(b.textAlign=i.textAlign)),E=h+p+w;let P=d.x,S=d.y;if(a.setWidth(this.width),g?C>0&&P+E+u>this.right&&(S=d.y+=v,d.line++,P=d.x=ja(o,this.left+u,this.right-n[d.line])):C>0&&S+v>this.bottom&&(P=d.x=P+t[d.line].width+u,d.line++,S=d.y=ja(o,this.top+y+u,this.bottom-t[d.line].height)),function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;r.save();const o=Ws(n.lineWidth,1);if(r.fillStyle=Ws(n.fillStyle,s),r.lineCap=Ws(n.lineCap,"butt"),r.lineDashOffset=Ws(n.lineDashOffset,0),r.lineJoin=Ws(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=Ws(n.strokeStyle,s),r.setLineDash(Ws(n.lineDash,[])),i.usePointStyle){const s={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=a.xPlus(e,h/2);ll(r,s,l,t+p,i.pointStyleWidth&&h)}else{const i=t+Math.max((c-f)/2,0),s=a.leftForLtr(e,h),l=Pl(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?yl(r,{x:s,y:i,w:h,h:f,radius:l}):r.rect(s,i,h,f),r.fill(),0!==o&&r.stroke()}r.restore()}(a.x(P),S,b),P=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(x,P+h+p,g?P+E:this.right,e.rtl),function(e,t,n){gl(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(P),S,b),g)d.x+=E+u;else if("string"!=typeof b.text){const e=l.lineHeight;d.y+=Dp(b,e)+u}else d.y+=v})),pu(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ol(t.font),r=Sl(t.padding);if(!t.display)return;const o=uu(e.rtl,this.left,this.width),i=this.ctx,s=t.position,a=n.size/2,l=r.top+a;let u,c=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+l,c=ja(e.align,c,this.right-p);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);u=l+ja(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const d=ja(s,c,c+p);i.textAlign=o.textAlign(La(s)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,gl(i,t.text,d,u,n)}_computeTitleHeight(){const e=this.options.title,t=Ol(e.font),n=Sl(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(Va(e,this.left,this.right)&&Va(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],Va(e,r.left,r.left+r.width)&&Va(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,o=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(r,n);r&&!o&&$s(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!o&&$s(t.onHover,[e,n,this],this)}else n&&$s(t.onClick,[e,n,this],this)}}function Dp(e,t){return t*(e.text?e.text.length:0)}var Np={id:"legend",_element:Ap,start(e,t,n){const r=e.legend=new Ap({ctx:e.ctx,options:n,chart:e});lc.configure(e,r,n),lc.addBox(e,r)},stop(e){lc.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;lc.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),u=Sl(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:s&&(a||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Mp extends Oc{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=Hs(n.text)?n.text.length:1;this._padding=Sl(n.padding);const o=r*Ol(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:i}=this,s=i.align;let a,l,u,c=0;return this.isHorizontal()?(l=ja(s,n,o),u=t+e,a=o-n):("left"===i.position?(l=n+e,u=ja(s,r,t),c=-.5*la):(l=o-e,u=ja(s,t,r),c=.5*la),a=r-t),{titleX:l,titleY:u,maxWidth:a,rotation:c}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Ol(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:s,rotation:a}=this._drawArgs(r);gl(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:a,textAlign:La(t.align),textBaseline:"middle",translation:[o,i]})}}var Lp={id:"title",_element:Mp,start(e,t,n){!function(e,t){const n=new Mp({ctx:e.ctx,options:t,chart:e});lc.configure(e,n,t),lc.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;lc.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;lc.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const jp={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),o+=e.y,++i}}const s=[...r].reduce(((e,t)=>e+t))/r.size;return{x:s,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,s=t.y,a=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Pa(t,r.getCenterPoint());e<a&&(a=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,s=e.y}return{x:i,y:s}}};function Fp(e,t){return t&&(Hs(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Bp(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function qp(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:e,label:s,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Hp(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:s,boxHeight:a}=t,l=Ol(t.bodyFont),u=Ol(t.titleFont),c=Ol(t.footerFont),p=i.length,d=o.length,h=r.length,f=Sl(t.padding);let m=f.height,g=0,y=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);y+=e.beforeBody.length+e.afterBody.length,p&&(m+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),y&&(m+=h*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(y-h)*l.lineHeight+(y-1)*t.bodySpacing),d&&(m+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);let v=0;const b=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=u.string,Gs(e.title,b),n.font=l.string,Gs(e.beforeBody.concat(e.afterBody),b),v=t.displayColors?s+2+t.boxPadding:0,Gs(r,(e=>{Gs(e.before,b),Gs(e.lines,b),Gs(e.after,b)})),v=0,n.font=c.string,Gs(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function zp(e,t,n,r){const{x:o,width:i}=n,{width:s,chartArea:{left:a,right:l}}=e;let u="center";return"center"===r?u=o<=(a+l)/2?"left":"right":o<=i/2?u="left":o>=s-i/2&&(u="right"),function(e,t,n,r){const{x:o,width:i}=r,s=n.caretSize+n.caretPadding;return"left"===e&&o+i+s>t.width||"right"===e&&o-i-s<0||void 0}(u,e,t,n)&&(u="center"),u}function Qp(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||zp(e,t,n,r),yAlign:r}}function Up(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,u=o+i,{topLeft:c,topRight:p,bottomLeft:d,bottomRight:h}=Pl(s);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,a);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,u);return"center"===l?"left"===a?f+=u:"right"===a&&(f-=u):"left"===a?f-=Math.max(c,d)+o:"right"===a&&(f+=Math.max(p,h)+o),{x:_a(f,0,r.width-t.width),y:_a(m,0,r.height-t.height)}}function Wp(e,t,n){const r=Sl(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function $p(e){return Fp([],Bp(e))}function Gp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Jp={beforeTitle:Fs,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Fs,beforeBody:Fs,beforeLabel:Fs,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return qs(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Fs,afterBody:Fs,beforeFooter:Fs,footer:Fs,afterFooter:Fs};function Yp(e,t,n,r){const o=e[t].call(n,r);return void 0===o?Jp[t].call(n,r):o}class Kp extends Oc{static positioners=jp;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new xu(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=_l(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(e,t){const{callbacks:n}=t,r=Yp(n,"beforeTitle",this,e),o=Yp(n,"title",this,e),i=Yp(n,"afterTitle",this,e);let s=[];return s=Fp(s,Bp(r)),s=Fp(s,Bp(o)),s=Fp(s,Bp(i)),s}getBeforeBody(e,t){return $p(Yp(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return Gs(e,(e=>{const t={before:[],lines:[],after:[]},o=Gp(n,e);Fp(t.before,Bp(Yp(o,"beforeLabel",this,e))),Fp(t.lines,Yp(o,"label",this,e)),Fp(t.after,Bp(Yp(o,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return $p(Yp(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=Yp(n,"beforeFooter",this,e),o=Yp(n,"footer",this,e),i=Yp(n,"afterFooter",this,e);let s=[];return s=Fp(s,Bp(r)),s=Fp(s,Bp(o)),s=Fp(s,Bp(i)),s}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let s,a,l=[];for(s=0,a=t.length;s<a;++s)l.push(qp(this.chart,t[s]));return e.filter&&(l=l.filter(((t,r,o)=>e.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),Gs(l,(t=>{const n=Gp(e.callbacks,t);r.push(Yp(n,"labelColor",this,t)),o.push(Yp(n,"labelPointStyle",this,t)),i.push(Yp(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=jp[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=Hp(this,n),s=Object.assign({},e,t),a=Qp(this.chart,n,s),l=Up(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:s}=n,{topLeft:a,topRight:l,bottomLeft:u,bottomRight:c}=Pl(s),{x:p,y:d}=e,{width:h,height:f}=t;let m,g,y,v,b,C;return"center"===o?(b=d+f/2,"left"===r?(m=p,g=m-i,v=b+i,C=b-i):(m=p+h,g=m+i,v=b-i,C=b+i),y=m):(g="left"===r?p+Math.max(a,u)+i:"right"===r?p+h-Math.max(l,c)-i:this.caretX,"top"===o?(v=d,b=v-i,m=g-i,y=g+i):(v=d+f,b=v+i,m=g+i,y=g-i),C=v),{x1:m,x2:g,x3:y,y1:v,y2:b,y3:C}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,s,a;if(o){const l=uu(n.rtl,this.x,this.width);for(e.x=Wp(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Ol(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+s,a+1===o&&(e.y+=n.titleMarginBottom-s)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:a,boxWidth:l}=o,u=Ol(o.bodyFont),c=Wp(this,"left",o),p=r.x(c),d=a<u.lineHeight?(u.lineHeight-a)/2:0,h=t.y+d;if(o.usePointStyle){const t={radius:Math.min(l,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=r.leftForLtr(p,l)+l/2,u=h+a/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,al(e,t,n,u),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,al(e,t,n,u)}else{e.lineWidth=zs(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(p,l),n=r.leftForLtr(r.xPlus(p,1),l-2),s=Pl(i.borderRadius);Object.values(s).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,yl(e,{x:t,y:h,w:l,h:a,radius:s}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),yl(e,{x:n,y:h+1,w:l-2,h:a-2,radius:s}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,h,l,a),e.strokeRect(t,h,l,a),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,a-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:u}=n,c=Ol(n.bodyFont);let p=c.lineHeight,d=0;const h=uu(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+d),e.y+p/2),e.y+=p+o},m=h.textAlign(i);let g,y,v,b,C,w,x;for(t.textAlign=i,t.textBaseline="middle",t.font=c.string,e.x=Wp(this,m,n),t.fillStyle=n.bodyColor,Gs(this.beforeBody,f),d=s&&"right"!==m?"center"===i?l/2+u:l+2+u:0,b=0,w=r.length;b<w;++b){for(g=r[b],y=this.labelTextColors[b],t.fillStyle=y,Gs(g.before,f),v=g.lines,s&&v.length&&(this._drawColorBox(t,e,b,h,n),p=Math.max(c.lineHeight,a)),C=0,x=v.length;C<x;++C)f(v[C]),p=c.lineHeight;Gs(g.after,f)}d=0,p=c.lineHeight,Gs(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,s;if(o){const a=uu(n.rtl,this.x,this.width);for(e.x=Wp(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=a.textAlign(n.footerAlign),t.textBaseline="middle",i=Ol(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],a.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:s,y:a}=e,{width:l,height:u}=n,{topLeft:c,topRight:p,bottomLeft:d,bottomRight:h}=Pl(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(s+c,a),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(s+l-p,a),t.quadraticCurveTo(s+l,a,s+l,a+p),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(s+l,a+u-h),t.quadraticCurveTo(s+l,a+u,s+l-h,a+u),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(s+d,a+u),t.quadraticCurveTo(s,a+u,s,a+u-d),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(s,a+c),t.quadraticCurveTo(s,a,s+c,a),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=jp[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Hp(this,e),s=Object.assign({},n,this._size),a=Qp(t,e,s),l=Up(e,s,a,t);r._to===l.x&&o._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Sl(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),cu(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),pu(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!Js(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),s=this._positionChanged(i,e),a=t||!Js(i,o)||s;return a&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),a}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=jp[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}var Xp={id:"tooltip",_element:Kp,positioners:jp,afterInit(e,t,n){n&&(e.tooltip=new Kp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Jp},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Zp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class ed extends Nc{static id="category";static defaults={ticks:{callback:Zp}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(qs(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:_a(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,r){const o=e.indexOf(t);return-1===o?((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r):o!==e.lastIndexOf(t)?n:o}(n,e,Ws(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return Zp.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function td(e,t,{horizontal:n,minRotation:r}){const o=wa(r),i=(n?Math.sin(o):Math.cos(o))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class nd extends Nc{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return qs(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,s=e=>o=n?o:e;if(e){const e=ya(r),t=ya(o);e<0&&t<0?s(0):e>0&&t>0&&i(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);s(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(e,t){const n=[],{bounds:r,step:o,min:i,max:s,precision:a,count:l,maxTicks:u,maxDigits:c,includeBounds:p}=e,d=o||1,h=u-1,{min:f,max:m}=t,g=!qs(i),y=!qs(s),v=!qs(l),b=(m-f)/(c+1);let C,w,x,E,P=ba((m-f)/h/d)*d;if(P<1e-14&&!g&&!y)return[{value:f},{value:m}];E=Math.ceil(m/P)-Math.floor(f/P),E>h&&(P=ba(E*P/h/d)*d),qs(a)||(C=Math.pow(10,a),P=Math.ceil(P*C)/C),"ticks"===r?(w=Math.floor(f/P)*P,x=Math.ceil(m/P)*P):(w=f,x=m),g&&y&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((s-i)/o,P/1e3)?(E=Math.round(Math.min((s-i)/P,u)),P=(s-i)/E,w=i,x=s):v?(w=g?i:w,x=y?s:x,E=l-1,P=(x-w)/E):(E=(x-w)/P,E=va(E,Math.round(E),P/1e3)?Math.round(E):Math.ceil(E));const S=Math.max(xa(P),xa(w));C=Math.pow(10,qs(a)?S:a),w=Math.round(w*C)/C,x=Math.round(x*C)/C;let O=0;for(g&&(p&&w!==i?(n.push({value:i}),w<i&&O++,va(Math.round((w+O*P)*C)/C,i,td(i,b,e))&&O++):w<i&&O++);O<E;++O){const e=Math.round((w+O*P)*C)/C;if(y&&e>s)break;n.push({value:e})}return y&&p&&x!==s?n.length&&va(n[n.length-1].value,s,td(s,b,e))?n[n.length-1].value=s:n.push({value:s}):y&&x!==s||n.push({value:x}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&function(e,t,n){let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Ja(e,this.chart.options.locale,this.options.ticks.format)}}class rd extends nd{static id="linear";static defaults={ticks:{callback:Ka.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Qs(e)?e:0,this.max=Qs(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=wa(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Ka.formatters.logarithmic,Ka.formatters.numeric;const od="label";function id(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function sd(e,t){e.labels=t}function ad(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:od;const r=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[n]===t[n]));return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}}))}function ld(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:od;const n={labels:[],datasets:[]};return sd(n,e.labels),ad(n,e.datasets,t),n}function ud(e,n){const{height:r=150,width:o=300,redraw:i=!1,datasetIdKey:s,type:a,data:l,options:u,plugins:c=[],fallbackContent:p,updateMode:d,...h}=e,f=(0,t.useRef)(null),m=(0,t.useRef)(),g=()=>{f.current&&(m.current=new pp(f.current,{type:a,data:ld(l,s),options:u&&{...u},plugins:c}),id(n,m.current))},y=()=>{id(n,null),m.current&&(m.current.destroy(),m.current=null)};return(0,t.useEffect)((()=>{!i&&m.current&&u&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,u)}),[i,u]),(0,t.useEffect)((()=>{!i&&m.current&&sd(m.current.config.data,l.labels)}),[i,l.labels]),(0,t.useEffect)((()=>{!i&&m.current&&l.datasets&&ad(m.current.config.data,l.datasets,s)}),[i,l.datasets]),(0,t.useEffect)((()=>{m.current&&(i?(y(),setTimeout(g)):m.current.update(d))}),[i,u,l.labels,l.datasets,d]),(0,t.useEffect)((()=>{m.current&&(y(),setTimeout(g))}),[a]),(0,t.useEffect)((()=>(g(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:f,role:"img",height:r,width:o},h),p)}const cd=(0,t.forwardRef)(ud);function pd(e,n){return pp.register(n),(0,t.forwardRef)(((n,r)=>t.createElement(cd,Object.assign({},n,{ref:r,type:e}))))}const dd=pd("line",Qu),hd=pd("bar",zu);var fd=o(292);function md(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){},r=new Map,o=md(e);try{for(o.s();!(t=o.n()).done;){var i,s=Rt(t.value,2),a=s[0],l=s[1],u=new Map,c=md(l);try{for(c.s();!(i=c.n()).done;){var p,d=Rt(i.value,2),h=d[0],f=d[1],m=new Map,g=md(f);try{for(g.s();!(p=g.n()).done;){var y=Rt(p.value,2),v=y[0],b=n(h,y[1]);b?m.set(v,{tooltip:b}):m.set(v,{})}}catch(e){g.e(e)}finally{g.f()}u.set(h,m)}}catch(e){c.e(e)}finally{c.f()}r.set(a,u)}}catch(e){o.e(e)}finally{o.f()}return r}function vd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);(!n||n.year<e.year)&&t.set(e.nren,e)})),Array.from(t.values())}var bd=function(e){var t={};return e.urls||e.url?(e.urls&&e.urls.forEach((function(e){t[e]=e})),e.url&&(t[e.url]=e.url),t):t};function Cd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);n||(n=new Map);var r=n.get(e.year);r||(r=[]),r.push(e),n.set(e.year,r),t.set(e.nren,n)})),t}function wd(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.nren);n||(n=new Map),n.set(e.year,e),t.set(e.nren,n)})),t}function xd(e,t){var n=new Map;return e.forEach((function(e,r){var o=new Map,i=Array.from(e.keys()).sort((function(e,t){return t-e}));i.forEach((function(n){var r=e.get(n),i=o.get(n)||{};t(i,r),Object.keys(i).length>0&&o.set(n,i)})),n.set(r,o)})),n}function Ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Map;return e.forEach((function(e){var o=function(t){var n=r.get(e.nren);n||(n=new Map);var o=n.get(t);o||(o=new Map),o.set(e.year,e),n.set(t,o),r.set(e.nren,n)},i=e[t];"boolean"==typeof i&&(i=i?"True":"False"),n&&null==i&&(i="".concat(i)),Array.isArray(i)?i.forEach(o):o(i)})),r}function Pd(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0,i=new Map,s=function(e,t,n){e.forEach((function(e){o&&o(e);var s=t?e[t]:n;"boolean"==typeof s&&(s=s?"True":"False");var a=e.nren,l=e.year,u=i.get(a)||new Map,c=u.get(l)||new Map,p=c.get(s)||{},d=e[n];if(null!=d){var h=r?d:n,f=p[h]||{};f["".concat(d)]=d,p[h]=f,c.set(s,p),u.set(l,c),i.set(a,u)}}))};if(n){var a,l=md(t);try{for(l.s();!(a=l.n()).done;)s(e,n,a.value)}catch(e){l.e(e)}finally{l.f()}}else{var u,c=md(t);try{for(c.s();!(u=c.n()).done;)s(e,void 0,u.value)}catch(e){c.e(e)}finally{c.f()}}return i}function Sd(e,t){var n=Kt(new Set(e.map((function(e){return e.year})))).sort(),r=Kt(new Set(e.map((function(e){return e.nren})))).sort(),o=wd(e);return{datasets:r.map((function(e){var r=function(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",o=0;o<3;o++){var i="00"+(t>>8*o&255).toString(16);r+=i.substring(i.length-2)}return r}(e);return{backgroundColor:r,borderColor:r,data:n.map((function(n){var r=o.get(e);if(!r)return null;var i=r.get(n);return i?i[t]:null})),label:e,hidden:!1}})),labels:n.map((function(e){return e.toString()}))}}var Od=function(e,t,n){var r=wd(e),o=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),i={datasets:Kt(new Set(e.map((function(e){return e.year})))).sort().sort().map((function(e,i){return{backgroundColor:"rgba(219, 42, 76, 1)",label:"".concat(n," (").concat(e,")"),data:o.map((function(n){var o,i=r.get(n).get(e);return i&&null!==(o=i[t])&&void 0!==o?o:0})),stack:"".concat(e),borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}})),labels:o};return i};const Td=function(e){var n=e.to,r=e.children,o=window.location.pathname===n,i=(0,t.useRef)();return o&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"center"}),t.createElement(Tn,null,t.createElement(St,{to:n,className:"link-text-underline",ref:i},o?t.createElement("b",null,r):r))},_d=function(e){var n=e.children,r=Rt((0,t.useState)(!1),2),o=r[0],i=r[1],s=function(e){e.stopPropagation(),e.preventDefault(),i(!o)},a=function(e){e.target.closest("#sidebar")||e.target.closest(".toggle-btn")||i(!1)};return(0,t.useEffect)((function(){return document.addEventListener("click",a),function(){document.removeEventListener("click",a)}})),t.createElement("div",{className:"sidebar-wrapper"},t.createElement("nav",{className:o?"":"no-sidebar",id:"sidebar"},t.createElement("div",{className:"menu-items"},n)),t.createElement("div",{className:"toggle-btn",onClick:s},t.createElement("div",{className:"toggle-btn-wrapper"},t.createElement("span",null,"MENU")," ",o?t.createElement(br,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:s}):t.createElement(Cr,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:s}))))},Vd=function(){return t.createElement(_d,null,t.createElement("h5",null,"Organisation"),t.createElement("h6",{className:"section-title"},"Budget, Income and Billing"),t.createElement(Td,{to:"/budget"},t.createElement("span",null,"Budget of NRENs per Year")),t.createElement(Td,{to:"/funding"},t.createElement("span",null,"Income Source of NRENs")),t.createElement(Td,{to:"/charging"},t.createElement("span",null,"Charging Mechanism of NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Staff and Projects"),t.createElement(Td,{to:"/employee-count"},t.createElement("span",null,"Number of NREN Employees")),t.createElement(Td,{to:"/roles"},t.createElement("span",null,"Roles of NREN employees (Technical v. Non-Technical)")),t.createElement(Td,{to:"/employment"},t.createElement("span",null,"Types of Employment within NRENs")),t.createElement(Td,{to:"/suborganisations"},t.createElement("span",null,"NREN Sub-Organisations")),t.createElement(Td,{to:"/parentorganisation"},t.createElement("span",null,"NREN Parent Organisations")),t.createElement(Td,{to:"/ec-projects"},t.createElement("span",null,"NREN Involvement in European Commission Projects")))},Rd=t.forwardRef((({bsPrefix:e,className:t,role:n="toolbar",...r},o)=>{const i=Cn(e,"btn-toolbar");return(0,gn.jsx)("div",{...r,ref:o,className:mn()(t,i),role:n})}));Rd.displayName="ButtonToolbar";const Id=Rd,kd=function(e){var n=e.activeCategory,r=We();return t.createElement(Sn,null,t.createElement(Tn,null,t.createElement(Id,{className:"navbox-bar gap-2 m-3"},t.createElement(as,{onClick:function(){return r(n===Tr.Organisation?".":"/funding")},variant:"nav-box",active:n===Tr.Organisation},t.createElement("span",null,Tr.Organisation)),t.createElement(as,{onClick:function(){return r(n===Tr.Policy?".":"/policy")},variant:"nav-box",active:n===Tr.Policy},t.createElement("span",null,Tr.Policy)),t.createElement(as,{onClick:function(){return r(n===Tr.ConnectedUsers?".":"/institutions-urls")},variant:"nav-box",active:n===Tr.ConnectedUsers},t.createElement("span",null,Tr.ConnectedUsers)),t.createElement(as,{onClick:function(){return r(n===Tr.Network?".":"/traffic-volume")},variant:"nav-box",active:n===Tr.Network},t.createElement("span",null,Tr.Network)),t.createElement(as,{onClick:function(){return r(n===Tr.Services?".":"/network-services")},variant:"nav-box",active:n===Tr.Services},t.createElement("span",null,Tr.Services)))))},Ad=function(){return t.createElement(_d,null,t.createElement("h5",null,"Standards and Policies"),t.createElement(Td,{to:"/policy"},t.createElement("span",null,"NREN Policies")),t.createElement("h6",{className:"section-title"},"Standards"),t.createElement(Td,{to:"/audits"},t.createElement("span",null,"External and Internal Audits of Information Security Management Systems")),t.createElement(Td,{to:"/business-continuity"},t.createElement("span",null,"NREN Business Continuity Planning")),t.createElement(Td,{to:"/central-procurement"},t.createElement("span",null,"Central Procurement of Software")),t.createElement(Td,{to:"/crisis-management"},t.createElement("span",null,"Crisis Management Procedures")),t.createElement(Td,{to:"/crisis-exercise"},t.createElement("span",null,"Crisis Exercises - NREN Operation and Participation")),t.createElement(Td,{to:"/security-control"},t.createElement("span",null,"Security Controls Used by NRENs")),t.createElement(Td,{to:"/services-offered"},t.createElement("span",null,"Services Offered by NRENs by Types of Users")),t.createElement(Td,{to:"/corporate-strategy"},t.createElement("span",null,"NREN Corporate Strategies ")),t.createElement(Td,{to:"/service-level-targets"},t.createElement("span",null,"NRENs Offering Service Level Targets")),t.createElement(Td,{to:"/service-management-framework"},t.createElement("span",null,"NRENs Operating a Formal Service Management Framework")))},Dd=function(){return t.createElement(_d,null,t.createElement("h5",null,"Network"),t.createElement("h6",{className:"section-title"},"Connectivity"),t.createElement(Td,{to:"/traffic-volume"},t.createElement("span",null,"NREN Traffic - NREN Customers & External Networks")),t.createElement(Td,{to:"/iru-duration"},t.createElement("span",null,"Average Duration of IRU leases of Fibre by NRENs")),t.createElement(Td,{to:"/fibre-light"},t.createElement("span",null,"Approaches to lighting NREN fibre networks")),t.createElement(Td,{to:"/dark-fibre-lease"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (National)")),t.createElement(Td,{to:"/dark-fibre-lease-international"},t.createElement("span",null,"Kilometres of Leased Dark Fibre (International)")),t.createElement(Td,{to:"/dark-fibre-installed"},t.createElement("span",null,"Kilometres of Installed Dark Fibre")),t.createElement(Td,{to:"/network-map"},t.createElement("span",null,"NREN Network Maps")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Performance Monitoring & Management"),t.createElement(Td,{to:"/monitoring-tools"},t.createElement("span",null,"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions")),t.createElement(Td,{to:"/pert-team"},t.createElement("span",null,"NRENs with Performance Enhancement Response Teams")),t.createElement(Td,{to:"/passive-monitoring"},t.createElement("span",null,"Methods for Passively Monitoring International Traffic")),t.createElement(Td,{to:"/traffic-stats"},t.createElement("span",null,"Traffic Statistics ")),t.createElement(Td,{to:"/weather-map"},t.createElement("span",null,"NREN Online Network Weather Maps ")),t.createElement(Td,{to:"/certificate-providers"},t.createElement("span",null,"Certification Services used by NRENs")),t.createElement(Td,{to:"/siem-vendors"},t.createElement("span",null,"Vendors of SIEM/SOC systems used by NRENs")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Alienwave"),t.createElement(Td,{to:"/alien-wave"},t.createElement("span",null,"NREN Use of 3rd Party Alienwave/Lightpath Services")),t.createElement(Td,{to:"/alien-wave-internal"},t.createElement("span",null,"Internal NREN Use of Alien Waves")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Capacity"),t.createElement(Td,{to:"/capacity-largest-link"},t.createElement("span",null,"Capacity of the Largest Link in an NREN Network")),t.createElement(Td,{to:"/external-connections"},t.createElement("span",null,"NREN External IP Connections")),t.createElement(Td,{to:"/capacity-core-ip"},t.createElement("span",null,"NREN Core IP Capacity")),t.createElement(Td,{to:"/non-rne-peers"},t.createElement("span",null,"Number of Non-R&E Networks NRENs Peer With")),t.createElement(Td,{to:"/traffic-ratio"},t.createElement("span",null,"Types of traffic in NREN networks")),t.createElement("hr",{className:"fake-divider"}),t.createElement("h6",{className:"section-title"},"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"),t.createElement(Td,{to:"/ops-automation"},t.createElement("span",null,"NREN Automation of Operational Processes")),t.createElement(Td,{to:"/network-automation"},t.createElement("span",null,"Network Tasks for which NRENs Use Automation ")),t.createElement(Td,{to:"/nfv"},t.createElement("span",null,"Kinds of Network Function Virtualisation used by NRENs")))},Nd=function(){return t.createElement(_d,null,t.createElement("h6",{className:"section-title"},"Connected Users"),t.createElement(Td,{to:"/institutions-urls"},t.createElement("span",null,"Webpages Listing Institutions and Organisations Connected to NREN Networks")),t.createElement(Td,{to:"/connected-proportion"},t.createElement("span",null,"Proportion of Different Categories of Institutions Served by NRENs")),t.createElement(Td,{to:"/connectivity-level"},t.createElement("span",null,"Level of IP Connectivity by Institution Type")),t.createElement(Td,{to:"/connection-carrier"},t.createElement("span",null,"Methods of Carrying IP Traffic to Users")),t.createElement(Td,{to:"/connectivity-load"},t.createElement("span",null,"Connectivity Load")),t.createElement(Td,{to:"/connectivity-growth"},t.createElement("span",null,"Connectivity Growth")),t.createElement(Td,{to:"/remote-campuses"},t.createElement("span",null,"NREN Connectivity to Remote Campuses in Other Countries")),t.createElement("h6",{className:"section-title"},"Connected Users - Commercial"),t.createElement(Td,{to:"/commercial-charging-level"},t.createElement("span",null,"Commercial Charging Level")),t.createElement(Td,{to:"/commercial-connectivity"},t.createElement("span",null,"Commercial Connectivity")))},Md=function(){return t.createElement(_d,null,t.createElement("h5",null,"Services"),t.createElement(Td,{to:"/network-services"},t.createElement("span",null,"Network services")),t.createElement(Td,{to:"/isp-support-services"},t.createElement("span",null,"ISP support services")),t.createElement(Td,{to:"/security-services"},t.createElement("span",null,"Security services")),t.createElement(Td,{to:"/identity-services"},t.createElement("span",null,"Identity services")),t.createElement(Td,{to:"/collaboration-services"},t.createElement("span",null,"Collaboration services")),t.createElement(Td,{to:"/multimedia-services"},t.createElement("span",null,"Multimedia services")),t.createElement(Td,{to:"/storage-and-hosting-services"},t.createElement("span",null,"Storage and hosting services")),t.createElement(Td,{to:"/professional-services"},t.createElement("span",null,"Professional services")))};var Ld={version:"0.18.5"},jd=1200,Fd=1252,Bd=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qd={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Hd=function(e){-1!=Bd.indexOf(e)&&(Fd=qd[0]=e)},zd=function(e){jd=e,Hd(e)};var Qd,Ud=function(e){return String.fromCharCode(e)},Wd=function(e){return String.fromCharCode(e)},$d=null,Gd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Jd(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0,l=0,u=0;u<e.length;)i=(n=e.charCodeAt(u++))>>2,s=(3&n)<<4|(r=e.charCodeAt(u++))>>4,a=(15&r)<<2|(o=e.charCodeAt(u++))>>6,l=63&o,isNaN(r)?a=l=64:isNaN(o)&&(l=64),t+=Gd.charAt(i)+Gd.charAt(s)+Gd.charAt(a)+Gd.charAt(l);return t}function Yd(e){var t="",n=0,r=0,o=0,i=0,s=0,a=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=Gd.indexOf(e.charAt(l++))<<2|(i=Gd.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&i)<<4|(s=Gd.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(r)),o=(3&s)<<6|(a=Gd.indexOf(e.charAt(l++))),64!==a&&(t+=String.fromCharCode(o));return t}var Kd=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),Xd=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function Zd(e){return Kd?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function eh(e){return Kd?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var th=function(e){return Kd?Xd(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function nh(e){if("undefined"==typeof ArrayBuffer)return th(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function rh(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var oh=Kd?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:Xd(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},ih=/\u0000/g,sh=/[\u0001-\u0006]/g;function ah(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function lh(e,t){var n=""+e;return n.length>=t?n:bf("0",t-n.length)+n}function uh(e,t){var n=""+e;return n.length>=t?n:bf(" ",t-n.length)+n}function ch(e,t){var n=""+e;return n.length>=t?n:n+bf(" ",t-n.length)}var ph=Math.pow(2,32);function dh(e,t){return e>ph||e<-ph?function(e,t){var n=""+Math.round(e);return n.length>=t?n:bf("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:bf("0",t-n.length)+n}(Math.round(e),t)}function hh(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var fh=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],mh=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],gh={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},yh={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},vh={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function bh(e,t,n){for(var r=e<0?-1:1,o=e*r,i=0,s=1,a=0,l=1,u=0,c=0,p=Math.floor(o);u<t&&(a=(p=Math.floor(o))*s+i,c=p*u+l,!(o-p<5e-8));)o=1/(o-p),i=s,s=a,l=u,u=c;if(c>t&&(u>t?(c=l,a=i):(c=u,a=s)),!n)return[0,r*a,c];var d=Math.floor(r*a/c);return[d,r*a-d*c,c]}function Ch(e,t,n){if(e>2958465||e<0)return null;var r=0|e,o=Math.floor(86400*(e-r)),i=0,s=[],a={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),t&&t.date1904&&(r+=1462),a.u>.9999&&(a.u=0,86400==++o&&(a.T=o=0,++r,++a.D)),60===r)s=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),r<60&&(i=(i+6)%7),n&&(i=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=o%60,o=Math.floor(o/60),a.M=o%60,o=Math.floor(o/60),a.H=o,a.q=i,a}var wh=new Date(1899,11,31,0,0,0),xh=wh.getTime(),Eh=new Date(1900,2,1,0,0,0);function Ph(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Eh&&(n+=864e5),(n-(xh+6e4*(e.getTimezoneOffset()-wh.getTimezoneOffset())))/864e5}function Sh(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Oh(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):function(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=Sh(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=Sh(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),Sh(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Wh(14,Ph(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Th(e,t,n,r){var o,i="",s=0,a=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,u=2;break;default:o=l%1e4,u=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,u=t.length;break;case 3:return mh[n.m-1][1];case 5:return mh[n.m-1][0];default:return mh[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,u=t.length;break;case 3:return fh[n.q][0];default:return fh[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(a=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(a*(n.S+n.u)))>=60*a&&(s=0),"s"===t?0===s?"0":""+s/a:(i=lh(s,2+r),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):lh(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:o=l,u=1}return u>0?lh(o,u):""}function _h(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var Vh=/%/g;function Rh(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Rh(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Ih=/# (\?+)( ?)\/( ?)(\d+)/,kh=/^#*0*\.([0#]+)/,Ah=/\).*[0#]/,Dh=/\(###\) ###\\?-####/;function Nh(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Mh(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Lh(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function jh(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Ah)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?jh("n",r,n):"("+jh("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return qh(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Vh,""),o=t.length-r.length;return qh(e,r,n*Math.pow(10,2*o))+bf("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return Rh(t,n);if(36===t.charCodeAt(0))return"$"+jh(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+dh(l,t.length);if(t.match(/^[#?]+$/))return"0"===(o=dh(n,0))&&(o=""),o.length>t.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(Ih))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),i=Math.floor(o/r),s=o-i*r,a=r;return n+(0===i?"":""+i)+" "+(0===s?bf(" ",e[1].length+1+e[4].length):uh(s,e[1].length)+e[2]+"/"+e[3]+lh(a,e[4].length))}(i,l,u);if(t.match(/^#+0+$/))return u+dh(l,t.length-t.indexOf("0"));if(i=t.match(kh))return o=Mh(n,i[1].length).replace(/^([^\.]+)$/,"$1."+Nh(i[1])).replace(/\.$/,"."+Nh(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+bf("0",Nh(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+Mh(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+_h(dh(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+jh(e,t,-n):_h(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,i[1].length)))+"."+lh(Lh(n,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return jh(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=ah(jh(e,t.replace(/[\\-]/g,""),n)),s=0,ah(ah(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(Dh))return"("+(o=jh(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=bh(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=qh("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=ch(a[2],s)).length<i[4].length&&(c=Nh(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=bh(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?uh(a[1],s)+i[2]+"/"+i[3]+ch(a[2],s):bf(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=dh(n,0),t.length<=o.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return Nh(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=Lh(n,i[1].length),n<0?"-"+jh(e,t,-n):_h(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?lh(0,3-e.length):"")+e}))+"."+lh(s,i[1].length);switch(t){case"###,##0.00":return jh(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=_h(dh(l,0));return"0"!==h?u+h:"";case"###,###.00":return jh(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return jh(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Fh(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Fh(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function Bh(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Ah)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Bh("n",r,n):"("+Bh("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return qh(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Vh,""),o=t.length-r.length;return qh(e,r,n*Math.pow(10,2*o))+bf("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return Fh(t,n);if(36===t.charCodeAt(0))return"$"+Bh(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+lh(l,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(Ih))return function(e,t,n){return n+(0===t?"":""+t)+bf(" ",e[1].length+2+e[4].length)}(i,l,u);if(t.match(/^#+0+$/))return u+lh(l,t.length-t.indexOf("0"));if(i=t.match(kh))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+Nh(i[1])).replace(/\.$/,"."+Nh(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+bf("0",Nh(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+_h(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Bh(e,t,-n):_h(""+n)+"."+bf("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Bh(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=ah(Bh(e,t.replace(/[\\-]/g,""),n)),s=0,ah(ah(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(Dh))return"("+(o=Bh(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=bh(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=qh("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=ch(a[2],s)).length<i[4].length&&(c=Nh(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=bh(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?uh(a[1],s)+i[2]+"/"+i[3]+ch(a[2],s):bf(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:Nh(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return Nh(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+Bh(e,t,-n):_h(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?lh(0,3-e.length):"")+e}))+"."+lh(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=_h(""+l);return"0"!==h?u+h:"";default:if(t.match(/\.[0#?]*$/))return Bh(e,t.slice(0,t.lastIndexOf(".")),n)+Nh(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function qh(e,t,n){return(0|n)===n?Bh(e,t,n):jh(e,t,n)}var Hh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function zh(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":hh(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(Hh))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var Qh=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Uh(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function Wh(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:gh)[e])&&(r=n.table&&n.table[yh[e]]||gh[yh[e]]),null==r&&(r=vh[e]||"General")}if(hh(r,0))return Oh(t,n);t instanceof Date&&(t=Ph(t,n.date1904));var o=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(Qh),a=n[1].match(Qh);return Uh(t,s)?[r,n[0]]:Uh(t,a)?[r,n[1]]:[r,n[null!=s&&null!=a?2:1]]}return[r,i]}(r,t);if(hh(o[1]))return Oh(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var o,i,s,a=[],l="",u=0,c="",p="t",d="H";u<e.length;)switch(c=e.charAt(u)){case"G":if(!hh(e,u))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(s);a[a.length]={t:"t",v:l},++u;break;case"\\":var h=e.charAt(++u),f="("===h||")"===h?h:"t";a[a.length]={t:f,v:h},++u;break;case"_":a[a.length]={t:"t",v:" "},u+=2;break;case"@":a[a.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==o&&null==(o=Ch(t,n,"2"===e.charAt(u+1))))return"";a[a.length]={t:"X",v:e.substr(u,2)},p=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=Ch(t,n)))return"";for(l=c;++u<e.length&&e.charAt(u).toLowerCase()===c;)l+=c;"m"===c&&"h"===p.toLowerCase()&&(c="M"),"h"===c&&(c=d),a[a.length]={t:c,v:l},p=c;break;case"A":case"a":case"上":var m={t:c,v:c};if(null==o&&(o=Ch(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=o&&(m.v=o.H>=12?"P":"A"),m.t="T",d="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"PM":"AM"),m.t="T",u+=5,d="h"):"上午/下午"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"下午":"上午"),m.t="T",u+=5,d="h"):(m.t="t",++u),null==o&&"T"===m.t)return"";a[a.length]=m,p=c;break;case"[":for(l=c;"]"!==e.charAt(u++)&&u<e.length;)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Hh)){if(null==o&&null==(o=Ch(t,n)))return"";a[a.length]={t:"Z",v:l.toLowerCase()},p=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",zh(e)||(a[a.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=c;++u<e.length&&"0"===(c=e.charAt(u));)l+=c;a[a.length]={t:"s",v:l};break}case"0":case"#":for(l=c;++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1;)l+=c;a[a.length]={t:"n",v:l};break;case"?":for(l=c;e.charAt(++u)===c;)l+=c;a[a.length]={t:c,v:l},p=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":a[a.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1;)l+=e.charAt(u);a[a.length]={t:"D",v:l};break;case" ":a[a.length]={t:c,v:c},++u;break;case"$":a[a.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++u}var g,y=0,v=0;for(u=a.length-1,p="t";u>=0;--u)switch(a[u].t){case"h":case"H":a[u].t=d,p="h",y<1&&(y=1);break;case"s":(g=a[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":p=a[u].t;break;case"m":"s"===p&&(a[u].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&a[u].v.match(/[Hh]/)&&(y=1),y<2&&a[u].v.match(/[Mm]/)&&(y=2),y<3&&a[u].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var b,C="";for(u=0;u<a.length;++u)switch(a[u].t){case"t":case"T":case" ":case"D":break;case"X":a[u].v="",a[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[u].v=Th(a[u].t.charCodeAt(0),a[u].v,o,v),a[u].t="t";break;case"n":case"?":for(b=u+1;null!=a[b]&&("?"===(c=a[b].t)||"D"===c||(" "===c||"t"===c)&&null!=a[b+1]&&("?"===a[b+1].t||"t"===a[b+1].t&&"/"===a[b+1].v)||"("===a[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===a[b].v||" "===a[b].v&&null!=a[b+1]&&"?"==a[b+1].t));)a[u].v+=a[b].v,a[b]={v:"",t:";"},++b;C+=a[u].v,u=b-1;break;case"G":a[u].t="t",a[u].v=Oh(t,n)}var w,x,E="";if(C.length>0){40==C.charCodeAt(0)?(w=t<0&&45===C.charCodeAt(0)?-t:t,x=qh("n",C,w)):(x=qh("n",C,w=t<0&&r>1?-t:t),w<0&&a[0]&&"t"==a[0].t&&(x=x.substr(1),a[0].v="-"+a[0].v)),b=x.length-1;var P=a.length;for(u=0;u<a.length;++u)if(null!=a[u]&&"t"!=a[u].t&&a[u].v.indexOf(".")>-1){P=u;break}var S=a.length;if(P===a.length&&-1===x.indexOf("E")){for(u=a.length-1;u>=0;--u)null!=a[u]&&-1!=="n?".indexOf(a[u].t)&&(b>=a[u].v.length-1?(b-=a[u].v.length,a[u].v=x.substr(b+1,a[u].v.length)):b<0?a[u].v="":(a[u].v=x.substr(0,b+1),b=-1),a[u].t="t",S=u);b>=0&&S<a.length&&(a[S].v=x.substr(0,b+1)+a[S].v)}else if(P!==a.length&&-1===x.indexOf("E")){for(b=x.indexOf(".")-1,u=P;u>=0;--u)if(null!=a[u]&&-1!=="n?".indexOf(a[u].t)){for(i=a[u].v.indexOf(".")>-1&&u===P?a[u].v.indexOf(".")-1:a[u].v.length-1,E=a[u].v.substr(i+1);i>=0;--i)b>=0&&("0"===a[u].v.charAt(i)||"#"===a[u].v.charAt(i))&&(E=x.charAt(b--)+E);a[u].v=E,a[u].t="t",S=u}for(b>=0&&S<a.length&&(a[S].v=x.substr(0,b+1)+a[S].v),b=x.indexOf(".")+1,u=P;u<a.length;++u)if(null!=a[u]&&(-1!=="n?(".indexOf(a[u].t)||u===P)){for(i=a[u].v.indexOf(".")>-1&&u===P?a[u].v.indexOf(".")+1:0,E=a[u].v.substr(0,i);i<a[u].v.length;++i)b<x.length&&(E+=x.charAt(b++));a[u].v=E,a[u].t="t",S=u}}}for(u=0;u<a.length;++u)null!=a[u]&&"n?".indexOf(a[u].t)>-1&&(w=r>1&&t<0&&u>0&&"-"===a[u-1].v?-t:t,a[u].v=qh(a[u].t,a[u].v,w),a[u].t="t");var O="";for(u=0;u!==a.length;++u)null!=a[u]&&(O+=a[u].v);return O}(o[1],t,n,o[0])}function $h(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=gh[n]){if(gh[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return gh[t]=e,t}function Gh(e){for(var t=0;392!=t;++t)void 0!==e[t]&&$h(e[t],t)}function Jh(){gh=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}()}var Yh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Kh=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)o[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?o.subarray(256*r,256*r+256):o.slice(256*r,256*r+256);return i}(t),r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=n[7],p=n[8],d=n[9],h=n[10],f=n[11],m=n[12],g=n[13],y=n[14];return e.table=t,e.bstr=function(e,n){for(var r=~n,o=0,i=e.length;o<i;)r=r>>>8^t[255&(r^e.charCodeAt(o++))];return~r},e.buf=function(e,n){for(var v=~n,b=e.length-15,C=0;C<b;)v=y[e[C++]^255&v]^g[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^f[e[C++]^v>>>24]^h[e[C++]]^d[e[C++]]^p[e[C++]]^c[e[C++]]^u[e[C++]]^l[e[C++]]^a[e[C++]]^s[e[C++]]^i[e[C++]]^o[e[C++]]^r[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,n){for(var r=~n,o=0,i=e.length,s=0,a=0;o<i;)(s=e.charCodeAt(o++))<128?r=r>>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&e.charCodeAt(o++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|a>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&a))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),Xh=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function i(e){Om(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),i=e.l+o,s={};21589===r&&(1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),o>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime))),e.l=i,t[r]=s}return t}function s(){return e||(e={})}function a(e,t){if(80==e[0]&&75==e[1])return ne(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=x(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(Kd&&Buffer.isBuffer(e)?e.toString("binary"):x(e)).split("\r\n"),o=0,i="";for(o=0;o<r.length;++o)if(i=r[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var a="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};d(l);var u,c=0;for(o=0;o<r.length;++o){var p=r[o];p!==a&&p!==a+"--"||(c++&&le(l,r.slice(u,o),n),u=o)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,i,s,a,h=512,f=[],m=e.slice(0,512);Om(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(v,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=g[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==g[1])return ne(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&Om(m=e.slice(0,h),28);var b=e.slice(0,h);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var C=m.read_shift(4,"i");if(3===n&&0!==C)throw new Error("# Directory Sectors: Expected 0 saw "+C);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),r=m.read_shift(4,"i"),a=m.read_shift(4,"i"),o=m.read_shift(4,"i");for(var w=-1,E=0;E<109&&!((w=m.read_shift(4,"i"))<0);++E)f[E]=w;var P=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],o=1;o<n;++o)r[o-1]=e.slice(o*t,(o+1)*t);return r[n-1]=e.slice(n*t),r}(e,h);u(a,o,P,h,f);var S=function(e,t,n,r){var o=e.length,i=[],s=[],a=[],l=[],u=r-1,c=0,p=0,d=0,h=0;for(c=0;c<o;++c)if(a=[],(d=c+t)>=o&&(d-=o),!s[d]){l=[];var f=[];for(p=d;p>=0;){f[p]=!0,s[p]=!0,a[a.length]=p,l.push(e[p]);var m=n[Math.floor(4*p/r)];if(r<4+(h=4*p&u))throw new Error("FAT boundary crossed: "+p+" 4 "+r);if(!e[m])break;if(f[p=vm(e[m],h)])break}i[d]={nodes:a,data:Gf([l])}}return i}(P,i,f,h);S[i].name="!Directory",r>0&&s!==y&&(S[s].name="!MiniFAT"),S[f[0]].name="!FAT",S.fat_addrs=f,S.ssz=h;var O=[],T=[],_=[];!function(e,t,n,r,o,i,s,a){for(var u,d=0,h=r.length?2:0,f=t[e].data,m=0,g=0;m<f.length;m+=128){var v=f.slice(m,m+128);Om(v,64),g=v.read_shift(2),u=Yf(v,0,g-h),r.push(u);var b={name:u,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.ct=p(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.mt=p(v,v.l-8)),b.start=v.read_shift(4,"i"),b.size=v.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=y,b.name=""),5===b.type?(d=b.start,o>0&&d!==y&&(t[d].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=c(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:d!==y&&b.start!==y&&t[d]&&(b.content=l(b,t[d].data,(t[a]||{}).data))),b.content&&Om(b.content,0),i[u]=b,s.push(b)}}(i,S,P,O,r,{},T,s),function(e,t,n){for(var r=0,o=0,i=0,s=0,a=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;a<c.length;++a)o=e[r=c[a]].L,i=e[r].R,s=e[r].C,u[r]===r&&(-1!==o&&u[o]!==o&&(u[r]=u[o]),-1!==i&&u[i]!==i&&(u[r]=u[i])),-1!==s&&(u[s]=r),-1!==o&&r!=u[r]&&(u[o]=u[r],c.lastIndexOf(o)<a&&c.push(o)),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<a&&c.push(i));for(r=1;r<l;++r)u[r]===r&&(-1!==i&&u[i]!==i?u[r]=u[i]:-1!==o&&u[o]!==o&&(u[r]=u[o]));for(r=1;r<l;++r)if(0!==e[r].type){if((a=r)!=u[a])do{a=u[a],t[r]=t[a]+"/"+t[r]}while(0!==a&&-1!==u[a]&&a!=u[a]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(T,_,O),O.shift();var V={FileIndex:T,FullPaths:_};return t&&t.raw&&(V.raw={header:b,sectors:P}),V}function l(e,t,n){for(var r=e.start,o=e.size,i=[],s=r;n&&o>0&&s>=0;)i.push(t.slice(s*g,s*g+g)),o-=g,s=vm(n,4*s);return 0===i.length?_m(0):oh(i).slice(0,e.size)}function u(e,t,n,r,o){var i=y;if(e===y){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],a=(r>>>2)-1;if(!s)return;for(var l=0;l<a&&(i=vm(s,4*l))!==y;++l)o.push(i);u(vm(s,r-4),t-1,n,r,o)}}function c(e,t,n,r,o){var i=[],s=[];o||(o=[]);var a=r-1,l=0,u=0;for(l=t;l>=0;){o[l]=!0,i[i.length]=l,s.push(e[l]);var c=n[Math.floor(4*l/r)];if(r<4+(u=4*l&a))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=vm(e[c],u)}return{nodes:i,data:Gf([s])}}function p(e,t){return new Date(1e3*(ym(e,t+4)/1e7*Math.pow(2,32)+ym(e,t)/1e7-11644473600))}function d(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!Xh.find(e,"/"+t)){var n=_m(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),h(e)}}(e)}function h(e,t){d(e);for(var o=!1,i=!1,s=e.FullPaths.length-1;s>=0;--s){var a=e.FileIndex[s];switch(a.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(a.R*a.L*a.C)&&(o=!0),a.R>-1&&a.L>-1&&a.R==a.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),u=0,c=Object.create?Object.create(null):{},p=[];for(s=0;s<e.FullPaths.length;++s)c[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&p.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<p.length;++s){var h=n(p[s][0]);(i=c[h])||(p.push([h,{name:r(h).replace("/",""),type:1,clsid:C,ct:l,mt:l,content:null}]),c[h]=!0)}for(p.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),o=0,i=0,s=Math.min(n.length,r.length);o<s;++o){if(i=n[o].length-r[o].length)return i;if(n[o]!=r[o])return n[o]<r[o]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<p.length;++s)e.FullPaths[s]=p[s][0],e.FileIndex[s]=p[s][1];for(s=0;s<p.length;++s){var f=e.FileIndex[s],m=e.FullPaths[s];if(f.name=r(m).replace("/",""),f.L=f.R=f.C=-(f.color=1),f.size=f.content?f.content.length:0,f.start=0,f.clsid=f.clsid||C,0===s)f.C=p.length>1?1:-1,f.size=0,f.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<p.length&&n(e.FullPaths[u])!=m;++u);for(f.C=u>=p.length?-1:u,u=s+1;u<p.length&&n(e.FullPaths[u])!=n(m);++u);f.R=u>=p.length?-1:u,f.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(f.R=s+1),f.type=2}}}function f(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],i=e.FullPaths[0],s=i,a=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(i.length),(a=e.FileIndex[l]).size&&a.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var u=a.content,c=Kd&&Buffer.isBuffer(u)?u.toString("binary"):x(u),p=0,d=Math.min(1024,c.length),h=0,f=0;f<=d;++f)(h=c.charCodeAt(f))>=32&&h<128&&++p;var m=p>=4*d/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),o.push("Content-Type: "+ie(a,s)),o.push(""),o.push(m?ae(c):se(c))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(h(e),"zip"===n.fileType)return function(e,t){var n,r=t||{},i=[],s=[],a=_m(1),l=r.compression?8:0,u=0,c=0,p=0,d=0,h=e.FullPaths[0],f=h,g=e.FileIndex[0],y=[],v=0;for(u=1;u<e.FullPaths.length;++u)if(f=e.FullPaths[u].slice(h.length),(g=e.FileIndex[u]).size&&g.content&&"Sh33tJ5"!=f){var b=p,C=_m(f.length);for(c=0;c<f.length;++c)C.write_shift(1,127&f.charCodeAt(c));C=C.slice(0,C.l),y[d]=Kh.buf(g.content,0);var w=g.content;8==l&&(n=w,w=m?m.deflateRawSync(n):$(n)),(a=_m(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),g.mt?o(a,g.mt):a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),p+=a.length,i.push(a),p+=C.length,i.push(C),p+=w.length,i.push(w),(a=_m(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,b),v+=a.l,s.push(a),v+=C.length,s.push(C),++d}return(a=_m(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,d),a.write_shift(2,d),a.write_shift(4,v),a.write_shift(4,p),a.write_shift(2,0),oh([oh(i),oh(s),a])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var o=e.FileIndex[r];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:n+=i+511>>9)}}for(var s=e.FullPaths.length+3>>2,a=t+127>>7,l=(t+7>>3)+n+s+a,u=l+127>>7,c=u<=109?0:Math.ceil((u-109)/127);l+u+c+127>>7>u;)c=++u<=109?0:Math.ceil((u-109)/127);var p=[1,c,u,a,s,n,t,0];return e.FileIndex[0].size=t<<6,p[7]=(e.FileIndex[0].start=p[0]+p[1]+p[2]+p[3]+p[4]+p[5])+(p[6]+7>>3),p}(e),i=_m(r[7]<<9),s=0,a=0;for(s=0;s<8;++s)i.write_shift(1,b[s]);for(s=0;s<8;++s)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),s=0;s<3;++s)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:y),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:y),i.write_shift(4,r[1]),s=0;s<109;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);if(r[1])for(a=0;a<r[1];++a){for(;s<236+127*a;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);i.write_shift(-4,a===r[1]-1?y:a+1)}var l=function(e){for(a+=e;s<a-1;++s)i.write_shift(-4,s+1);e&&(++s,i.write_shift(-4,y))};for(a=s=0,a+=r[1];s<a;++s)i.write_shift(-4,w.DIFSECT);for(a+=r[2];s<a;++s)i.write_shift(-4,w.FATSECT);l(r[3]),l(r[4]);for(var u=0,c=0,p=e.FileIndex[0];u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&((c=p.content.length)<4096||(p.start=a,l(c+511>>9)));for(l(r[6]+7>>3);511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(a=s=0,u=0;u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&(!(c=p.content.length)||c>=4096||(p.start=a,l(c+63>>6)));for(;511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(s=0;s<r[4]<<2;++s){var d=e.FullPaths[s];if(d&&0!==d.length){p=e.FileIndex[s],0===s&&(p.start=p.size?p.start-1:y);var f=0===s&&n.root||p.name;if(c=2*(f.length+1),i.write_shift(64,f,"utf16le"),i.write_shift(2,c),i.write_shift(1,p.type),i.write_shift(1,p.color),i.write_shift(-4,p.L),i.write_shift(-4,p.R),i.write_shift(-4,p.C),p.clsid)i.write_shift(16,p.clsid,"hex");else for(u=0;u<4;++u)i.write_shift(4,0);i.write_shift(4,p.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,p.start),i.write_shift(4,p.size),i.write_shift(4,0)}else{for(u=0;u<17;++u)i.write_shift(4,0);for(u=0;u<3;++u)i.write_shift(4,-1);for(u=0;u<12;++u)i.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>=4096)if(i.l=p.start+1<<9,Kd&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+511&-512;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;511&u;++u)i.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>0&&p.size<4096)if(Kd&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+63&-64;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;63&u;++u)i.write_shift(1,0)}if(Kd)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var m,g=64,y=-2,v="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],C="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:y,FREESECT:-1,HEADER_SIGNATURE:v,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:C,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function O(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var T="undefined"!=typeof Uint8Array,_=T?new Uint8Array(256):[],V=0;V<256;++V)_[V]=O(V);function R(e,t){var n=_[255&e];return t<=8?n>>>8-t:(n=n<<8|_[e>>8&255],t<=16?n>>>16-t:(n=n<<8|_[e>>16&255])>>>24-t)}function I(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function k(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function A(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function D(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function N(e,t,n){var r=7&t,o=t>>>3,i=(1<<n)-1,s=e[o]>>>r;return n<8-r?s&i:(s|=e[o+1]<<8-r,n<16-r?s&i:(s|=e[o+2]<<16-r,n<24-r?s&i:(s|=e[o+3]<<24-r)&i))}function M(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function L(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function j(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function F(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function B(e,t){var n=e.length,r=2*n>t?2*n:t+5,o=0;if(n>=t)return e;if(Kd){var i=eh(r);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(T){var s=new Uint8Array(r);if(s.set)s.set(e);else for(;o<n;++o)s[o]=e[o];return s}return e.length=r,e}function q(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function H(e,t,n){var r=1,o=0,i=0,s=0,a=0,l=e.length,u=T?new Uint16Array(32):q(32);for(i=0;i<32;++i)u[i]=0;for(i=l;i<n;++i)e[i]=0;l=e.length;var c=T?new Uint16Array(l):q(l);for(i=0;i<l;++i)u[o=e[i]]++,r<o&&(r=o),c[i]=0;for(u[0]=0,i=1;i<=r;++i)u[i+16]=a=a+u[i-1]<<1;for(i=0;i<l;++i)0!=(a=e[i])&&(c[i]=u[a+16]++);var p=0;for(i=0;i<l;++i)if(0!=(p=e[i]))for(a=R(c[i],r)>>r-p,s=(1<<r+4-p)-1;s>=0;--s)t[a|s<<p]=15&p|i<<4;return r}var z=T?new Uint16Array(512):q(512),Q=T?new Uint16Array(32):q(32);if(!T){for(var U=0;U<512;++U)z[U]=0;for(U=0;U<32;++U)Q[U]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);H(e,Q,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);H(n,z,288)}();var W=function(){for(var e=T?new Uint8Array(32768):[],t=0,n=0;t<S.length-1;++t)for(;n<S[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=T?new Uint8Array(259):[];for(t=0,n=0;t<P.length-1;++t)for(;n<P[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),o=n+r==e.length;for(t.write_shift(1,+o),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var o=0,i=0,s=T?new Uint16Array(32768):[];i<t.length;){var a=Math.min(65535,t.length-i);if(a<10){for(7&(o=M(n,o,+!(i+a!=t.length)))&&(o+=8-(7&o)),n.l=o/8|0,n.write_shift(2,a),n.write_shift(2,65535&~a);a-- >0;)n[n.l++]=t[i++];o=8*n.l}else{o=M(n,o,+!(i+a!=t.length)+2);for(var l=0;a-- >0;){var u=t[i],c=-1,p=0;if((c=s[l=32767&(l<<5^u)])&&((c|=-32768&i)>i&&(c-=32768),c<i))for(;t[c+p]==t[i+p]&&p<250;)++p;if(p>2){(u=r[p])<=22?o=j(n,o,_[u+1]>>1)-1:(j(n,o,3),j(n,o+=5,_[u-23]>>5),o+=3);var d=u<8?0:u-4>>2;d>0&&(F(n,o,p-P[u]),o+=d),u=e[i-c],o=j(n,o,_[u]>>3),o-=3;var h=u<4?0:u-2>>1;h>0&&(F(n,o,i-c-S[u]),o+=h);for(var f=0;f<p;++f)s[l]=32767&i,l=32767&(l<<5^t[i]),++i;a-=p-1}else u<=143?u+=48:o=L(n,o,1),o=j(n,o,_[u]),s[l]=32767&i,++i}o=j(n,o,0)-1}}return n.l=(o+7)/8|0,n.l}(t,n)}}();function $(e){var t=_m(50+Math.floor(1.1*e.length)),n=W(e,t);return t.slice(0,n)}var G=T?new Uint16Array(32768):q(32768),J=T?new Uint16Array(32768):q(32768),Y=T?new Uint16Array(128):q(128),K=1,X=1;function Z(e,t){var n=A(e,t)+257,r=A(e,t+=5)+1,o=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var i=0,s=T?new Uint8Array(19):q(19),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=T?new Uint8Array(8):q(8),c=T?new Uint8Array(8):q(8),p=s.length,d=0;d<o;++d)s[E[d]]=i=k(e,t),l<i&&(l=i),u[i]++,t+=3;var h=0;for(u[0]=0,d=1;d<=l;++d)c[d]=h=h+u[d-1]<<1;for(d=0;d<p;++d)0!=(h=s[d])&&(a[d]=c[h]++);var f=0;for(d=0;d<p;++d)if(0!=(f=s[d])){h=_[a[d]]>>8-f;for(var m=(1<<7-f)-1;m>=0;--m)Y[h|m<<f]=7&f|d<<3}var g=[];for(l=1;g.length<n+r;)switch(t+=7&(h=Y[D(e,t)]),h>>>=3){case 16:for(i=3+I(e,t),t+=2,h=g[g.length-1];i-- >0;)g.push(h);break;case 17:for(i=3+k(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+D(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(h),l<h&&(l=h)}var y=g.slice(0,n),v=g.slice(n);for(d=n;d<286;++d)y[d]=0;for(d=r;d<30;++d)v[d]=0;return K=H(y,G,286),X=H(v,J,30),t}function ee(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[Zd(t),2];for(var n=0,r=0,o=eh(t||1<<18),i=0,s=o.length>>>0,a=0,l=0;!(1&r);)if(r=k(e,n),n+=3,r>>>1!=0)for(r>>1==1?(a=9,l=5):(n=Z(e,n),a=K,l=X);;){!t&&s<i+32767&&(s=(o=B(o,i+32767)).length);var u=N(e,n,a),c=r>>>1==1?z[u]:G[u];if(n+=15&c,(c>>>=4)>>>8&255){if(256==c)break;var p=(c-=257)<8?0:c-4>>2;p>5&&(p=0);var d=i+P[c];p>0&&(d+=N(e,n,p),n+=p),u=N(e,n,l),n+=15&(c=r>>>1==1?Q[u]:J[u]);var h=(c>>>=4)<4?0:c-2>>1,f=S[c];for(h>0&&(f+=N(e,n,h),n+=h),!t&&s<d&&(s=(o=B(o,d+100)).length);i<d;)o[i]=o[i-f],++i}else o[i++]=c}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0)for(!t&&s<i+m&&(s=(o=B(o,i+m)).length);m-- >0;)o[i++]=e[n>>>3],n+=8}return t?[o,n+7>>>3]:[o.slice(0,i),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function te(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function ne(e,t){var n=e;Om(n,0);var r={FileIndex:[],FullPaths:[]};d(r,{root:t.root});for(var o=n.length-4;(80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0;)--o;n.l=o+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var a=n.read_shift(4);for(n.l=a,o=0;o<s;++o){n.l+=20;var l=n.read_shift(4),u=n.read_shift(4),c=n.read_shift(2),p=n.read_shift(2),h=n.read_shift(2);n.l+=8;var f=n.read_shift(4),m=i(n.slice(n.l+c,n.l+c+p));n.l+=c+p+h;var g=n.l;n.l=f+4,re(n,l,u,r,m),n.l=g}return r}function re(e,t,n,r,o){e.l+=2;var s=e.read_shift(2),a=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,i=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(i-1),r.setDate(o);var s=31&t,a=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(a),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var u=e.read_shift(4),c=e.read_shift(4),p=e.read_shift(2),d=e.read_shift(2),h="",f=0;f<p;++f)h+=String.fromCharCode(e[e.l++]);if(d){var g=i(e.slice(e.l,e.l+d));(g[21589]||{}).mt&&(l=g[21589].mt),((o||{})[21589]||{}).mt&&(l=o[21589].mt)}e.l+=d;var y=e.slice(e.l,e.l+u);switch(a){case 8:y=function(e,t){if(!m)return ee(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+a)}var v=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),v=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&te(v,"Bad compressed size: "+t+" != "+u),c!=n&&te(v,"Bad uncompressed size: "+n+" != "+c),ue(r,h,y,{unsafe:!0,mt:l})}var oe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ie(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&oe[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&oe[r[1]]?oe[r[1]]:"application/octet-stream"}function se(e){for(var t=Jd(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ae(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<r.length;++o){var i=r[o];if(0!=i.length)for(var s=0;s<i.length;){var a=76,l=i.slice(s,s+a);"="==l.charAt(a-1)?a--:"="==l.charAt(a-2)?a-=2:"="==l.charAt(a-3)&&(a-=3),l=i.slice(s,s+a),(s+=a)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function le(e,t,n){for(var r,o="",i="",s="",a=0;a<10;++a){var l=t[a];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":o=u[2].trim();break;case"content-type":s=u[2].trim();break;case"content-transfer-encoding":i=u[2].trim()}}switch(++a,i.toLowerCase()){case"base64":r=th(Yd(t.slice(a).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return th(t.join("\r\n"))}(t.slice(a));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var c=ue(e,o.slice(n.length),r,{unsafe:!0});s&&(c.ctype=s)}function ue(e,t,n,o){var i=o&&o.unsafe;i||d(e);var s=!i&&Xh.find(e,t);if(!s){var a=e.FullPaths[0];t.slice(0,a.length)==a?a=t:("/"!=a.slice(-1)&&(a+="/"),a=(a+t).replace("//","/")),s={name:r(t),type:2},e.FileIndex.push(s),e.FullPaths.push(a),i||Xh.utils.cfb_gc(e)}return s.content=n,s.size=n?n.length:0,o&&(o.CLSID&&(s.clsid=o.CLSID),o.mt&&(s.mt=o.mt),o.ct&&(s.ct=o.ct)),s}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),o=!1;47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),s=!0===o?n.indexOf(i):r.indexOf(i);if(-1!==s)return e.FileIndex[s];var a=!i.match(sh);for(i=i.replace(ih,""),a&&(i=i.replace(sh,"!")),s=0;s<n.length;++s){if((a?n[s].replace(sh,"!"):n[s]).replace(ih,"")==i)return e.FileIndex[s];if((a?r[s].replace(sh,"!"):r[s]).replace(ih,"")==i)return e.FileIndex[s]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||Kd&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return s(),a(e.readFileSync(t),n)}(t,n);case"base64":return a(th(Yd(t)),n);case"binary":return a(th(t),n)}return a(t,n)},t.parse=a,t.write=function(t,n){var r=f(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:x(r);case"base64":return Jd("string"==typeof r?r:x(r));case"buffer":if(Kd)return Buffer.isBuffer(r)?r:Xd(r);case"array":return"string"==typeof r?th(r):r}return r},t.writeFile=function(t,n,r){s();var o=f(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:ue,cfb_del:function(e,t){d(e);var n=Xh.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){d(e);var o=Xh.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=r(n),e.FullPaths[i]=n,!0;return!1},cfb_gc:function(e){h(e,!0)},ReadShift:Cm,CheckField:Sm,prep_blob:Om,bconcat:oh,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:$,_inflateRaw:ee,consts:w},t}();let Zh;function ef(e){return"string"==typeof e?nh(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function tf(e,t,n){if(void 0!==Zh&&Zh.writeFileSync)return n?Zh.writeFileSync(e,t,n):Zh.writeFileSync(e,t);if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=nh(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?Lf(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var o=new Blob([ef(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if("undefined"!=typeof saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var a=File(e);return a.open("w"),a.encoding="binary",Array.isArray(t)&&(t=rh(t)),a.write(t),a.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function nf(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function rf(e,t){for(var n=[],r=nf(e),o=0;o!==r.length;++o)null==n[e[r[o]][t]]&&(n[e[r[o]][t]]=r[o]);return n}function of(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function sf(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var af=new Date(1899,11,30,0,0,0);function lf(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(af.getTime()+6e4*(e.getTimezoneOffset()-af.getTimezoneOffset())))/864e5}var uf=new Date,cf=af.getTime()+6e4*(uf.getTimezoneOffset()-af.getTimezoneOffset()),pf=uf.getTimezoneOffset();function df(e){var t=new Date;return t.setTime(24*e*60*60*1e3+cf),t.getTimezoneOffset()!==pf&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-pf)),t}var hf=new Date("2017-02-19T19:06:09.000Z"),ff=isNaN(hf.getFullYear())?new Date("2/19/17"):hf,mf=2017==ff.getFullYear();function gf(e,t){var n=new Date(e);if(mf)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==ff.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function yf(e,t){if(Kd&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Lf(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Lf(function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Lf(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Lf(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"","‚":"",ƒ:"","„":"","…":" ","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],o=0;o!=e.length;++o)r.push(String.fromCharCode(e[o]));return r.join("")}function vf(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=vf(e[n]));return t}function bf(e,t){for(var n="";n.length<t;)n+=e;return n}function Cf(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var wf=["january","february","march","april","may","june","july","august","september","october","november","december"];function xf(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),o=t.getMonth(),i=t.getDate();if(isNaN(i))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==wf.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(o>0||i>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}function Ef(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=Kd?Xd(n):function(e){for(var t=[],n=0,r=e.length+250,o=Zd(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)o[n++]=s;else if(s<2048)o[n++]=192|s>>6&31,o[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&e.charCodeAt(++i);o[n++]=240|s>>8&7,o[n++]=128|s>>2&63,o[n++]=128|a>>6&15|(3&s)<<4,o[n++]=128|63&a}else o[n++]=224|s>>12&15,o[n++]=128|s>>6&63,o[n++]=128|63&s;n>r&&(t.push(o.slice(0,n)),n=0,o=Zd(65535),r=65530)}return t.push(o.slice(0,n)),oh(t)}(n),Xh.utils.cfb_add(e,t,r);Xh.utils.cfb_add(e,t,n)}else e.file(t,n)}function Pf(){return Xh.utils.cfb_new()}var Sf='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Of=of({""":'"',"'":"'",">":">","<":"<","&":"&"}),Tf=/[&<>'"]/g,_f=/[\u0000-\u0008\u000b-\u001f]/g;function Vf(e){return(e+"").replace(Tf,(function(e){return Of[e]})).replace(_f,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Rf(e){return Vf(e).replace(/ /g,"_x0020_")}var If=/[\u0000-\u001f]/g;function kf(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(o=e.charCodeAt(n++),r>191&&r<224?(s=(31&r)<<6,s|=63&o,t+=String.fromCharCode(s)):(i=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i):(a=((7&r)<<18|(63&o)<<12|(63&i)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(a>>>10&1023)),t+=String.fromCharCode(56320+(1023&a)))));return t}function Af(e){var t,n,r,o=Zd(2*e.length),i=1,s=0,a=0;for(n=0;n<e.length;n+=i)i=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),i=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),i=3):(i=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),a=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==a&&(o[s++]=255&a,o[s++]=a>>>8,a=0),o[s++]=t%256,o[s++]=t>>>8;return o.slice(0,s).toString("ucs2")}function Df(e){return Xd(e,"binary").toString("utf8")}var Nf="foo bar bazâð£",Mf=Kd&&(Df(Nf)==kf(Nf)&&Df||Af(Nf)==kf(Nf)&&Af)||kf,Lf=Kd?function(e){return Xd(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},jf=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),Ff=/(^\s|\s$|\n)/;function Bf(e,t){return"<"+e+(t.match(Ff)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function qf(e){return nf(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Hf(e,t,n){return"<"+e+(null!=n?qf(n):"")+(null!=t?(t.match(Ff)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function zf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}var Qf={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Uf=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Wf={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},$f=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,o=e[0][n].length;r<o;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},Gf=Kd?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:Xd(e)}))):$f(e)}:$f,Jf=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(mm(e,o)));return r.join("").replace(ih,"")},Yf=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(ih,""):Jf(e,t,n)}:Jf,Kf=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},Xf=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):Kf(e,t,n)}:Kf,Zf=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(fm(e,o)));return r.join("")},em=Kd?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):Zf(e,t,n)}:Zf,tm=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},nm=tm,rm=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},om=rm,im=function(e,t){var n=2*ym(e,t);return n>0?em(e,t+4,t+4+n-1):""},sm=im,am=function(e,t){var n=ym(e,t);return n>0?Yf(e,t+4,t+4+n):""},lm=am,um=function(e,t){var n=ym(e,t);return n>0?em(e,t+4,t+4+n):""},cm=um,pm=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==r?0==o?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}(e,t)},dm=pm,hm=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};Kd&&(nm=function(e,t){if(!Buffer.isBuffer(e))return tm(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},om=function(e,t){if(!Buffer.isBuffer(e))return rm(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},sm=function(e,t){if(!Buffer.isBuffer(e))return im(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},lm=function(e,t){if(!Buffer.isBuffer(e))return am(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},cm=function(e,t){if(!Buffer.isBuffer(e))return um(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},dm=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):pm(e,t)},hm=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==Qd&&(Yf=function(e,t,n){return Qd.utils.decode(1200,e.slice(t,n)).replace(ih,"")},em=function(e,t,n){return Qd.utils.decode(65001,e.slice(t,n))},nm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(Fd,e.slice(t+4,t+4+n-1)):""},om=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(jd,e.slice(t+4,t+4+n-1)):""},sm=function(e,t){var n=2*ym(e,t);return n>0?Qd.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},lm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(1200,e.slice(t+4,t+4+n)):""},cm=function(e,t){var n=ym(e,t);return n>0?Qd.utils.decode(65001,e.slice(t+4,t+4+n)):""});var fm=function(e,t){return e[t]},mm=function(e,t){return 256*e[t+1]+e[t]},gm=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},ym=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},vm=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},bm=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Cm(e,t){var n,r,o,i,s,a,l="",u=[];switch(t){case"dbcs":if(a=this.l,Kd&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(mm(this,a)),a+=2;e*=2;break;case"utf8":l=em(this,this.l,this.l+e);break;case"utf16le":e*=2,l=Yf(this,this.l,this.l+e);break;case"wstr":if(void 0===Qd)return Cm.call(this,e,"dbcs");l=Qd.utils.decode(jd,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":l=nm(this,this.l),e=4+ym(this,this.l);break;case"lpstr-cp":l=om(this,this.l),e=4+ym(this,this.l);break;case"lpwstr":l=sm(this,this.l),e=4+2*ym(this,this.l);break;case"lpp4":e=4+ym(this,this.l),l=lm(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+ym(this,this.l),l=cm(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=fm(this,this.l+e++));)u.push(Ud(o));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(o=mm(this,this.l+e));)u.push(Ud(o)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",a=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=fm(this,a),this.l=a+1,i=Cm.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Ud(mm(this,a))),a+=2}l=u.join(""),e*=2;break;case"cpstr":if(void 0!==Qd){l=Qd.utils.decode(jd,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(l="",a=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=fm(this,a),this.l=a+1,i=Cm.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Ud(fm(this,a))),a+=1}l=u.join("");break;default:switch(e){case 1:return n=fm(this,this.l),this.l++,n;case 2:return n=("i"===t?gm:mm)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(r=ym(this,this.l),this.l+=4,r):(n=(e>0?vm:bm)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return r=8==e?dm(this,this.l):dm([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=Xf(this,this.l,e)}}return this.l+=e,l}var wm=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},xm=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Em=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Pm(e,t,n){var r=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)Em(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if("sbcs"===n){if(void 0!==Qd&&874==Fd)for(o=0;o!=t.length;++o){var i=Qd.utils.encode(Fd,t.charAt(o));this[this.l+o]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);r=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var s=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var a=t.charCodeAt(o);this[this.l++]=255&a,this[this.l++]=a>>8}for(;this.l<s;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,wm(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,s=r?-t:t;isFinite(s)?0==s?o=i=0:(o=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var a=0;a<=5;++a,i/=256)e[n+a]=255&i;e[n+6]=(15&o)<<4|15&i,e[n+7]=o>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,xm(this,t,this.l)}}return this.l+=r,this}function Sm(e,t){var n=Xf(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Om(e,t){e.l=t,e.read_shift=Cm,e.chk=Sm,e.write_shift=Pm}function Tm(e,t){e.l+=t}function _m(e){var t=Zd(e);return Om(t,0),t}function Vm(){var e=[],t=Kd?256:2048,n=function(e){var t=_m(e);return Om(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},i=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:i,push:function(e){o(),null==(r=e).l&&(r.l=r.length),i(t)},end:function(){return o(),oh(e)},_bufs:e}}function Rm(e,t,n,r){var o,i=+t;if(!isNaN(i)){r||(r=mb[i].p||(n||[]).length||0),o=1+(i>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var s=e.next(o);i<=127?s.write_shift(1,i):(s.write_shift(1,128+(127&i)),s.write_shift(1,i>>7));for(var a=0;4!=a;++a){if(!(r>=128)){s.write_shift(1,r);break}s.write_shift(1,128+(127&r)),r>>=7}r>0&&hm(n)&&e.push(n)}}function Im(e,t,n){var r=vf(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function km(e,t,n){var r=vf(e);return r.s=Im(r.s,t.s,n),r.e=Im(r.e,t.s,n),r}function Am(e,t){if(e.cRel&&e.c<0)for(e=vf(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=vf(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=Bm(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),n}function Dm(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Am(e.s,t.biff)+":"+Am(e.e,t.biff):(e.s.rRel?"":"$")+Mm(e.s.r)+":"+(e.e.rRel?"":"$")+Mm(e.e.r):(e.s.cRel?"":"$")+jm(e.s.c)+":"+(e.e.cRel?"":"$")+jm(e.e.c)}function Nm(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Mm(e){return""+(e+1)}function Lm(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function jm(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Fm(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function Bm(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function qm(e){var t=e.indexOf(":");return-1==t?{s:Fm(e),e:Fm(e)}:{s:Fm(e.slice(0,t)),e:Fm(e.slice(t+1))}}function Hm(e,t){return void 0===t||"number"==typeof t?Hm(e.s,e.e):("string"!=typeof e&&(e=Bm(e)),"string"!=typeof t&&(t=Bm(t)),e==t?e:e+":"+t)}function zm(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,i=e.length;for(n=0;r<i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function Qm(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Pg[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Wh(e.z,n?lf(t):t)}catch(e){}try{return e.w=Wh((e.XF||{}).numFmtId||(n?14:0),n?lf(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function Um(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function Wm(e,t,n){var r=n||{},o=e?Array.isArray(e):r.dense;null!=$d&&null==o&&(o=$d);var i=e||(o?[]:{}),s=0,a=0;if(i&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?Fm(r.origin):r.origin;s=l.r,a=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=zm(i["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==s&&(u.e.r=s=c.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[p].length;++d)if(void 0!==t[p][d]){var h={v:t[p][d]},f=s+p,m=a+d;if(u.s.r>f&&(u.s.r=f),u.s.c>m&&(u.s.c=m),u.e.r<f&&(u.e.r=f),u.e.c<m&&(u.e.c=m),!t[p][d]||"object"!=typeof t[p][d]||Array.isArray(t[p][d])||t[p][d]instanceof Date)if(Array.isArray(h.v)&&(h.f=t[p][d][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(r.nullError)h.t="e",h.v=0;else{if(!r.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=r.dateNF||gh[14],r.cellDates?(h.t="d",h.w=Wh(h.z,lf(h.v))):(h.t="n",h.v=lf(h.v),h.w=Wh(h.z,h.v))):h.t="s";else h=t[p][d];if(o)i[f]||(i[f]=[]),i[f][m]&&i[f][m].z&&(h.z=i[f][m].z),i[f][m]=h;else{var g=Bm({c:m,r:f});i[g]&&i[g].z&&(h.z=i[g].z),i[g]=h}}}return u.s.c<1e7&&(i["!ref"]=Hm(u)),i}function $m(e,t){return Wm(null,e,t)}function Gm(e,t){return t||(t=_m(4)),t.write_shift(4,e),t}function Jm(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Ym(e,t){var n=!1;return null==t&&(n=!0,t=_m(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function Km(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Xm(e,t){var n=e.l,r=e.read_shift(1),o=Jm(e),i=[],s={t:o,h:o};if(1&r){for(var a=e.read_shift(4),l=0;l!=a;++l)i.push(Km(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var Zm=Xm;function eg(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function tg(e,t){return null==t&&(t=_m(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function ng(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rg(e,t){return null==t&&(t=_m(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var og=Jm,ig=Ym;function sg(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function ag(e,t){var n=!1;return null==t&&(n=!0,t=_m(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var lg=Jm,ug=sg,cg=ag;function pg(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var o=0===r?dm([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):vm(t,0)>>2;return n?o/100:o}function dg(e,t){null==t&&(t=_m(4));var n=0,r=0,o=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?o:e)<<2)+(n+2))}function hg(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var fg=hg,mg=function(e,t){return t||(t=_m(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function gg(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function yg(e,t){return(t||_m(8)).write_shift(8,e,"f")}function vg(e,t){if(t||(t=_m(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var bg=80,Cg={1:{n:"CodePage",t:2},2:{n:"Category",t:bg},3:{n:"PresentationFormat",t:bg},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:bg},15:{n:"Company",t:bg},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:bg},27:{n:"ContentStatus",t:bg},28:{n:"Language",t:bg},29:{n:"Version",t:bg},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},wg={1:{n:"CodePage",t:2},2:{n:"Title",t:bg},3:{n:"Subject",t:bg},4:{n:"Author",t:bg},5:{n:"Keywords",t:bg},6:{n:"Comments",t:bg},7:{n:"Template",t:bg},8:{n:"LastAuthor",t:bg},9:{n:"RevNumber",t:bg},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:bg},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function xg(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Eg=vf(xg([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Pg={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Sg={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Og={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Tg(e,t){var n,r=function(e){for(var t=[],n=nf(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(Sg),o=[];o[o.length]=Sf,o[o.length]=Hf("Types",null,{xmlns:Qf.CT,"xmlns:xsd":Qf.xsd,"xmlns:xsi":Qf.xsi}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Hf("Default",null,{Extension:e[0],ContentType:e[1]})})));var i=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=Hf("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Og[r][t.bookType]||Og[r].xlsx}))},s=function(n){(e[n]||[]).forEach((function(e){o[o.length]=Hf("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Og[n][t.bookType]||Og[n].xlsx})}))},a=function(t){(e[t]||[]).forEach((function(e){o[o.length]=Hf("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return i("workbooks"),s("sheets"),s("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),s("metadata"),a("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var _g={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Vg(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Rg(e){var t=[Sf,Hf("Relationships",null,{xmlns:Qf.RELS})];return nf(e["!id"]).forEach((function(n){t[t.length]=Hf("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Ig(e,t,n,r,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,i?o.TargetMode=i:[_g.HLINK,_g.XPATH,_g.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function kg(e,t,n){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function Ag(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ld.version+"</meta:generator></office:meta></office:document-meta>"}var Dg=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ng(e,t,n,r,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=Vf(t),r[r.length]=n?Hf(e,t,n):Bf(e,t))}function Mg(e,t){var n=t||{},r=[Sf,Hf("cp:coreProperties",null,{"xmlns:cp":Qf.CORE_PROPS,"xmlns:dc":Qf.dc,"xmlns:dcterms":Qf.dcterms,"xmlns:dcmitype":Qf.dcmitype,"xmlns:xsi":Qf.xsi})],o={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&Ng("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:zf(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),null!=e.ModifiedDate&&Ng("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:zf(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var i=0;i!=Dg.length;++i){var s=Dg[i],a=n.Props&&null!=n.Props[s[1]]?n.Props[s[1]]:e?e[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&Ng(s[0],a,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Lg=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],jg=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Fg(e){var t=[],n=Hf;return e||(e={}),e.Application="SheetJS",t[t.length]=Sf,t[t.length]=Hf("Properties",null,{xmlns:Qf.EXT_PROPS,"xmlns:vt":Qf.vt}),Lg.forEach((function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=Vf(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+Vf(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Bg(e){var t=[Sf,Hf("Properties",null,{xmlns:Qf.CUST_PROPS,"xmlns:vt":Qf.vt})];if(!e)return t.join("");var n=1;return nf(e).forEach((function(r){++n,t[t.length]=Hf("property",function(e,t){switch(typeof e){case"string":var n=Hf("vt:lpwstr",Vf(e));return n=n.replace(/"/g,"_x0022_");case"number":return Hf((0|e)==e?"vt:i4":"vt:r8",Vf(String(e)));case"boolean":return Hf("vt:bool",e?"true":"false")}if(e instanceof Date)return Hf("vt:filetime",zf(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Vf(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var qg={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Hg(e,t){var n=_m(4),r=_m(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=_m(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var i=_m(8);return i.write_shift(4,n),i.write_shift(4,r),i}(t);break;case 31:case 80:for((r=_m(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return oh([n,r])}var zg=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Qg(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Ug(e,t,n){var r=_m(8),o=[],i=[],s=8,a=0,l=_m(8),u=_m(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),o.push(u),s+=8+l.length,!t){(u=_m(8)).write_shift(4,0),o.unshift(u);var c=[_m(4)];for(c[0].write_shift(4,e.length),a=0;a<e.length;++a){var p=e[a][0];for((l=_m(8+2*(p.length+1)+(p.length%2?0:2))).write_shift(4,a+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=oh(c),i.unshift(l),s+=8+l.length}for(a=0;a<e.length;++a)if((!t||t[e[a][0]])&&!(zg.indexOf(e[a][0])>-1||jg.indexOf(e[a][0])>-1)&&null!=e[a][1]){var d=e[a][1],h=0;if(t){var f=n[h=+t[e[a][0]]];if("version"==f.p&&"string"==typeof d){var m=d.split(".");d=(+m[0]<<16)+(+m[1]||0)}l=Hg(f.t,d)}else{var g=Qg(d);-1==g&&(g=31,d=String(d)),l=Hg(g,d)}i.push(l),(u=_m(8)).write_shift(4,t?h:2+a),o.push(u),s+=8+l.length}var y=8*(i.length+1);for(a=0;a<i.length;++a)o[a].write_shift(4,y),y+=i[a].length;return r.write_shift(4,s),r.write_shift(4,i.length),oh([r].concat(o).concat(i))}function Wg(e,t,n,r,o,i){var s=_m(o?68:48),a=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Xh.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,o?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,o?68:48);var l=Ug(e,n,r);if(a.push(l),o){var u=Ug(o,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+l.length),a.push(u)}return oh(a)}function $g(e,t){return t||(t=_m(2)),t.write_shift(2,+!!e),t}function Gg(e){return e.read_shift(2,"u")}function Jg(e,t){return t||(t=_m(2)),t.write_shift(2,e),t}function Yg(e,t,n){return n||(n=_m(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Kg(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont",i=jd;n&&n.biff>=8&&(jd=1200),n&&8!=n.biff?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont"),n.biff>=2&&n.biff<=5&&(o="cpstr");var s=r?e.read_shift(r,o):"";return jd=i,s}function Xg(e){var t=e.t||"",n=_m(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=_m(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),oh([n,r])}function Zg(e,t,n){return n||(n=_m(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function ey(e,t){t||(t=_m(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function ty(e){var t=_m(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var o=r.indexOf("#"),i=o>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(n=0;n<s.length;++n)t.write_shift(4,s[n]);if(28==i)ey(r=r.slice(1),t);else if(2&i){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));var a=o>-1?r.slice(0,o):r;for(t.write_shift(4,2*(a.length+1)),n=0;n<a.length;++n)t.write_shift(2,a.charCodeAt(n));t.write_shift(2,0),8&i&&ey(o>-1?r.slice(o+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));for(var l=0;"../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function ny(e,t,n,r){return r||(r=_m(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function ry(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function oy(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function iy(e,t){return t||(t=_m(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function sy(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;default:throw new Error("unsupported BIFF version")}var i=_m(o);return i.write_shift(2,r),i.write_shift(2,t),o>4&&i.write_shift(2,29282),o>6&&i.write_shift(2,1997),o>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function ay(e,t){var n=!t||t.biff>=8?2:1,r=_m(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=r.slice(0,r.l);return o.l=r.l,o}function ly(e,t,n,r){var o=n&&5==n.biff;r||(r=_m(o?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(o?1:2,t.length),o||r.write_shift(1,1),r.write_shift((o?1:2)*t.length,t,o?"sbcs":"utf16le");var i=r.length>r.l?r.slice(0,r.l):r;return null==i.l&&(i.l=i.length),i}function uy(e,t,n,r){var o=n&&5==n.biff;r||(r=_m(o?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&o&&(i|=1024),r.write_shift(4,i),r.write_shift(4,0),o||r.write_shift(4,0),r.write_shift(2,0),r}function cy(e){var t=_m(24),n=Fm(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t.write_shift(1,parseInt(r[o],16));return oh([t,ty(e[1])])}function py(e){var t=e[1].Tooltip,n=_m(10+2*(t.length+1));n.write_shift(2,2048);var r=Fm(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var o=0;o<t.length;++o)n.write_shift(2,t.charCodeAt(o));return n.write_shift(2,0),n}var dy=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=of({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=$m(function(t,n){var r=[],o=Zd(1);switch(n.type){case"base64":o=th(Yd(t));break;case"binary":o=th(t);break;case"buffer":case"array":o=t}Om(o,0);var i=o.read_shift(1),s=!!(136&i),a=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:a=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var u=0,c=521;2==i&&(u=o.read_shift(2)),o.l+=3,2!=i&&(u=o.read_shift(4)),u>1048576&&(u=1e6),2!=i&&(c=o.read_shift(2));var p=o.read_shift(2),d=n.codepage||1252;2!=i&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(d=e[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36);for(var h=[],f={},m=Math.min(o.length,2==i?521:c-10-(a?264:0)),g=l?32:11;o.l<m&&13!=o[o.l];)switch((f={}).name=Qd.utils.decode(d,o.slice(o.l,o.l+g)).replace(/[\u0000\r\n].*$/g,""),o.l+=g,f.type=String.fromCharCode(o.read_shift(1)),2==i||l||(f.offset=o.read_shift(4)),f.len=o.read_shift(1),2==i&&(f.offset=o.read_shift(2)),f.dec=o.read_shift(1),f.name.length&&h.push(f),2!=i&&(o.l+=l?13:14),f.type){case"B":a&&8==f.len||!n.WTF||console.log("Skipping "+f.name+":"+f.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+f.name+":"+f.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+f.type)}if(13!==o[o.l]&&(o.l=c-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=c;var y=0,v=0;for(r[0]=[],v=0;v!=h.length;++v)r[0][v]=h[v].name;for(;u-- >0;)if(42!==o[o.l])for(++o.l,r[++y]=[],v=0,v=0;v!=h.length;++v){var b=o.slice(o.l,o.l+h[v].len);o.l+=h[v].len,Om(b,0);var C=Qd.utils.decode(d,b);switch(h[v].type){case"C":C.trim().length&&(r[y][v]=C.replace(/\s+$/,""));break;case"D":8===C.length?r[y][v]=new Date(+C.slice(0,4),+C.slice(4,6)-1,+C.slice(6,8)):r[y][v]=C;break;case"F":r[y][v]=parseFloat(C.trim());break;case"+":case"I":r[y][v]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(C.trim().toUpperCase()){case"Y":case"T":r[y][v]=!0;break;case"N":case"F":r[y][v]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+C+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));r[y][v]="##MEMO##"+(l?parseInt(C.trim(),10):b.read_shift(4));break;case"N":(C=C.replace(/\u0000/g,"").trim())&&"."!=C&&(r[y][v]=+C||0);break;case"@":r[y][v]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":r[y][v]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":r[y][v]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[y][v]=-b.read_shift(-8,"f");break;case"B":if(a&&8==h[v].len){r[y][v]=b.read_shift(8,"f");break}case"G":case"P":b.l+=h[v].len;break;case"0":if("_NullFlags"===h[v].name)break;default:throw new Error("DBF Unsupported data type "+h[v].type)}}else o.l+=p;if(2!=i&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=h,r}(t,r),r);return o["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Um(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&zd(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var i=Vm(),s=rC(e,{header:1,raw:!0,cellDates:!0}),a=s[0],l=s.slice(1),u=e["!cols"]||[],c=0,p=0,d=0,h=1;for(c=0;c<a.length;++c)if(((u[c]||{}).DBF||{}).name)a[c]=u[c].DBF.name,++d;else if(null!=a[c]){if(++d,"number"==typeof a[c]&&(a[c]=a[c].toString(10)),"string"!=typeof a[c])throw new Error("DBF Invalid column name "+a[c]+" |"+typeof a[c]+"|");if(a.indexOf(a[c])!==c)for(p=0;p<1024;++p)if(-1==a.indexOf(a[c]+"_"+p)){a[c]+="_"+p;break}}var f=zm(e["!ref"]),m=[],g=[],y=[];for(c=0;c<=f.e.c-f.s.c;++c){var v="",b="",C=0,w=[];for(p=0;p<l.length;++p)null!=l[p][c]&&w.push(l[p][c]);if(0!=w.length&&null!=a[c]){for(p=0;p<w.length;++p){switch(typeof w[p]){case"number":b="B";break;case"string":default:b="C";break;case"boolean":b="L";break;case"object":b=w[p]instanceof Date?"D":"C"}C=Math.max(C,String(w[p]).length),v=v&&v!=b?"C":b}C>250&&(C=250),"C"==(b=((u[c]||{}).DBF||{}).type)&&u[c].DBF.len>C&&(C=u[c].DBF.len),"B"==v&&"N"==b&&(v="N",y[c]=u[c].DBF.dec,C=u[c].DBF.len),g[c]="C"==v||"N"==b?C:r[v]||0,h+=g[c],m[c]=v}else m[c]="?"}var x=i.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*d),x.write_shift(2,h),c=0;c<4;++c)x.write_shift(4,0);for(x.write_shift(4,(+t[Fd]||3)<<8),c=0,p=0;c<a.length;++c)if(null!=a[c]){var E=i.next(32),P=(a[c].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,P,"sbcs"),E.write_shift(1,"?"==m[c]?"C":m[c],"sbcs"),E.write_shift(4,p),E.write_shift(1,g[c]||r[m[c]]||0),E.write_shift(1,y[c]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),p+=g[c]||r[m[c]]||0}var S=i.next(264);for(S.write_shift(4,13),c=0;c<65;++c)S.write_shift(4,0);for(c=0;c<l.length;++c){var O=i.next(h);for(O.write_shift(1,0),p=0;p<a.length;++p)if(null!=a[p])switch(m[p]){case"L":O.write_shift(1,null==l[c][p]?63:l[c][p]?84:70);break;case"B":O.write_shift(8,l[c][p]||0,"f");break;case"N":var T="0";for("number"==typeof l[c][p]&&(T=l[c][p].toFixed(y[p]||0)),d=0;d<g[p]-T.length;++d)O.write_shift(1,32);O.write_shift(1,T,"sbcs");break;case"D":l[c][p]?(O.write_shift(4,("0000"+l[c][p].getFullYear()).slice(-4),"sbcs"),O.write_shift(2,("00"+(l[c][p].getMonth()+1)).slice(-2),"sbcs"),O.write_shift(2,("00"+l[c][p].getDate()).slice(-2),"sbcs")):O.write_shift(8,"00000000","sbcs");break;case"C":var _=String(null!=l[c][p]?l[c][p]:"").slice(0,g[p]);for(O.write_shift(1,_,"sbcs"),d=0;d<g[p]-_.length;++d)O.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),hy=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+nf(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?Wd(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:Wd(r)};function o(e,o){var i,s=e.split(/[\n\r]+/),a=-1,l=-1,u=0,c=0,p=[],d=[],h=null,f={},m=[],g=[],y=[],v=0;for(+o.codepage>=0&&zd(+o.codepage);u!==s.length;++u){v=0;var b,C=s[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),w=C.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=w[0];if(C.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&d.push(C.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,P=!1,S=!1,O=!1,T=-1,_=-1;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"A":case"G":break;case"X":l=parseInt(w[c].slice(1))-1,P=!0;break;case"Y":for(a=parseInt(w[c].slice(1))-1,P||(l=0),i=p.length;i<=a;++i)p[i]=[];break;case"K":'"'===(b=w[c].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(Cf(b))?isNaN(xf(b).getDate())||(b=gf(b)):(b=Cf(b),null!==h&&zh(h)&&(b=df(b))),void 0!==Qd&&"string"==typeof b&&"string"!=(o||{}).type&&(o||{}).codepage&&(b=Qd.utils.decode(o.codepage,b)),E=!0;break;case"E":O=!0;var V=Zy(w[c].slice(1),{r:a,c:l});p[a][l]=[p[a][l],V];break;case"S":S=!0,p[a][l]=[p[a][l],"S5S"];break;case"R":T=parseInt(w[c].slice(1))-1;break;case"C":_=parseInt(w[c].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}if(E&&(p[a][l]&&2==p[a][l].length?p[a][l][0]=b:p[a][l]=b,h=null),S){if(O)throw new Error("SYLK shared formula cannot have own formula");var R=T>-1&&p[T][_];if(!R||!R[1])throw new Error("SYLK shared formula cannot find base");p[a][l][1]=nv(R[1],{r:a-T,c:l-_})}break;case"F":var I=0;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"X":l=parseInt(w[c].slice(1))-1,++I;break;case"Y":for(a=parseInt(w[c].slice(1))-1,i=p.length;i<=a;++i)p[i]=[];break;case"M":v=parseInt(w[c].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=d[parseInt(w[c].slice(1))];break;case"W":for(y=w[c].slice(1).split(" "),i=parseInt(y[0],10);i<=parseInt(y[1],10);++i)v=parseInt(y[2],10),g[i-1]=0===v?{hidden:!0}:{wch:v},Vy(g[i-1]);break;case"C":g[l=parseInt(w[c].slice(1))-1]||(g[l]={});break;case"R":m[a=parseInt(w[c].slice(1))-1]||(m[a]={}),v>0?(m[a].hpt=v,m[a].hpx=ky(v)):0===v&&(m[a].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}I<1&&(h=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}}return m.length>0&&(f["!rows"]=m),g.length>0&&(f["!cols"]=g),o&&o.sheetRows&&(p=p.slice(0,o.sheetRows)),[p,f]}function i(e,t){var n=function(e,t){switch(t.type){case"base64":return o(Yd(e),t);case"binary":return o(e,t);case"buffer":return o(Kd&&Buffer.isBuffer(e)?e.toString("binary"):rh(e),t);case"array":return o(yf(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],i=n[1],s=$m(r,t);return nf(i).forEach((function(e){s[e]=i[e]})),s}function s(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+tv(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return Um(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],i=[],a=zm(e["!ref"]),l=Array.isArray(e),u="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=Oy(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Ty(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Iy(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(o,e["!rows"]),o.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" "));for(var c=a.s.r;c<=a.e.r;++c)for(var p=a.s.c;p<=a.e.c;++p){var d=Bm({r:c,c:p});(n=l?(e[c]||[])[p]:e[d])&&(null!=n.v||n.f&&!n.F)&&i.push(s(n,0,c,p))}return o.join(u)+u+i.join(u)+u+"E"+u}}}(),fy=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,i=0,s=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(r<0)){for(var a=n[i].trim().split(","),l=a[0],u=a[1],c=n[++i]||"";1&(c.match(/["]/g)||[]).length&&i<n.length-1;)c+="\n"+n[++i];switch(c=c.trim(),+l){case-1:if("BOT"===c){s[++r]=[],o=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?s[r][o]=!0:"FALSE"===c?s[r][o]=!1:isNaN(Cf(u))?isNaN(xf(u).getDate())?s[r][o]=u:s[r][o]=gf(u):s[r][o]=Cf(u),++o;break;case 1:(c=(c=c.slice(1,c.length-1)).replace(/""/g,'"'))&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),s[r][o++]=""!==c?c:null}if("EOD"===c)break}}else s[++r]=[],o=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,n){return $m(function(t,n){switch(n.type){case"base64":return e(Yd(t),n);case"binary":return e(t,n);case"buffer":return e(Kd&&Buffer.isBuffer(t)?t.toString("binary"):rh(t),n);case"array":return e(yf(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}var n=function(){var e=function(e,t,n,r,o){e.push(t),e.push(n+","+r),e.push('"'+o.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,o=[],i=zm(n["!ref"]),s=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,i.e.r-i.s.r+1,""),e(o,"TUPLES",0,i.e.c-i.s.c+1,""),e(o,"DATA",0,0,"");for(var a=i.s.r;a<=i.e.r;++a){t(o,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var u=Bm({r:a,c:l});if(r=s?(n[a]||[])[l]:n[u])switch(r.t){case"n":var c=r.w;c||null==r.v||(c=r.v),null==c?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,c,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=Wh(r.z||gh[14],lf(gf(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}return t(o,-1,0,"EOD"),o.join("\r\n")}}();return{to_workbook:function(e,n){return Um(t(e,n),n)},to_sheet:t,from_sheet:n}}(),my=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){return $m(function(t,n){for(var r=t.split("\n"),o=-1,i=-1,s=0,a=[];s!==r.length;++s){var l=r[s].trim().split(":");if("cell"===l[0]){var u=Fm(l[1]);if(a.length<=u.r)for(o=a.length;o<=u.r;++o)a[o]||(a[o]=[]);switch(o=u.r,i=u.c,l[2]){case"t":a[o][i]=e(l[3]);break;case"v":a[o][i]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":"nl"===l[3]?a[o][i]=!!+l[4]:a[o][i]=+l[4],"vtf"==l[2]&&(a[o][i]=[a[o][i],c])}}}return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),a}(t,n),n)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function a(e){if(!e||!e["!ref"])return"";for(var n,r=[],o=[],i="",s=qm(e["!ref"]),a=Array.isArray(e),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u)if(i=Bm({r:l,c:u}),(n=a?(e[l]||[])[u]:e[i])&&null!=n.v&&"z"!==n.t){switch(o=["cell",i,"t"],n.t){case"s":case"str":o.push(t(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=t(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=lf(gf(n.v));o[2]="vtc",o[3]="nd",o[4]=""+c,o[5]=n.w||Wh(n.z||gh[14],c);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,t){return Um(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[r,o,i,o,a(e),s].join("\n")}}}(),gy=function(){function e(e,t,n,r,o){o.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(Cf(e))?isNaN(xf(e).getDate())?t[n][r]=e:t[n][r]=gf(e):t[n][r]=Cf(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,i=0,s=0;i<e.length;++i)34==(s=e.charCodeAt(i))?o=!o:!o&&s in t&&(r[s]=(r[s]||0)+1);for(i in s=[],r)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);if(!s.length)for(i in r=n)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);return s.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[s.pop()[1]]||44}function o(e,t){var n=t||{},o="";null!=$d&&null==n.dense&&(n.dense=$d);var i=n.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var a=0,l=0,u=0,c=0,p=0,d=o.charCodeAt(0),h=!1,f=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,y,v=null!=n.dateNF?(y=(y="number"==typeof(g=n.dateNF)?gh[g]:g).replace(Yh,"(\\d+)"),new RegExp("^"+y+"$")):null;function b(){var t=e.slice(c,p),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):function(e){return 1!=e.length}(t)?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=Cf(t)))if(!isNaN(xf(t).getDate())||v&&t.match(v)){r.z=n.dateNF||gh[14];var o=0;v&&t.match(v)&&(t=function(e,t,n){var r=-1,o=-1,i=-1,s=-1,a=-1,l=-1;(t.match(Yh)||[]).forEach((function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":i=u;break;case"h":s=u;break;case"s":l=u;break;case"m":s>=0?a=u:o=u}})),l>=0&&-1==a&&o>=0&&(a=o,o=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==a&&-1==l?u:-1==r&&-1==o&&-1==i?c:u+"T"+c}(0,n.dateNF,t.match(v)||[]),o=1),n.cellDates?(r.t="d",r.v=gf(t,o)):(r.t="n",r.v=lf(gf(t,o))),!1!==n.cellText&&(r.w=Wh(r.z,r.v instanceof Date?lf(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(i[a]||(i[a]=[]),i[a][l]=r):i[Bm({c:l,r:a})]=r),c=p+1,m=e.charCodeAt(c),s.e.c<l&&(s.e.c=l),s.e.r<a&&(s.e.r=a),f==d)++l;else if(l=0,++a,n.sheetRows&&n.sheetRows<=a)return!0}e:for(;p<e.length;++p)switch(f=e.charCodeAt(p)){case 34:34===m&&(h=!h);break;case d:case 10:case 13:if(!h&&b())break e}return p-c>0&&b(),i["!ref"]=Hm(s),i}function i(t,n){var r="",i="string"==n.type?[0,0,0,0]:function(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=Yd(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}(t,n);switch(n.type){case"base64":r=Yd(t);break;case"binary":case"string":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&void 0!==Qd?Qd.utils.decode(n.codepage,t):Kd&&Buffer.isBuffer(t)?t.toString("binary"):rh(t);break;case"array":r=yf(t);break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Mf(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Mf(r):"binary"==n.type&&void 0!==Qd&&n.codepage&&(r=Qd.utils.decode(n.codepage,Qd.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?my.to_sheet("string"==n.type?r:Mf(r),n):function(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):$m(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var i=t.split(/[\r\n]/),s=i.length-1;s>=0&&0===i[s].length;)--s;for(var a=10,l=0,u=0;u<=s;++u)-1==(l=i[u].indexOf(" "))?l=i[u].length:l++,a=Math.max(a,l);for(u=0;u<=s;++u){o[u]=[];var c=0;for(e(i[u].slice(0,a).trim(),o,u,c,r),c=1;c<=(i[u].length-a)/10+1;++c)e(i[u].slice(a+10*(c-1),a+10*c).trim(),o,u,c,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}(r,n)}return{to_workbook:function(e,t){return Um(i(e,t),t)},to_sheet:i,from_sheet:function(e){for(var t,n=[],r=zm(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){for(var s=[],a=r.s.c;a<=r.e.c;++a){var l=Bm({r:i,c:a});if((t=o?(e[i]||[])[a]:e[l])&&null!=t.v){for(var u=(t.w||(Qm(t),t.w)||"").slice(0,10);u.length<10;)u+=" ";s.push(u+(0===a?" ":""))}else s.push(" ")}n.push(s.join(""))}return n.join("\n")}}}(),yy=function(){function e(e,t,n){if(e){Om(e,e.l||0);for(var r=n.Enum||y;e.l<e.length;){var o=e.read_shift(2),i=r[o]||r[65535],s=e.read_shift(2),a=e.l+s,l=i.f&&i.f(e,s,n);if(e.l=a,t(l,i,o))return}}}function t(t,n){if(!t)return t;var r=n||{};null!=$d&&null==r.dense&&(r.dense=$d);var o=r.dense?[]:{},i="Sheet1",s="",a=0,l={},u=[],c=[],p={s:{r:0,c:0},e:{r:0,c:0}},d=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=y,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:p=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||gh[14],r.cellDates&&(e[1].t="d",e[1].v=df(e[1].v))),r.qpro&&e[3]>a&&(o["!ref"]=Hm(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i=s||"Sheet"+(a+1),s="");var c=r.dense?(o[e[0].r]||[])[e[0].c]:o[Bm(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Bm(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=v,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>a&&(o["!ref"]=Hm(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i="Sheet"+(a+1)),d>0&&e[0].r>=d)break;r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[Bm(e[0])]=e[1],p.e.c<e[0].c&&(p.e.c=e[0].c),p.e.r<e[0].r&&(p.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==a&&(i=e[1])}}),r)}if(o["!ref"]=Hm(p),l[s||i]=o,u.push(s||i),!c.length)return{SheetNames:u,Sheets:l};for(var h={},f=[],m=0;m<c.length;++m)l[u[m]]?(f.push(c[m]||u[m]),h[c[m]]=l[c[m]]||l[u[m]]):(f.push(c[m]),h[c[m]]={"!ref":"A1"});return{SheetNames:f,Sheets:h}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return i[1].v=e.read_shift(s,"utf8"),i}return r.qpro&&e.l++,i[1].v=e.read_shift(o-e.l,"cstr"),i}function o(e,t,n){var r=_m(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var o=0;o<r.length;++o){var i=n.charCodeAt(o);r.write_shift(1,i>=128?95:i)}return r.write_shift(1,0),r}function i(e,t,n){var r=_m(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=_m(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function a(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?jm(t):Mm(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function p(e,t,n,r){var o=_m(6+r.length);o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),o.write_shift(1,39);for(var i=0;i<r.length;++i){var s=r.charCodeAt(i);o.write_shift(1,s>=128?95:s)}return o.write_shift(1,0),o}function d(e,t){var n=c(e),r=e.read_shift(4),o=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,i+32)+r*Math.pow(2,i)),n}function h(e,t,n,r){var o=_m(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var i,s=0,a=0,l=0;return r<0&&(s=1,r=-r),a=0|Math.log2(r),2147483648&(l=(r/=Math.pow(2,a-31))>>>0)||(++a,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,i=(r*=Math.pow(2,32))>>>0,o.write_shift(4,i),o.write_shift(4,l),a+=16383+(s?32768:0),o.write_shift(2,a),o}function f(e,t){var n=c(e),r=e.read_shift(8,"f");return n[1].v=r,n}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var n=_m(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var o=e.charCodeAt(r);n[n.l++]=o>127?95:o}return n[n.l++]=0,n}var y={0:{n:"BOF",f:Gg},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var s=e.read_shift(2);!function(e,t){Om(e,0);for(var n=[],r=0,o="",i="",s="",c="";e.l<e.length;){var p=e[e.l++];switch(p){case 0:n.push(e.read_shift(8,"f"));break;case 1:i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(i+o);break;case 2:var d=a(t[0].c,e.read_shift(2),!0),h=a(t[0].r,e.read_shift(2),!1);i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(d+h+":"+i+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var f="";p=e[e.l++];)f+=String.fromCharCode(p);n.push('"'+f.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:c=n.pop(),s=n.pop(),n.push(["AND","OR"][p-20]+"("+s+","+c+")");break;default:if(p<32&&u[p])c=n.pop(),s=n.pop(),n.push(s+u[p]+c);else{if(!l[p])return p<=7?console.error("WK1 invalid opcode "+p.toString(16)):p<=24?console.error("WK1 unsupported op "+p.toString(16)):p<=30?console.error("WK1 invalid opcode "+p.toString(16)):p<=115?console.error("WK1 unsupported function opcode "+p.toString(16)):console.error("WK1 unrecognized opcode "+p.toString(16));if(69==(r=l[p][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+p.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-r);n.length-=r,n.push(l[p][0]+"("+m.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+s),i),e.l+=s}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},v={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=c(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var n=c(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=d(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var o=e.read_shift(2);if(14e3==o){for(n[o]=[0,""],n[o][0]=e.read_shift(2);e[e.l];)n[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=c(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f},40:{n:"FORMULA28",f:function(e,t){var n=f(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&zd(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,a=Vm(),l=zm(e["!ref"]),u=Array.isArray(e),c=[];gb(a,0,((r=_m(2)).write_shift(2,1030),r)),gb(a,6,function(e){var t=_m(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var p=Math.min(l.e.r,8191),d=l.s.r;d<=p;++d)for(var h=Mm(d),f=l.s.c;f<=l.e.c;++f){d===l.s.r&&(c[f]=jm(f));var m=c[f]+h,g=u?(e[d]||[])[f]:e[m];g&&"z"!=g.t&&("n"==g.t?(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?gb(a,13,i(d,f,g.v)):gb(a,14,s(d,f,g.v)):gb(a,15,o(d,f,Qm(g).slice(0,239))))}return gb(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&zd(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=Vm();gb(r,0,function(e){var t=_m(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var s=e.SheetNames[i],a=e.Sheets[s];if(a&&a["!ref"]){++o;var l=qm(a["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var o=0,i=0;o<e.SheetNames.length;++o)(e.Sheets[e.SheetNames[o]]||{})["!ref"]&&gb(r,27,g(e.SheetNames[o],i++));var s=0;for(o=0;o<e.SheetNames.length;++o){var a=e.Sheets[e.SheetNames[o]];if(a&&a["!ref"]){for(var l=zm(a["!ref"]),u=Array.isArray(a),c=[],d=Math.min(l.e.r,8191),f=l.s.r;f<=d;++f)for(var m=Mm(f),y=l.s.c;y<=l.e.c;++y){f===l.s.r&&(c[y]=jm(y));var v=c[y]+m,b=u?(a[f]||[])[y]:a[v];b&&"z"!=b.t&&("n"==b.t?gb(r,23,h(f,y,s,b.v)):gb(r,22,p(f,y,s,Qm(b).slice(0,239))))}++s}}return gb(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(th(Yd(e)),n);case"binary":return t(th(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),vy=/^\s|\s$|[\t\n\r]/;function by(e,t){if(!t.bookSST)return"";var n=[Sf];n[n.length]=Hf("sst",null,{xmlns:Uf[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var o=e[r],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),o.t.match(vy)&&(i+=' xml:space="preserve"'),i+=">"+Vf(o.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Cy=function(e,t){var n=!1;return null==t&&(n=!0,t=_m(15+4*e.t.length)),t.write_shift(1,0),Ym(e.t,t),n?t.slice(0,t.l):t};function wy(e){var t=Vm();Rm(t,159,function(e,t){return t||(t=_m(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)Rm(t,19,Cy(e[n]));return Rm(t,160),t.end()}function xy(e){var t,n,r=0,o=function(e){if(void 0!==Qd)return Qd.utils.encode(Fd,e);for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),i=o.length+1;for((t=Zd(i))[0]=o.length,n=1;n!=i;++n)t[n]=o[n-1];for(n=i-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var Ey=function(){function e(e,n){switch(n.type){case"base64":return t(Yd(e),n);case"binary":return t(e,n);case"buffer":return t(Kd&&Buffer.isBuffer(e)?e.toString("binary"):rh(e),n);case"array":return t(yf(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,i=/\\\w+\b/g,s=0,a=-1;r=i.exec(e);){if("\\cell"===r[0]){var l=e.slice(s,i.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++a,l.length){var u={v:l,t:"s"};Array.isArray(n)?n[t][a]=u:n[Bm({r:t,c:a})]=u}}s=i.lastIndex}a>o.e.c&&(o.e.c=a)})),n["!ref"]=Hm(o),n}return{to_workbook:function(t,n){return Um(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=zm(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var a=Bm({r:i,c:s});(t=o?(e[i]||[])[s]:e[a])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(Qm(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Py(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var Sy=6;function Oy(e){return Math.floor((e+Math.round(128/Sy)/256)*Sy)}function Ty(e){return Math.floor((e-5)/Sy*100+.5)/100}function _y(e){return Math.round((e*Sy+5)/Sy*256)/256}function Vy(e){e.width?(e.wpx=Oy(e.width),e.wch=Ty(e.wpx),e.MDW=Sy):e.wpx?(e.wch=Ty(e.wpx),e.width=_y(e.wch),e.MDW=Sy):"number"==typeof e.wch&&(e.width=_y(e.wch),e.wpx=Oy(e.width),e.MDW=Sy),e.customWidth&&delete e.customWidth}var Ry=96;function Iy(e){return 96*e/Ry}function ky(e){return e*Ry/96}function Ay(e,t){var n,r=[Sf,Hf("styleSheet",null,{xmlns:Uf[0],"xmlns:vt":Qf.vt})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=Hf("numFmt",null,{numFmtId:r,formatCode:Vf(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Hf("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Hf("cellXfs",null),e.forEach((function(e){t[t.length]=Hf("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Hf("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function Dy(e,t,n){n||(n=_m(6+4*t.length)),n.write_shift(2,e),Ym(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}var Ny,My=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Ly=Tm;function jy(e,t){t||(t=_m(84)),Ny||(Ny=of(My));var n=Ny[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(vg({auto:1},t),vg({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Fy(e,t,n){return n||(n=_m(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function By(e,t){return t||(t=_m(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var qy=Tm;function Hy(e,t){var n=Vm();return Rm(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(Rm(e,615,Gm(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&Rm(e,44,Dy(r,t[r]))})),Rm(e,616))}}(n,e.SSF),function(e){Rm(e,611,Gm(1)),Rm(e,43,function(e,t){t||(t=_m(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=_m(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),vg(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),Ym(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Rm(e,612)}(n),function(e){Rm(e,603,Gm(2)),Rm(e,45,jy({patternType:"none"})),Rm(e,45,jy({patternType:"gray125"})),Rm(e,604)}(n),function(e){Rm(e,613,Gm(1)),Rm(e,46,function(e,t){return t||(t=_m(51)),t.write_shift(1,0),By(0,t),By(0,t),By(0,t),By(0,t),By(0,t),t.length>t.l?t.slice(0,t.l):t}()),Rm(e,614)}(n),function(e){Rm(e,626,Gm(1)),Rm(e,47,Fy({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Rm(e,627)}(n),function(e,t){Rm(e,617,Gm(t.length)),t.forEach((function(t){Rm(e,47,Fy(t,0))})),Rm(e,618)}(n,t.cellXfs),function(e){Rm(e,619,Gm(1)),Rm(e,48,function(e,t){return t||(t=_m(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),ag(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),Rm(e,620)}(n),function(e){Rm(e,505,Gm(0)),Rm(e,506)}(n),function(e){Rm(e,508,function(e,t,n){var r=_m(2052);return r.write_shift(4,0),ag("TableStyleMedium9",r),ag("PivotStyleMedium4",r),r.length>r.l?r.slice(0,r.l):r}()),Rm(e,509)}(n),Rm(n,279),n.end()}function zy(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Sf];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Qy(){var e=Vm();return Rm(e,332),Rm(e,334,Gm(1)),Rm(e,335,function(e){var t=_m(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Ym(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Rm(e,336),Rm(e,339,function(e,t){var n=_m(20);return n.write_shift(4,1),Ym(t,n),n.slice(0,n.l)}(0,"XLDAPR")),Rm(e,52),Rm(e,35,Gm(514)),Rm(e,4096,Gm(0)),Rm(e,4097,Jg(1)),Rm(e,36),Rm(e,53),Rm(e,340),Rm(e,337,function(e,t){var n=_m(8);return n.write_shift(4,1),n.write_shift(4,1),n}()),Rm(e,51,function(e){var t=_m(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),Rm(e,338),Rm(e,333),e.end()}function Uy(){var e=[Sf];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var Wy=1024;function $y(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Hf("xml",null,{"xmlns:v":Wf.v,"xmlns:o":Wf.o,"xmlns:x":Wf.x,"xmlns:mv":Wf.mv}).replace(/\/>/,">"),Hf("o:shapelayout",Hf("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Hf("v:shapetype",[Hf("v:stroke",null,{joinstyle:"miter"}),Hf("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Wy<1e3*e;)Wy+=1e3;return t.forEach((function(e){var t=Fm(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Hf("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Hf("v:fill",r,n);++Wy,o=o.concat(["<v:shape"+qf({id:"_x0000_s"+Wy,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Hf("v:shadow",null,{on:"t",obscured:"t"}),Hf("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Bf("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Bf("x:AutoFill","False"),Bf("x:Row",String(t.r)),Bf("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function Gy(e){var t=[Sf,Hf("comments",null,{xmlns:Uf[0]})],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=Vf(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var r=0,o=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(Vf(e.a))),o.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),o.length<=1)t.push(Bf("t",Vf(o[0]||"")));else{for(var i="Comment:\n "+o[0]+"\n",s=1;s<o.length;++s)i+="Reply:\n "+o[s]+"\n";t.push(Bf("t",Vf(i)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Jy(e,t,n){var r=[Sf,Hf("ThreadedComments",null,{xmlns:Qf.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(i,s){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var a={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==s?o=a.id:a.parentId=o,i.ID=a.id,i.a&&(a.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),r.push(Hf("threadedComment",Bf("text",i.t||""),a))}else delete i.ID}))})),r.push("</ThreadedComments>"),r.join("")}var Yy=Jm;function Ky(e){var t=Vm(),n=[];return Rm(t,628),Rm(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Rm(t,632,function(e){return Ym(e.slice(0,54))}(e.a)))}))})),Rm(t,631),Rm(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var o={s:Fm(e[0]),e:Fm(e[0])};Rm(t,635,function(e,t){return null==t&&(t=_m(36)),t.write_shift(4,e[1].iauthor),mg(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([o,r])),r.t&&r.t.length>0&&Rm(t,637,function(e,t){var n=!1;return null==t&&(n=!0,t=_m(23+4*e.t.length)),t.write_shift(1,1),Ym(e.t,t),t.write_shift(4,1),function(e,t){t||(t=_m(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}(r)),Rm(t,636),delete r.iauthor}))})),Rm(t,634),Rm(t,629),t.end()}var Xy=["xlsb","xlsm","xlam","biff8","xla"],Zy=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var i=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==o.length?i=!0:"["==o.charAt(0)&&(i=!0,o=o.slice(1,-1));var a=r.length>0?0|parseInt(r,10):0,l=o.length>0?0|parseInt(o,10):0;return i?l+=t.c:--l,s?a+=t.r:--a,n+(i?"":"$")+jm(l)+(s?"":"$")+Mm(a)}return function(r,o){return t=o,r.replace(e,n)}}(),ev=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,tv=function(){return function(e,t){return e.replace(ev,(function(e,n,r,o,i,s){var a=Lm(o)-(r?0:t.c),l=Nm(s)-(i?0:t.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==a?"":r?a+1:"["+a+"]")}))}}();function nv(e,t){return e.replace(ev,(function(e,n,r,o,i,s){return n+("$"==r?r+o:jm(Lm(o)+t.c))+("$"==i?i+s:Mm(Nm(s)+t.r))}))}function rv(e){e.l+=1}function ov(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function iv(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return sv(e);12==n.biff&&(r=4)}var o=e.read_shift(r),i=e.read_shift(r),s=ov(e,2),a=ov(e,2);return{s:{r:o,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function sv(e){var t=ov(e,2),n=ov(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function av(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=ov(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=ov(e,2);return{r,c:o[0],cRel:o[1],rRel:o[2]}}function lv(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function uv(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function cv(e){return[e.read_shift(1),e.read_shift(1)]}function pv(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=function(e,t){return 1===e.read_shift(t)}(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Pg[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=gg(e);break;case 2:n[1]=function(e,t,n){if(n.biff>5)return function(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):function(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}(e,r,n)}(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function dv(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?fg:oy)(e,8));return o}function hv(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,s=[];i!=r&&(s[i]=[]);++i)for(var a=0;a!=o;++a)s[i][a]=pv(e,n.biff);return s}function fv(e,t,n){return e.l+=2,[lv(e)]}function mv(e){return e.l+=6,[]}function gv(e){return e.l+=2,[Gg(e),1&e.read_shift(2)]}var yv=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],vv={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Tm},3:{n:"PtgAdd",f:rv},4:{n:"PtgSub",f:rv},5:{n:"PtgMul",f:rv},6:{n:"PtgDiv",f:rv},7:{n:"PtgPower",f:rv},8:{n:"PtgConcat",f:rv},9:{n:"PtgLt",f:rv},10:{n:"PtgLe",f:rv},11:{n:"PtgEq",f:rv},12:{n:"PtgGe",f:rv},13:{n:"PtgGt",f:rv},14:{n:"PtgNe",f:rv},15:{n:"PtgIsect",f:rv},16:{n:"PtgUnion",f:rv},17:{n:"PtgRange",f:rv},18:{n:"PtgUplus",f:rv},19:{n:"PtgUminus",f:rv},20:{n:"PtgPercent",f:rv},21:{n:"PtgParen",f:rv},22:{n:"PtgMissArg",f:rv},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Kg(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Pg[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,gg(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[Nv[o],Dv[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),i=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===i[0]?Dv:Av)[i[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,i=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,i]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,av(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,iv(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Tm},40:{n:"PtgMemNoMem",f:Tm},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==o&&n>=128&&(n-=256),{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),i=e.read_shift(2),s=(16384&i)>>14,a=(32768&i)>>15;if(i&=16383,1==a)for(;o>524287;)o-=1048576;if(1==s)for(;i>8191;)i-=16384;return{r:o,c:i,cRel:s,rRel:a}}(e,0,n);return[r,o]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=function(e,t,n){if(n.biff<8)return sv(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),i=ov(e,2),s=ov(e,2);return{s:{r,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,o]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,av(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n&&5===n.biff)e.l+=12;return[r,o,iv(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=8;if(n)switch(n.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[r,o]}},255:{}},bv={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Cv={1:{n:"PtgElfLel",f:gv},2:{n:"PtgElfRw",f:fv},3:{n:"PtgElfCol",f:fv},6:{n:"PtgElfRwV",f:fv},7:{n:"PtgElfColV",f:fv},10:{n:"PtgElfRadical",f:fv},11:{n:"PtgElfRadicalS",f:mv},13:{n:"PtgElfColS",f:mv},15:{n:"PtgElfColSV",f:mv},16:{n:"PtgElfRadicalLel",f:gv},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&n,rt:yv[n>>2&31],idx:r,c:o,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},wv={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:uv},33:{n:"PtgAttrBaxcel",f:uv},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),cv(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),cv(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function xv(e,t,n,r){if(r.biff<8)return Tm(e,t);for(var o=e.l+t,i=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=hv(e,0,r),i.push(n[s][1]);break;case"PtgMemArea":n[s][2]=dv(e,n[s][1],r),i.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),i.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!=(t=o-e.l)&&i.push(Tm(e,t)),i}function Ev(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],o=[],i=0;i<r.length;++i){var s=r[i];s?2===s[0]?o.push('"'+s[1].replace(/"/g,'""')+'"'):o.push(s[1]):o.push("")}t.push(o.join(","))}return t.join(";")}var Pv={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Sv(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Ov(e,t,n){var r=Sv(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function Tv(e,t,n,r,o){var i,s,a,l,u=o&&o.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},p=[],d=0,h=0,f="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",y=0,v=e[0].length;y<v;++y){var b=e[0][y];switch(b[0]){case"PtgUminus":p.push("-"+p.pop());break;case"PtgUplus":p.push("+"+p.pop());break;case"PtgPercent":p.push(p.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=p.pop(),s=p.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=bf(" ",e[0][m][1][1]);break;case 1:g=bf("\r",e[0][m][1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}p.push(s+Pv[b[0]]+i);break;case"PtgIsect":i=p.pop(),s=p.pop(),p.push(s+" "+i);break;case"PtgUnion":i=p.pop(),s=p.pop(),p.push(s+","+i);break;case"PtgRange":i=p.pop(),s=p.pop(),p.push(s+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":a=Im(b[1][1],c,o),p.push(Am(a,u));break;case"PtgRefN":a=n?Im(b[1][1],n,o):b[1][1],p.push(Am(a,u));break;case"PtgRef3d":d=b[1][1],a=Im(b[1][2],c,o),f=Ov(r,d,o),p.push(f+"!"+Am(a,u));break;case"PtgFunc":case"PtgFuncVar":var C=b[1][0],w=b[1][1];C||(C=0);var x=0==(C&=127)?[]:p.slice(-C);p.length-=C,"User"===w&&(w=x.shift()),p.push(w+"("+x.join(",")+")");break;case"PtgBool":p.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":p.push(b[1]);break;case"PtgNum":p.push(String(b[1]));break;case"PtgStr":p.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=km(b[1][1],n?{s:n}:c,o),p.push(Dm(l,o));break;case"PtgArea":l=km(b[1][1],c,o),p.push(Dm(l,o));break;case"PtgArea3d":d=b[1][1],l=b[1][2],f=Ov(r,d,o),p.push(f+"!"+Dm(l,o));break;case"PtgAttrSum":p.push("SUM("+p.pop()+")");break;case"PtgName":h=b[1][2];var E=(r.names||[])[h-1]||(r[0]||[])[h],P=E?E.Name:"SH33TJSNAME"+String(h);P&&"_xlfn."==P.slice(0,6)&&!o.xlfn&&(P=P.slice(6)),p.push(P);break;case"PtgNameX":var S,O=b[1][1];if(h=b[1][2],!(o.biff<=5)){var T="";if(14849==((r[O]||[])[0]||[])[0]||(1025==((r[O]||[])[0]||[])[0]?r[O][h]&&r[O][h].itab>0&&(T=r.SheetNames[r[O][h].itab-1]+"!"):T=r.SheetNames[h-1]+"!"),r[O]&&r[O][h])T+=r[O][h].Name;else if(r[0]&&r[0][h])T+=r[0][h].Name;else{var _=(Sv(r,O,o)||"").split(";;");_[h-1]?T=_[h-1]:T+="SH33TJSERRX"}p.push(T);break}O<0&&(O=-O),r[O]&&(S=r[O][h]),S||(S={Name:"SH33TJSERRY"}),p.push(S.Name);break;case"PtgParen":var V="(",R=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:V=bf(" ",e[0][m][1][1])+V;break;case 3:V=bf("\r",e[0][m][1][1])+V;break;case 4:R=bf(" ",e[0][m][1][1])+R;break;case 5:R=bf("\r",e[0][m][1][1])+R;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}p.push(V+p.pop()+R);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":p.push("#REF!");break;case"PtgExp":a={c:b[1][1],r:b[1][0]};var I={c:n.c,r:n.r};if(r.sharedf[Bm(a)]){var k=r.sharedf[Bm(a)];p.push(Tv(k,0,I,r,o))}else{var A=!1;for(i=0;i!=r.arrayf.length;++i)if(s=r.arrayf[i],!(a.c<s[0].s.c||a.c>s[0].e.c||a.r<s[0].s.r||a.r>s[0].e.r)){p.push(Tv(s[1],0,I,r,o)),A=!0;break}A||p.push(b[1])}break;case"PtgArray":p.push("{"+Ev(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=y;break;case"PtgMissArg":p.push("");break;case"PtgList":p.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=o.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var D=!0;switch((b=e[0][m])[1][0]){case 4:D=!1;case 0:g=bf(" ",b[1][1]);break;case 5:D=!1;case 1:g=bf("\r",b[1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}p.push((D?g:"")+p.pop()+(D?"":g)),m=-1}}if(p.length>1&&o.WTF)throw new Error("bad formula stack");return p[0]}function _v(e,t,n){var r=e.read_shift(4),o=function(e,t,n){for(var r,o,i=e.l+t,s=[];i!=e.l;)t=i-e.l,o=e[e.l],r=vv[o]||vv[bv[o]],24!==o&&25!==o||(r=(24===o?Cv:wv)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):Tm(e,t);return s}(e,r,n),i=e.read_shift(4);return[o,i>0?xv(e,i,o,n):null]}var Vv=_v,Rv=_v,Iv=_v,kv=_v,Av={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Dv={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Nv={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Mv(e){return("of:="+e.replace(ev,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}var Lv="undefined"!=typeof Map;function jv(e,t,n){var r=0,o=e.length;if(n){if(Lv?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var i=Lv?n.get(t):n[t];r<i.length;++r)if(e[i[r]].t===t)return e.Count++,i[r]}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(Lv?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}function Fv(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(Sy=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=Ty(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=_y(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function Bv(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function qv(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==r&&n.ssf)for(;o<392;++o)if(null==n.ssf[o]){$h(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===r)return o;return e[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Hv(e,t,n){if(e&&e["!ref"]){var r=zm(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var zv=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Qv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Uv(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",i=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Pg[e.v];break;case"d":r&&r.cellDates?o=gf(e.v,-1).toISOString():((e=vf(e)).t="n",o=""+(e.v=lf(gf(e.v)))),void 0===e.z&&(e.z=gh[14]);break;default:o=e.v}var a=Bf("v",Vf(o)),l={r:t},u=qv(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){a=Bf("v",""+jv(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str"}if(e.t!=i&&(e.t=i,e.v=s),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;a=Hf("f",Vf(e.f),c)+(null!=e.v?a:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Hf("c",a,l)}function Wv(e,t,n,r){var o,i=[Sf,Hf("worksheet",null,{xmlns:Uf[0],"xmlns:r":Qf.r})],s=n.SheetNames[e],a="",l=n.Sheets[s];null==l&&(l={});var u=l["!ref"]||"A1",c=zm(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Hm(c)}r||(r={}),l["!comments"]=[];var p=[];!function(e,t,n,r,o){var i=!1,s={},a=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}i=!0,s.codeName=Lf(Vf(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),a=(a||"")+Hf("outlinePr",null,u)}(i||a)&&(o[o.length]=Hf("sheetPr",a,s))}(l,n,e,t,i),i[i.length]=Hf("dimension",null,{ref:u}),i[i.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Hf("sheetViews",Hf("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(i[i.length]=Hf("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var n,r=["<cols>"],o=0;o!=t.length;++o)(n=t[o])&&(r[r.length]=Hf("col",null,Fv(o,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(a=function(e,t,n,r){var o,i,s=[],a=[],l=zm(e["!ref"]),u="",c="",p=[],d=0,h=0,f=e["!rows"],m=Array.isArray(e),g={r:c},y=-1;for(h=l.s.c;h<=l.e.c;++h)p[h]=jm(h);for(d=l.s.r;d<=l.e.r;++d){for(a=[],c=Mm(d),h=l.s.c;h<=l.e.c;++h){o=p[h]+c;var v=m?(e[d]||[])[h]:e[o];void 0!==v&&null!=(u=Uv(v,o,e,t))&&a.push(u)}(a.length>0||f&&f[d])&&(g={r:c},f&&f[d]&&((i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=Iy(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),s[s.length]=Hf("row",a.join(""),g))}if(f)for(;d<f.length;++d)f&&f[d]&&(g={r:d+1},(i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=Iy(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level),s[s.length]=Hf("row","",g));return s.join("")}(l,t),a.length>0&&(i[i.length]=a)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return zv.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Qv.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=xy(e.password).toString(16).toUpperCase()),Hf("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,n,r){var o="string"==typeof e.ref?e.ref:Hm(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,s=qm(o);s.s.r==s.e.r&&(s.e.r=qm(t["!ref"]).e.r,o=Hm(s));for(var a=0;a<i.length;++a){var l=i[a];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+o;break}}return a==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Hf("autoFilter",null,{ref:o})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Hm(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var d,h,f=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(e){e[1].Target&&(d={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=Ig(r,-1,Vf(e[1].Target).replace(/#.*$/,""),_g.HLINK),d["r:id"]="rId"+m),(f=e[1].Target.indexOf("#"))>-1&&(d.location=Vf(e[1].Target.slice(f+1))),e[1].Tooltip&&(d.tooltip=Vf(e[1].Tooltip)),i[i.length]=Hf("hyperlink",null,d))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(Bv(h=l["!margins"]),Hf("pageMargins",null,h))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=Bf("ignoredErrors",Hf("ignoredError",null,{numberStoredAsText:1,sqref:u}))),p.length>0&&(m=Ig(r,-1,"../drawings/drawing"+(e+1)+".xml",_g.DRAW),i[i.length]=Hf("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=p),l["!comments"].length>0&&(m=Ig(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",_g.VML),i[i.length]=Hf("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function $v(e,t,n,r){var o=function(e,t,n){var r=_m(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var i=320;o.hpx?i=20*Iy(o.hpx):o.hpt&&(i=20*o.hpt),r.write_shift(2,i),r.write_shift(1,0);var s=0;o.level&&(s|=o.level),o.hidden&&(s|=16),(o.hpx||o.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var a=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var p=-1,d=-1,h=c<<10;h<c+1<<10;++h)u.c=h,(Array.isArray(n)?(n[u.r]||[])[u.c]:n[Bm(u)])&&(p<0&&(p=h),d=h);p<0||(++a,r.write_shift(4,p),r.write_shift(4,d))}var f=r.l;return r.l=l,r.write_shift(4,a),r.l=f,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&Rm(e,0,o)}var Gv=fg,Jv=mg;var Yv=fg,Kv=mg,Xv=["left","right","top","bottom","header","footer"];function Zv(e,t,n,r,o,i,s){if(void 0===t.v)return!1;var a="";switch(t.t){case"b":a=t.v?"1":"0";break;case"d":(t=vf(t)).z=t.z||gh[14],t.v=lf(gf(t.v)),t.t="n";break;case"n":case"e":a=""+t.v;break;default:a=t.v}var l={r:n,c:r};switch(l.s=qv(o.cellXfs,t,o),t.l&&i["!links"].push([Bm(l),t.l]),t.c&&i["!comments"].push([Bm(l),t.c]),t.t){case"s":case"str":return o.bookSST?(a=jv(o.Strings,t.v,o.revStrings),l.t="s",l.v=a,s?Rm(e,18,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),n.write_shift(4,t.v),n}(0,l)):Rm(e,7,function(e,t,n){return null==n&&(n=_m(12)),tg(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",s?Rm(e,17,function(e,t,n){return null==n&&(n=_m(8+4*e.v.length)),rg(t,n),Ym(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):Rm(e,6,function(e,t,n){return null==n&&(n=_m(12+4*e.v.length)),tg(t,n),Ym(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?Rm(e,13,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),dg(e.v,n),n}(t,l)):Rm(e,2,function(e,t,n){return null==n&&(n=_m(12)),tg(t,n),dg(e.v,n),n}(t,l)):s?Rm(e,16,function(e,t,n){return null==n&&(n=_m(12)),rg(t,n),yg(e.v,n),n}(t,l)):Rm(e,5,function(e,t,n){return null==n&&(n=_m(16)),tg(t,n),yg(e.v,n),n}(t,l)),!0;case"b":return l.t="b",s?Rm(e,15,function(e,t,n){return null==n&&(n=_m(5)),rg(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):Rm(e,4,function(e,t,n){return null==n&&(n=_m(9)),tg(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",s?Rm(e,14,function(e,t,n){return null==n&&(n=_m(8)),rg(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):Rm(e,3,function(e,t,n){return null==n&&(n=_m(9)),tg(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return s?Rm(e,12,function(e,t,n){return null==n&&(n=_m(4)),rg(t,n)}(0,l)):Rm(e,1,function(e,t,n){return null==n&&(n=_m(8)),tg(t,n)}(0,l)),!0}function eb(e,t,n,r){var o=Vm(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=i;try{n&&n.Workbook&&(a=n.Workbook.Sheets[e].CodeName||a)}catch(e){}var l=zm(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Rm(o,129),(n.vbaraw||s["!outline"])&&Rm(o,147,function(e,t,n){null==n&&(n=_m(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var o=1;o<3;++o)n.write_shift(1,0);return vg({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),ig(e,n),n.slice(0,n.l)}(a,s["!outline"])),Rm(o,148,Jv(l)),function(e,t,n){Rm(e,133),Rm(e,137,function(e,t,n){null==n&&(n=_m(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Rm(e,138),Rm(e,134)}(o,0,n.Workbook),function(e,t){t&&t["!cols"]&&(Rm(e,390),t["!cols"].forEach((function(t,n){t&&Rm(e,60,function(e,t,n){null==n&&(n=_m(18));var r=Fv(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var o=0;return t.hidden&&(o|=1),"number"==typeof r.width&&(o|=2),t.level&&(o|=t.level<<8),n.write_shift(2,o),n}(n,t))})),Rm(e,391))}(o,s),function(e,t,n,r){var o,i=zm(t["!ref"]||"A1"),s="",a=[];Rm(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){s=Mm(c),$v(e,t,i,c);var p=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(a[d]=jm(d)),o=a[d]+s;var h=l?(t[c]||[])[d]:t[o];p=!!h&&Zv(e,h,c,d,r,t,p)}}Rm(e,146)}(o,s,0,t),function(e,t){t["!protect"]&&Rm(e,535,function(e,t){return null==t&&(t=_m(66)),t.write_shift(2,e.password?xy(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?t.write_shift(4,null==e[n[0]]||e[n[0]]?0:1):t.write_shift(4,null!=e[n[0]]&&e[n[0]]?0:1)})),t}(t["!protect"]))}(o,s),function(e,t,n,r){if(t["!autofilter"]){var o=t["!autofilter"],i="string"==typeof o.ref?o.ref:Hm(o.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,a=qm(i);a.s.r==a.e.r&&(a.e.r=qm(t["!ref"]).e.r,i=Hm(a));for(var l=0;l<s.length;++l){var u=s[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+i;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),Rm(e,161,mg(zm(i))),Rm(e,162)}}(o,s,n,e),function(e,t){t&&t["!merges"]&&(Rm(e,177,function(e,t){return null==t&&(t=_m(4)),t.write_shift(4,e),t}(t["!merges"].length)),t["!merges"].forEach((function(t){Rm(e,176,Kv(t))})),Rm(e,178))}(o,s),function(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Ig(n,-1,t[1].Target.replace(/#.*$/,""),_g.HLINK);Rm(e,494,function(e,t){var n=_m(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));mg({s:Fm(e[0]),e:Fm(e[0])},n),cg("rId"+t,n);var r=e[1].Target.indexOf("#");return Ym((-1==r?"":e[1].Target.slice(r+1))||"",n),Ym(e[1].Tooltip||"",n),Ym("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}(o,s,r),s["!margins"]&&Rm(o,476,function(e,t){return null==t&&(t=_m(48)),Bv(e),Xv.forEach((function(n){yg(e[n],t)})),t}(s["!margins"])),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){t&&t["!ref"]&&(Rm(e,648),Rm(e,649,function(e){var t=_m(24);return t.write_shift(4,4),t.write_shift(4,1),mg(e,t),t}(zm(t["!ref"]))),Rm(e,650))}(o,s),function(e,t,n,r){if(t["!comments"].length>0){var o=Ig(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",_g.VML);Rm(e,551,cg("rId"+o)),t["!legacy"]=o}}(o,s,e,r),Rm(o,130),o.end()}var tb=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],nb="][*?/\\".split("");function rb(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return nb.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function ob(e){var t=[Sf];t[t.length]=Hf("workbook",null,{xmlns:Uf[0],"xmlns:r":Qf.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(tb.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Hf("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:Vf(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=Hf("sheet",null,s)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Hf("definedName",Vf(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function ib(e,t){return t||(t=_m(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),cg(e.strRelID,t),Ym(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function sb(e,t){var n=Vm();return Rm(n,131),Rm(n,128,function(e,t){t||(t=_m(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return Ym("SheetJS",t),Ym(Ld.version,t),Ym(Ld.version,t),Ym("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Rm(n,153,function(e,t){t||(t=_m(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),ig(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n=t.Workbook.Sheets,r=0,o=-1,i=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==o?o=r:1==n[r].Hidden&&-1==i&&(i=r);i>o||(Rm(e,135),Rm(e,158,function(e,t){return t||(t=_m(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e),t.write_shift(1,120),t.length>t.l?t.slice(0,t.l):t}(o)),Rm(e,136))}}(n,e),function(e,t){Rm(e,143);for(var n=0;n!=t.SheetNames.length;++n)Rm(e,156,ib({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]}));Rm(e,144)}(n,e),Rm(n,132),n.end()}function ab(e,t,n,r,o){return(".bin"===t.slice(-4)?eb:Wv)(e,n,r,o)}function lb(e,t,n){return(".bin"===t.slice(-4)?Ky:Gy)(e,n)}function ub(e){return Hf("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+tv(e.Ref,{r:0,c:0})})}function cb(e,t,n,r,o,i,s){if(!e||null==e.v&&null==e.f)return"";var a={};if(e.f&&(a["ss:Formula"]="="+Vf(tv(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=Fm(e.F.slice(t.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(a["ss:HRef"]=Vf(e.l.Target),e.l.Tooltip&&(a["x:HRefScreenTip"]=Vf(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==s.c&&u[c].s.r==s.r&&(u[c].e.c>u[c].s.c&&(a["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(a["ss:MergeDown"]=u[c].e.r-u[c].s.r));var p="",d="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":p="Number",d=String(e.v);break;case"b":p="Boolean",d=e.v?"1":"0";break;case"e":p="Error",d=Pg[e.v];break;case"d":p="DateTime",d=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||gh[14]);break;case"s":p="String",d=((e.v||"")+"").replace(Tf,(function(e){return Of[e]})).replace(If,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var h=qv(r.cellXfs,e,r);a["ss:StyleID"]="s"+(21+h),a["ss:Index"]=s.c+1;var f=null!=e.v?d:"",m="z"==e.t?"":'<Data ss:Type="'+p+'">'+f+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=Hf("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return Hf("Comment",t,{"ss:Author":e.a})})).join("")),Hf("Cell",m,a)}function pb(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ky(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function db(e,t,n){var r=[],o=n.SheetNames[e],i=n.Sheets[o],s=i?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,i=[],s=0;s<o.length;++s){var a=o[s];a.Sheet==n&&(a.Name.match(/^_xlfn\./)||i.push(ub(a)))}return i.join("")}(i,0,e,n):"";return s.length>0&&r.push("<Names>"+s+"</Names>"),s=i?function(e,t,n,r){if(!e["!ref"])return"";var o=zm(e["!ref"]),i=e["!merges"]||[],s=0,a=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Vy(e);var n=!!e.width,r=Fv(t,e),o={"ss:Index":t+1};n&&(o["ss:Width"]=Oy(r.width)),e.hidden&&(o["ss:Hidden"]="1"),a.push(Hf("Column",null,o))}));for(var l=Array.isArray(e),u=o.s.r;u<=o.e.r;++u){for(var c=[pb(u,(e["!rows"]||[])[u])],p=o.s.c;p<=o.e.c;++p){var d=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>p||i[s].s.r>u||i[s].e.c<p||i[s].e.r<u)){i[s].s.c==p&&i[s].s.r==u||(d=!0);break}if(!d){var h={r:u,c:p},f=Bm(h),m=l?(e[u]||[])[p]:e[f];c.push(cb(m,f,e,t,0,0,h))}}c.push("</Row>"),c.length>2&&a.push(c.join(""))}return a.join("")}(i,t):"",s.length>0&&r.push("<Table>"+s+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Hf("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Hf("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Hf("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Hf("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(Bf("ProtectContents","True")),e["!protect"].objects&&o.push(Bf("ProtectObjects","True")),e["!protect"].scenarios&&o.push(Bf("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(Bf("EnableSelection","UnlockedCells")):o.push(Bf("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":Hf("WorksheetOptions",o.join(""),{xmlns:Wf.x})}(i,0,e,n)),r.join("")}function hb(e,t){t||(t={}),e.SSF||(e.SSF=vf(gh)),e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(function(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return nf(qg).map((function(e){for(var t=0;t<Dg.length;++t)if(Dg[t][1]==e)return Dg[t];for(t=0;t<Lg.length;++t)if(Lg[t][1]==e)return Lg[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var o=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),n.push(Bf(qg[r[1]]||r[1],o))}})),Hf("DocumentProperties",n.join(""),{xmlns:Wf.o})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&nf(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<Dg.length;++r)if(t==Dg[r][1])return;for(r=0;r<Lg.length;++r)if(t==Lg[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var i=e[t],s="string";"number"==typeof i?(s="float",i=String(i)):!0===i||!1===i?(s="boolean",i=i?"1":"0"):i=String(i),o.push(Hf(Rf(t),i,{"dt:dt":s}))}})),t&&nf(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],i="string";"number"==typeof r?(i="float",r=String(r)):!0===r||!1===r?(i="boolean",r=r?"1":"0"):r instanceof Date?(i="dateTime.tz",r=r.toISOString()):r=String(r),o.push(Hf(Rf(n),r,{"dt:dt":i}))}})),"<"+r+' xmlns="'+Wf.o+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Hf("Worksheet",db(r,t,e),{"ss:Name":Vf(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(Hf("NumberFormat",null,{"ss:Format":Vf(gh[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(Hf("Style",r.join(""),o))})),Hf("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var o=t[r];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||n.push(ub(o)))}return Hf("Names",n.join(""))}(e),Sf+Hf("Workbook",n.join(""),{xmlns:Wf.ss,"xmlns:o":Wf.o,"xmlns:x":Wf.x,"xmlns:ss":Wf.ss,"xmlns:dt":Wf.dt,"xmlns:html":Wf.html})}var fb={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};var mb={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var o=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=r,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=o/20),n}},1:{f:function(e){return[eg(e)]}},2:{f:function(e){return[eg(e),pg(e),"n"]}},3:{f:function(e){return[eg(e),e.read_shift(1),"e"]}},4:{f:function(e){return[eg(e),e.read_shift(1),"b"]}},5:{f:function(e){return[eg(e),gg(e),"n"]}},6:{f:function(e){return[eg(e),Jm(e),"str"]}},7:{f:function(e){return[eg(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,Jm(e),"str"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},9:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,gg(e),"n"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},10:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},11:{f:function(e,t,n){var r=e.l+t,o=eg(e);o.r=n["!row"];var i=[o,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=Rv(e,r-e.l,n);i[3]=Tv(s,0,o,n.supbooks,n)}else e.l=r;return i}},12:{f:function(e){return[ng(e)]}},13:{f:function(e){return[ng(e),pg(e),"n"]}},14:{f:function(e){return[ng(e),e.read_shift(1),"e"]}},15:{f:function(e){return[ng(e),e.read_shift(1),"b"]}},16:{f:function(e){return[ng(e),gg(e),"n"]}},17:{f:function(e){return[ng(e),Jm(e),"str"]}},18:{f:function(e){return[ng(e),e.read_shift(4),"s"]}},19:{f:Xm},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var o=e.read_shift(4),i=lg(e),s=Iv(e,0,n),a=sg(e);e.l=r;var l={Name:i,Ptg:s};return o<268435455&&(l.Sheet=o),a&&(l.Comment=a),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var o=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(o.fItalic&&(r.italic=1),o.fCondense&&(r.condense=1),o.fExtend&&(r.extend=1),o.fShadow&&(r.shadow=1),o.fOutline&&(r.outline=1),o.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var i=e.read_shift(1);0!=i&&(r.underline=i);var s=e.read_shift(1);s>0&&(r.family=s);var a=e.read_shift(1);switch(a>0&&(r.charset=a),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),o=e.read_shift(2,"i"),i=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=Eg[r];l&&(t.rgb=Py(l));break;case 2:t.rgb=Py([i,s,a]);break;case 3:t.theme=r}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Jm(e),r}},44:{f:function(e,t){return[e.read_shift(2),Jm(e)]}},45:{f:Ly},46:{f:qy},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),o=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:o}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function(e,t,n){if(!n.cellStyles)return Tm(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),i=e.read_shift(r),s=e.read_shift(r),a=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:o,e:i,w:s,ixfe:a,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}},62:{f:function(e){return[eg(e),Xm(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=Bm(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Tm,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=og(e,t-19),n}},148:{f:Gv,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var o=t>8?Jm(e):"";return o.length>0&&(n.CodeName=o),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=ug(e,t-8),n.name=Jm(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:fg},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Yv},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Jm(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ug},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Kg(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,i=e.read_shift(n.biff>8?4:2);0!=i--;)r.push(ry(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,o=hg(e),i=e.read_shift(1),s=[o];if(s[2]=i,n.cellFormula){var a=Vv(e,r-e.l,n);s[1]=a}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,o=[fg(e,16)];if(n.cellFormula){var i=kv(e,r-e.l,n);o[1]=i,e.l=r}else e.l=r;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Xv.forEach((function(n){t[n]=gg(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=fg(e,16),o=sg(e),i=Jm(e),s=Jm(e),a=Jm(e);e.l=n;var l={rfx:r,relId:o,loc:i,display:a};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ug},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Yy},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=fg(e,16);return t.rfx=n.s,t.ref=Bm(n.s),e.l+=16,t}},636:{T:-1},637:{f:Zm},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Jm(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function gb(e,t,n,r){var o=t;if(!isNaN(o)){var i=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,o),s.write_shift(2,i),i>0&&hm(n)&&e.push(n)}}function yb(e,t,n){return e||(e=_m(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function vb(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?lf(gf(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?gb(e,2,function(e,t,n){var r=_m(9);return yb(r,e,t),r.write_shift(2,n),r}(n,r,o)):gb(e,3,function(e,t,n){var r=_m(15);return yb(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void gb(e,5,function(e,t,n,r){var o=_m(9);return yb(o,e,t),Yg(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void gb(e,4,function(e,t,n){var r=_m(8+2*n.length);return yb(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}gb(e,1,yb(null,n,r))}function bb(e,t,n,r,o){var i=16+qv(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)gb(e,6,function(e,t,n,r,o){var i=ny(t,n,o),s=function(e){if(null==e){var t=_m(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return yg("number"==typeof e?e:0)}(e.v),a=_m(6);a.write_shift(2,33),a.write_shift(4,0);for(var l=_m(e.bf.length),u=0;u<e.bf.length;++u)l[u]=e.bf[u];return oh([i,s,a,l])}(t,n,r,0,i));else switch(t.t){case"d":case"n":gb(e,515,function(e,t,n,r){var o=_m(14);return ny(e,t,r,o),yg(n,o),o}(n,r,"d"==t.t?lf(gf(t.v)):t.v,i));break;case"b":case"e":gb(e,517,function(e,t,n,r,o,i){var s=_m(8);return ny(e,t,r,s),Yg(n,i,s),s}(n,r,t.v,i,0,t.t));break;case"s":case"str":o.bookSST?gb(e,253,function(e,t,n,r){var o=_m(10);return ny(e,t,r,o),o.write_shift(4,n),o}(n,r,jv(o.Strings,t.v,o.revStrings),i)):gb(e,516,function(e,t,n,r,o){var i=!o||8==o.biff,s=_m(+i+8+(1+i)*n.length);return ny(e,t,r,s),s.write_shift(2,n.length),i&&s.write_shift(1,1),s.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),s}(n,r,(t.v||"").slice(0,255),i,o));break;default:gb(e,513,ny(n,r,i))}else gb(e,513,ny(n,r,i))}function Cb(e,t,n){var r,o=Vm(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=(n||{}).Workbook||{},l=(a.Sheets||[])[e]||{},u=Array.isArray(s),c=8==t.biff,p="",d=[],h=zm(s["!ref"]||"A1"),f=c?65536:16384;if(h.e.c>255||h.e.r>=f){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,f-1)}gb(o,2057,sy(0,16,t)),gb(o,13,Jg(1)),gb(o,12,Jg(100)),gb(o,15,$g(!0)),gb(o,17,$g(!1)),gb(o,16,yg(.001)),gb(o,95,$g(!0)),gb(o,42,$g(!1)),gb(o,43,$g(!1)),gb(o,130,Jg(1)),gb(o,128,function(e){var t=_m(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}([0,0])),gb(o,131,$g(!1)),gb(o,132,$g(!1)),c&&function(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&gb(e,125,function(e,t){var n=_m(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(Fv(r,t),r))}))}}(o,s["!cols"]),gb(o,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=_m(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(h,t)),c&&(s["!links"]=[]);for(var m=h.s.r;m<=h.e.r;++m){p=Mm(m);for(var g=h.s.c;g<=h.e.c;++g){m===h.s.r&&(d[g]=jm(g)),r=d[g]+p;var y=u?(s[m]||[])[g]:s[r];y&&(bb(o,y,m,g,t),c&&y.l&&s["!links"].push([r,y.l]))}}var v=l.CodeName||l.name||i;return c&&gb(o,574,function(e){var t=_m(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((a.Views||[])[0])),c&&(s["!merges"]||[]).length&&gb(o,229,function(e){var t=_m(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)iy(e[n],t);return t}(s["!merges"])),c&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];gb(e,440,cy(r)),r[1].Tooltip&&gb(e,2048,py(r))}delete t["!links"]}(o,s),gb(o,442,Zg(v)),c&&function(e,t){var n=_m(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),gb(e,2151,n),(n=_m(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),iy(zm(t["!ref"]||"A1"),n),n.write_shift(4,4),gb(e,2152,n)}(o,s),gb(o,10),o.end()}function wb(e,t,n){var r=Vm(),o=(e||{}).Workbook||{},i=o.Sheets||[],s=o.WBProps||{},a=8==n.biff,l=5==n.biff;gb(r,2057,sy(0,5,n)),"xla"==n.bookType&&gb(r,135),gb(r,225,a?Jg(1200):null),gb(r,193,function(e,t){t||(t=_m(2));for(var n=0;n<2;++n)t.write_shift(1,0);return t}()),l&&gb(r,191),l&&gb(r,192),gb(r,226),gb(r,92,function(e,t){var n=!t||8==t.biff,r=_m(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),gb(r,66,Jg(a?1200:1252)),a&&gb(r,353,Jg(0)),a&&gb(r,448),gb(r,317,function(e){for(var t=_m(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),a&&e.vbaraw&&gb(r,211),a&&e.vbaraw&&gb(r,442,Zg(s.CodeName||"ThisWorkbook")),gb(r,156,Jg(17)),gb(r,25,$g(!1)),gb(r,18,$g(!1)),gb(r,19,Jg(0)),a&&gb(r,431,$g(!1)),a&&gb(r,444,Jg(0)),gb(r,61,function(){var e=_m(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}()),gb(r,64,$g(!1)),gb(r,141,Jg(0)),gb(r,34,$g("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&function(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(e.Workbook.WBProps.date1904)?"true":"false"}(e))),gb(r,14,$g(!0)),a&&gb(r,439,$g(!1)),gb(r,218,Jg(0)),function(e,t,n){gb(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,o=_m(r?15+n.length:16+2*n.length);return o.write_shift(2,20*(e.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}(r,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var o=r[0];o<=r[1];++o)null!=t[o]&&gb(e,1054,ly(o,t[o],n))}))}(r,e.SSF,n),function(e,t){for(var n=0;n<16;++n)gb(e,224,uy({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){gb(e,224,uy(n,0,t))}))}(r,n),a&&gb(r,352,$g(!1));var u=r.end(),c=Vm();a&&gb(c,140,function(e){return e||(e=_m(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),a&&n.Strings&&function(e,t,n,r){var o=(n||[]).length||0;if(o<=8224)return gb(e,252,n,o);if(!isNaN(252)){for(var i=n.parts||[],s=0,a=0,l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,252),u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l;a<o;){for((u=e.next(4)).write_shift(2,60),l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l}}}(c,0,function(e,t){var n=_m(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],o=0;o<e.length;++o)r[o]=Xg(e[o]);var i=oh([n].concat(r));return i.parts=[n.length].concat(r.map((function(e){return e.length}))),i}(n.Strings)),gb(c,10);var p=c.end(),d=Vm(),h=0,f=0;for(f=0;f<e.SheetNames.length;++f)h+=(a?12:11)+(a?2:1)*e.SheetNames[f].length;var m=u.length+h+p.length;for(f=0;f<e.SheetNames.length;++f)gb(d,133,ay({pos:m,hs:(i[f]||{}).Hidden||0,dt:0,name:e.SheetNames[f]},n)),m+=t[f].length;var g=d.end();if(h!=g.length)throw new Error("BS8 "+h+" != "+g.length);var y=[];return u.length&&y.push(u),g.length&&y.push(g),p.length&&y.push(p),oh(y)}function xb(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r["!ref"]&&qm(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}var o=t||{};switch(o.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),n.revssf=sf(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Yb(n),n.cellXfs=[],qv(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)r[r.length]=Cb(o,n,e);return r.unshift(wb(e,r,n)),oh(r)}(e,t);case 4:case 3:case 2:return function(e,t){var n=t||{};null!=$d&&null==n.dense&&(n.dense=$d);for(var r=Vm(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return gb(r,4==n.biff?1033:3==n.biff?521:9,sy(0,16,n)),function(e,t,n,r){var o,i=Array.isArray(t),s=zm(t["!ref"]||"A1"),a="",l=[];if(s.e.c>255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Hm(s)}for(var u=s.s.r;u<=s.e.r;++u){a=Mm(u);for(var c=s.s.c;c<=s.e.c;++c){u===s.s.r&&(l[c]=jm(c)),o=l[c]+a;var p=i?(t[u]||[])[c]:t[o];p&&vb(e,p,u,c)}}}(r,e.Sheets[e.SheetNames[o]],0,n),gb(r,10),r.end()}(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function Eb(e,t,n,r){for(var o=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var a=0,l=0,u=0;u<o.length;++u)if(!(o[u].s.r>n||o[u].s.c>s||o[u].e.r<n||o[u].e.c<s)){if(o[u].s.r<n||o[u].s.c<s){a=-1;break}a=o[u].e.r-o[u].s.r+1,l=o[u].e.c-o[u].s.c+1;break}if(!(a<0)){var c=Bm({r:n,c:s}),p=r.dense?(e[n]||[])[s]:e[c],d=p&&null!=p.v&&(p.h||((p.w||(Qm(p),p.w)||"")+"").replace(Tf,(function(e){return Of[e]})).replace(/\n/g,"<br/>").replace(If,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})))||"",h={};a>1&&(h.rowspan=a),l>1&&(h.colspan=l),r.editable?d='<span contenteditable="true">'+d+"</span>":p&&(h["data-t"]=p&&p.t||"z",null!=p.v&&(h["data-v"]=p.v),null!=p.z&&(h["data-z"]=p.z),p.l&&"#"!=(p.l.Target||"#").charAt(0)&&(d='<a href="'+p.l.Target+'">'+d+"</a>")),h.id=(r.id||"sjs")+"-"+c,i.push(Hf("td",d,h))}}return"<tr>"+i.join("")+"</tr>"}var Pb='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Sb="</body></html>";function Ob(e,t){var n=t||{},r=null!=n.header?n.header:Pb,o=null!=n.footer?n.footer:Sb,i=[r],s=qm(e["!ref"]);n.dense=Array.isArray(e),i.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var a=s.s.r;a<=s.e.r;++a)i.push(Eb(e,s,a,n));return i.push("</table>"+o),i.join("")}function Tb(e,t,n){var r=n||{};null!=$d&&(r.dense=$d);var o=0,i=0;if(null!=r.origin)if("number"==typeof r.origin)o=r.origin;else{var s="string"==typeof r.origin?Fm(r.origin):r.origin;o=s.r,i=s.c}var a=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,a.length),u={s:{r:0,c:0},e:{r:o,c:i}};if(e["!ref"]){var c=qm(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==o&&(u.e.r=o=c.e.r+1)}var p=[],d=0,h=e["!rows"]||(e["!rows"]=[]),f=0,m=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);f<a.length&&m<l;++f){var C=a[f];if(Vb(C)){if(r.display)continue;h[m]={hidden:!0}}var w=C.children;for(g=y=0;g<w.length;++g){var x=w[g];if(!r.display||!Vb(x)){var E=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):jf(x.innerHTML),P=x.getAttribute("data-z")||x.getAttribute("z");for(d=0;d<p.length;++d){var S=p[d];S.s.c==y+i&&S.s.r<m+o&&m+o<=S.e.r&&(y=S.e.c+1-i,d=-1)}b=+x.getAttribute("colspan")||1,((v=+x.getAttribute("rowspan")||1)>1||b>1)&&p.push({s:{r:m+o,c:y+i},e:{r:m+o+(v||1)-1,c:y+i+(b||1)-1}});var O={t:"s",v:E},T=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=E&&(0==E.length?O.t=T||"z":r.raw||0==E.trim().length||"s"==T||("TRUE"===E?O={t:"b",v:!0}:"FALSE"===E?O={t:"b",v:!1}:isNaN(Cf(E))?isNaN(xf(E).getDate())||(O={t:"d",v:gf(E)},r.cellDates||(O={t:"n",v:lf(O.v)}),O.z=r.dateNF||gh[14]):O={t:"n",v:Cf(E)})),void 0===O.z&&null!=P&&(O.z=P);var _="",V=x.getElementsByTagName("A");if(V&&V.length)for(var R=0;R<V.length&&(!V[R].hasAttribute("href")||"#"==(_=V[R].getAttribute("href")).charAt(0));++R);_&&"#"!=_.charAt(0)&&(O.l={Target:_}),r.dense?(e[m+o]||(e[m+o]=[]),e[m+o][y+i]=O):e[Bm({c:y+i,r:m+o})]=O,u.e.c<y+i&&(u.e.c=y+i),y+=b}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),u.e.r=Math.max(u.e.r,m-1+o),e["!ref"]=Hm(u),m>=l&&(e["!fullref"]=Hm((u.e.r=a.length-f+m-1+o,u))),e}function _b(e,t){return Tb((t||{}).dense?[]:{},e,t)}function Vb(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var Rb=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+qf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Sf+t}}(),Ib=function(){var e=" <table:table-cell />\n",t=function(t,n,r){var o=[];o.push(' <table:table table:name="'+Vf(n.SheetNames[r])+'" table:style-name="ta1">\n');var i=0,s=0,a=qm(t["!ref"]||"A1"),l=t["!merges"]||[],u=0,c=Array.isArray(t);if(t["!cols"])for(s=0;s<=a.e.c;++s)o.push(" <table:table-column"+(t["!cols"][s]?' table:style-name="co'+t["!cols"][s].ods+'"':"")+"></table:table-column>\n");var p,d="",h=t["!rows"]||[];for(i=0;i<a.s.r;++i)d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push(" <table:table-row"+d+"></table:table-row>\n");for(;i<=a.e.r;++i){for(d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push(" <table:table-row"+d+">\n"),s=0;s<a.s.c;++s)o.push(e);for(;s<=a.e.c;++s){var f=!1,m={},g="";for(u=0;u!=l.length;++u)if(!(l[u].s.c>s||l[u].s.r>i||l[u].e.c<s||l[u].e.r<i)){l[u].s.c==s&&l[u].s.r==i||(f=!0),m["table:number-columns-spanned"]=l[u].e.c-l[u].s.c+1,m["table:number-rows-spanned"]=l[u].e.r-l[u].s.r+1;break}if(f)o.push(" <table:covered-table-cell/>\n");else{var y=Bm({r:i,c:s}),v=c?(t[i]||[])[s]:t[y];if(v&&v.f&&(m["table:formula"]=Vf(Mv(v.f)),v.F&&v.F.slice(0,y.length)==y)){var b=qm(v.F);m["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,m["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":g=v.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=v.v?"true":"false";break;case"n":g=v.w||String(v.v||0),m["office:value-type"]="float",m["office:value"]=v.v||0;break;case"s":case"str":g=null==v.v?"":v.v,m["office:value-type"]="string";break;case"d":g=v.w||gf(v.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=gf(v.v).toISOString(),m["table:style-name"]="ce1";break;default:o.push(e);continue}var C=Vf(g).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var w=v.l.Target;"#"==(w="#"==w.charAt(0)?"#"+(p=w.slice(1),p.replace(/\./,"!")):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),C=Hf("text:a",C,{"xlink:href":w.replace(/&/g,"&")})}o.push(" "+Hf("table:table-cell",Hf("text:p",C,{}),m)+"\n")}else o.push(e)}}o.push(" </table:table-row>\n")}return o.push(" </table:table>\n"),o.join("")};return function(e,n){var r=[Sf],o=qf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=qf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+o+i+">\n"),r.push(Ag().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;Vy(o),o.ods=n;var i=t["!cols"][r].wpx+"px";e.push(' <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push(" </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push(' <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push(" </style:style>\n"),++r}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push(" <office:body>\n"),r.push(" <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)r.push(t(e.Sheets[e.SheetNames[s]],e,s));return r.push(" </office:spreadsheet>\n"),r.push(" </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function kb(e,t){if("fods"==t.bookType)return Ib(e,t);var n=Pf(),r="",o=[],i=[];return Ef(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Ef(n,r="content.xml",Ib(e,t)),o.push([r,"text/xml"]),i.push([r,"ContentFile"]),Ef(n,r="styles.xml",Rb(e,t)),o.push([r,"text/xml"]),i.push([r,"StylesFile"]),Ef(n,r="meta.xml",Sf+Ag()),o.push([r,"text/xml"]),i.push([r,"MetadataFile"]),Ef(n,r="manifest.rdf",function(e){var t=[Sf];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(kg(e[n][0],e[n][1])),t.push([' <rdf:Description rdf:about="">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e[n][0]+'"/>\n'," </rdf:Description>\n"].join(""));return t.push(kg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(i)),o.push([r,"application/rdf+xml"]),Ef(n,r="META-INF/manifest.xml",function(e){var t=[Sf];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push(' <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function Ab(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Db(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):th(Lf(e))}function Nb(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Mb(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Lb(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function jb(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Fb(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],i=Mb(e,n),s=7&i,a=0;if(0==(i=Math.floor(i/8)))break;switch(s){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:a=4,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 1:a=8,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 2:a=Mb(e,n),r=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(o))}var u={data:r,type:s};null==t[i]?t[i]=[u]:t[i].push(u)}return t}function Bb(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(Lb(8*n+e.type)),2==e.type&&t.push(Lb(e.data.length)),t.push(e.data))}))})),Nb(t)}function qb(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Mb(e,r),i=Fb(e.slice(r[0],r[0]+o));r[0]+=o;var s={id:jb(i[1][0].data),messages:[]};i[2].forEach((function(t){var n=Fb(t.data),o=jb(n[3][0].data);s.messages.push({meta:n,data:e.slice(r[0],r[0]+o)}),r[0]+=o})),(null==(t=i[3])?void 0:t[0])&&(s.merge=jb(i[3][0].data)>>>0>0),n.push(s)}return n}function Hb(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:Lb(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:Lb(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:Lb(e.data.length)}],n[2].push({data:Bb(e.meta),type:2})}));var o=Bb(n);t.push(Lb(o.length)),t.push(o),r.forEach((function(e){return t.push(e)}))})),Nb(t)}function zb(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Mb(t,n),o=[];n[0]<t.length;){var i=3&t[n[0]];if(0!=i){var s=0,a=0;if(1==i?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==i?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[Nb(o)],0==s)throw new Error("Invalid offset 0");if(s>o[0].length)throw new Error("Invalid offset beyond length");if(a>=s)for(o.push(o[0].slice(-s)),a-=s;a>=o[o.length-1].length;)o.push(o[o.length-1]),a-=o[o.length-1].length;o.push(o[0].slice(-s,-s+a))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}o.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=Nb(o);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function Qb(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(zb(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Nb(t)}function Ub(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var i=Lb(r),s=i.length;t.push(i),r<=60?(s++,t.push(new Uint8Array([r-1<<2]))):r<=256?(s+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(s+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,o[0]=0,o[1]=255&s,o[2]=s>>8&255,o[3]=s>>16&255,n+=r}return Nb(t)}function Wb(e,t){var n=new Uint8Array(32),r=Ab(n),o=12,i=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),i|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),i|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,i,!0),n.slice(0,o)}function $b(e,t){var n=new Uint8Array(32),r=Ab(n),o=12,i=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),i|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),i|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,i,!0),n.slice(0,o)}function Gb(e){return Mb(Fb(e)[1][0].data)}function Jb(e,t,n){var r,o,i,s;if(!(null==(r=e[6])?void 0:r[0])||!(null==(o=e[7])?void 0:o[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(i=e[8])?void 0:i[0])?void 0:s.data)&&jb(e[8][0].data)>0)throw"Math only works with normal offsets";for(var a=0,l=Ab(e[7][0].data),u=0,c=[],p=Ab(e[4][0].data),d=0,h=[],f=0;f<t.length;++f)if(null!=t[f]){var m,g;switch(l.setUint16(2*f,u,!0),p.setUint16(2*f,d,!0),typeof t[f]){case"string":m=Wb({t:"s",v:t[f]},n),g=$b({t:"s",v:t[f]},n);break;case"number":m=Wb({t:"n",v:t[f]},n),g=$b({t:"n",v:t[f]},n);break;case"boolean":m=Wb({t:"b",v:t[f]},n),g=$b({t:"b",v:t[f]},n);break;default:throw new Error("Unsupported value "+t[f])}c.push(m),u+=m.length,h.push(g),d+=g.length,++a}else l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535);for(e[2][0].data=Lb(a);f<e[7][0].data.length/2;++f)l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535,!0);return e[6][0].data=Nb(c),e[3][0].data=Nb(h),a}function Yb(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Kb(e,t){return"ods"==t.bookType?kb(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=qm(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Hm(r)));var i=rC(n,{range:r,header:1}),s=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&s.push(e)}))}));var a={},l=[],u=Xh.read(t.numbers,{type:"base64"});u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&qb(Qb(t.content)).forEach((function(e){l.push(e.id),a[e.id]={deps:[],location:n,type:jb(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var c=l.filter((function(e){return e>1})).map((function(e){return[e,Lb(e)]}));u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&qb(Qb(t.content)).forEach((function(e){e.messages.forEach((function(t){c.forEach((function(t){e.messages.some((function(e){return 11006!=jb(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])}))&&a[t[0]].deps.push(e.id)}))}))}))}));for(var p,d=Xh.find(u,a[1].location),h=qb(Qb(d.content)),f=0;f<h.length;++f){var m=h[f];1==m.id&&(p=m)}var g=Gb(Fb(p.messages[0].data)[1][0].data);for(h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Gb(Fb(p.messages[0].data)[2][0].data),h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Gb(Fb(p.messages[0].data)[2][0].data),h=qb(Qb((d=Xh.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);var y=Fb(p.messages[0].data);y[6][0].data=Lb(r.e.r+1),y[7][0].data=Lb(r.e.c+1);for(var v=Gb(y[46][0].data),b=Xh.find(u,a[v].location),C=qb(Qb(b.content)),w=0;w<C.length&&C[w].id!=v;++w);if(C[w].id!=v)throw"Bad ColumnRowUIDMapArchive";var x=Fb(C[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var E=0;E<=r.e.c;++E){var P=[];P[1]=P[2]=[{type:0,data:Lb(E+420690)}],x[1].push({type:2,data:Bb(P)}),x[2].push({type:0,data:Lb(E)}),x[3].push({type:0,data:Lb(E)})}x[4]=[],x[5]=[],x[6]=[];for(var S=0;S<=r.e.r;++S)(P=[])[1]=P[2]=[{type:0,data:Lb(S+726270)}],x[4].push({type:2,data:Bb(P)}),x[5].push({type:0,data:Lb(S)}),x[6].push({type:0,data:Lb(S)});C[w].messages[0].data=Bb(x),b.content=Ub(Hb(C)),b.size=b.content.length,delete y[46];var O=Fb(y[4][0].data);O[7][0].data=Lb(r.e.r+1);var T=Gb(Fb(O[1][0].data)[2][0].data);if((C=qb(Qb((b=Xh.find(u,a[T].location)).content)))[0].id!=T)throw"Bad HeaderStorageBucket";var _=Fb(C[0].messages[0].data);for(S=0;S<i.length;++S){var V=Fb(_[2][0].data);V[1][0].data=Lb(S),V[4][0].data=Lb(i[S].length),_[2][S]={type:_[2][0].type,data:Bb(V)}}C[0].messages[0].data=Bb(_),b.content=Ub(Hb(C)),b.size=b.content.length;var R=Gb(O[2][0].data);if((C=qb(Qb((b=Xh.find(u,a[R].location)).content)))[0].id!=R)throw"Bad HeaderStorageBucket";for(_=Fb(C[0].messages[0].data),E=0;E<=r.e.c;++E)(V=Fb(_[2][0].data))[1][0].data=Lb(E),V[4][0].data=Lb(r.e.r+1),_[2][E]={type:_[2][0].type,data:Bb(V)};C[0].messages[0].data=Bb(_),b.content=Ub(Hb(C)),b.size=b.content.length;var I=Gb(O[4][0].data);!function(){for(var e,t=Xh.find(u,a[I].location),n=qb(Qb(t.content)),r=0;r<n.length;++r){var o=n[r];o.id==I&&(e=o)}var i=Fb(e.messages[0].data);i[3]=[];var l=[];s.forEach((function(e,t){l[1]=[{type:0,data:Lb(t)}],l[2]=[{type:0,data:Lb(1)}],l[3]=[{type:2,data:Db(e)}],i[3].push({type:2,data:Bb(l)})})),e.messages[0].data=Bb(i);var c=Ub(Hb(n));t.content=c,t.size=t.content.length}();var k=Fb(O[3][0].data),A=k[1][0];delete k[2];var D=Fb(A.data),N=Gb(D[2][0].data);!function(){for(var e,t=Xh.find(u,a[N].location),n=qb(Qb(t.content)),o=0;o<n.length;++o){var l=n[o];l.id==N&&(e=l)}var c=Fb(e.messages[0].data);delete c[6],delete k[7];var p=new Uint8Array(c[5][0].data);c[5]=[];for(var d=0,h=0;h<=r.e.r;++h){var f=Fb(p);d+=Jb(f,i[h],s),f[1][0].data=Lb(h),c[5].push({data:Bb(f),type:2})}c[1]=[{type:0,data:Lb(r.e.c+1)}],c[2]=[{type:0,data:Lb(r.e.r+1)}],c[3]=[{type:0,data:Lb(d)}],c[4]=[{type:0,data:Lb(r.e.r+1)}],e.messages[0].data=Bb(c);var m=Ub(Hb(n));t.content=m,t.size=t.content.length}(),A.data=Bb(D),O[3][0].data=Bb(k),y[4][0].data=Bb(O),p.messages[0].data=Bb(y);var M=Ub(Hb(h));return d.content=M,d.size=d.content.length,u}(e,t):"xlsb"==t.bookType?function(e,t){Wy=1024,e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Lv?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=Xy.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Yb(t=t||{});var i=Pf(),s="",a=0;if(t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Ef(i,s="docProps/core.xml",Mg(e.Props,t)),o.coreprops.push(s),Ig(t.rels,2,s,_g.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,Ef(i,s,Fg(e.Props)),o.extprops.push(s),Ig(t.rels,3,s,_g.EXT_PROPS),e.Custprops!==e.Props&&nf(e.Custprops||{}).length>0&&(Ef(i,s="docProps/custom.xml",Bg(e.Custprops)),o.custprops.push(s),Ig(t.rels,4,s,_g.CUST_PROPS)),a=1;a<=e.SheetNames.length;++a){var c={"!id":{}},p=e.Sheets[e.SheetNames[a-1]];if((p||{})["!type"],Ef(i,s="xl/worksheets/sheet"+a+"."+n,ab(a-1,s,t,e,c)),o.sheets.push(s),Ig(t.wbrels,-1,"worksheets/sheet"+a+"."+n,_g.WS[0]),p){var d=p["!comments"],h=!1,f="";d&&d.length>0&&(Ef(i,f="xl/comments"+a+"."+n,lb(d,f,t)),o.comments.push(f),Ig(c,-1,"../comments"+a+"."+n,_g.CMNT),h=!0),p["!legacy"]&&h&&Ef(i,"xl/drawings/vmlDrawing"+a+".vml",$y(a,p["!comments"])),delete p["!comments"],delete p["!legacy"]}c["!id"].rId1&&Ef(i,Vg(s),Rg(c))}return null!=t.Strings&&t.Strings.length>0&&(Ef(i,s="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?wy:by)(e,n)}(t.Strings,s,t)),o.strs.push(s),Ig(t.wbrels,-1,"sharedStrings."+n,_g.SST)),Ef(i,s="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?sb:ob)(e,n)}(e,s,t)),o.workbooks.push(s),Ig(t.rels,1,s,_g.WB),Ef(i,s="xl/theme/theme1.xml",zy(e.Themes,t)),o.themes.push(s),Ig(t.wbrels,-1,"theme/theme1.xml",_g.THEME),Ef(i,s="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?Hy:Ay)(e,n)}(e,s,t)),o.styles.push(s),Ig(t.wbrels,-1,"styles."+n,_g.STY),e.vbaraw&&r&&(Ef(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),Ig(t.wbrels,-1,"vbaProject.bin",_g.VBA)),Ef(i,s="xl/metadata."+n,(".bin"===s.slice(-4)?Qy:Uy)()),o.metadata.push(s),Ig(t.wbrels,-1,"metadata."+n,_g.XLMETA),Ef(i,"[Content_Types].xml",Tg(o,t)),Ef(i,"_rels/.rels",Rg(t.rels)),Ef(i,"xl/_rels/workbook."+n+".rels",Rg(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):function(e,t){Wy=1024,e&&!e.SSF&&(e.SSF=vf(gh)),e&&e.SSF&&(Jh(),Gh(e.SSF),t.revssf=sf(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Lv?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=Xy.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Yb(t=t||{});var i=Pf(),s="",a=0;if(t.cellXfs=[],qv(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Ef(i,s="docProps/core.xml",Mg(e.Props,t)),o.coreprops.push(s),Ig(t.rels,2,s,_g.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Ef(i,s,Fg(e.Props)),o.extprops.push(s),Ig(t.rels,3,s,_g.EXT_PROPS),e.Custprops!==e.Props&&nf(e.Custprops||{}).length>0&&(Ef(i,s="docProps/custom.xml",Bg(e.Custprops)),o.custprops.push(s),Ig(t.rels,4,s,_g.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,a=1;a<=e.SheetNames.length;++a){var p={"!id":{}},d=e.Sheets[e.SheetNames[a-1]];if((d||{})["!type"],Ef(i,s="xl/worksheets/sheet"+a+"."+n,Wv(a-1,t,e,p)),o.sheets.push(s),Ig(t.wbrels,-1,"worksheets/sheet"+a+"."+n,_g.WS[0]),d){var h=d["!comments"],f=!1,m="";if(h&&h.length>0){var g=!1;h.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(Ef(i,m="xl/threadedComments/threadedComment"+a+"."+n,Jy(h,c,t)),o.threadedcomments.push(m),Ig(p,-1,"../threadedComments/threadedComment"+a+"."+n,_g.TCMNT)),Ef(i,m="xl/comments"+a+"."+n,Gy(h)),o.comments.push(m),Ig(p,-1,"../comments"+a+"."+n,_g.CMNT),f=!0}d["!legacy"]&&f&&Ef(i,"xl/drawings/vmlDrawing"+a+".vml",$y(a,d["!comments"])),delete d["!comments"],delete d["!legacy"]}p["!id"].rId1&&Ef(i,Vg(s),Rg(p))}return null!=t.Strings&&t.Strings.length>0&&(Ef(i,s="xl/sharedStrings."+n,by(t.Strings,t)),o.strs.push(s),Ig(t.wbrels,-1,"sharedStrings."+n,_g.SST)),Ef(i,s="xl/workbook."+n,ob(e)),o.workbooks.push(s),Ig(t.rels,1,s,_g.WB),Ef(i,s="xl/theme/theme1.xml",zy(e.Themes,t)),o.themes.push(s),Ig(t.wbrels,-1,"theme/theme1.xml",_g.THEME),Ef(i,s="xl/styles."+n,Ay(e,t)),o.styles.push(s),Ig(t.wbrels,-1,"styles."+n,_g.STY),e.vbaraw&&r&&(Ef(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),Ig(t.wbrels,-1,"vbaProject.bin",_g.VBA)),Ef(i,s="xl/metadata."+n,Uy()),o.metadata.push(s),Ig(t.wbrels,-1,"metadata."+n,_g.XLMETA),c.length>1&&(Ef(i,s="xl/persons/person.xml",function(e){var t=[Sf,Hf("personList",null,{xmlns:Qf.TCMNT,"xmlns:x":Uf[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Hf("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(c)),o.people.push(s),Ig(t.wbrels,-1,"persons/person.xml",_g.PEOPLE)),Ef(i,"[Content_Types].xml",Tg(o,t)),Ef(i,"_rels/.rels",Rg(t.rels)),Ef(i,"xl/_rels/workbook.xml.rels",Rg(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t)}function Xb(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return tf(t.file,Xh.write(e,{type:Kd?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Xh.write(e,t)}function Zb(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return Jd(Lf(r));case"binary":return Lf(r);case"string":return e;case"file":return tf(t.file,r,"utf8");case"buffer":return Kd?Xd(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):Zb(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function eC(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?Jd(n):"string"==t.type?Mf(n):n;case"file":return tf(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function tC(e,t){zd(1200),Hd(1252),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,n){e.forEach((function(r,o){rb(r);for(var i=0;i<o;++i)if(r==e[i])throw new Error("Duplicate Sheet Name: "+r);if(n){var s=t&&t[o]&&t[o].CodeName||r;if(95==s.charCodeAt(0)&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}}))}(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)Hv(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}(e);var n=vf(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=tC(e,n);return n.type="array",nh(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Zb(hb(e,n),n);case"slk":case"sylk":return Zb(hy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return Zb(Ob(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return Jd(e);case"binary":case"string":return e;case"file":return tf(t.file,e,"binary");case"buffer":return Kd?Xd(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(aC(e.Sheets[e.SheetNames[o]],n),n);case"csv":return Zb(sC(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return Zb(fy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return eC(dy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return Zb(gy.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return Zb(Ey.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return Zb(my.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return Zb(kb(e,n),n);case"wk1":return eC(yy.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return eC(yy.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),eC(xb(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return Xb(function(e,t){var n=t||{},r=Xh.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Xh.utils.cfb_add(r,o,xb(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],i=[],s=0,a=rf(Cg,"n"),l=rf(wg,"n");if(e.Props)for(n=nf(e.Props),s=0;s<n.length;++s)(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Props[n[s]]]);if(e.Custprops)for(n=nf(e.Custprops),s=0;s<n.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},n[s])||(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Custprops[n[s]]]);var u=[];for(s=0;s<i.length;++s)zg.indexOf(i[s][0])>-1||jg.indexOf(i[s][0])>-1||null!=i[s][1]&&u.push(i[s]);o.length&&Xh.utils.cfb_add(t,"/SummaryInformation",Wg(o,fb.SI,l,wg)),(r.length||u.length)&&Xh.utils.cfb_add(t,"/DocumentSummaryInformation",Wg(r,fb.DSI,a,Cg,u.length?u:null,fb.UDI))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var o=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&Xh.utils.cfb_add(e,o,t.FileIndex[r].content)}}))}(r,Xh.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=vf(t||{});return function(e,t){var n={},r=Kd?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?Xh.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(nh(o))}return t.password&&"undefined"!=typeof encrypt_agile?Xb(encrypt_agile(o,t.password),t):"file"===t.type?tf(t.file,o):"string"==t.type?Mf(o):o}(Kb(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function nC(e,t,n,r,o,i,s,a){var l=Mm(n),u=a.defval,c=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),p=!0,d=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(e){d.__rowNum__=n}else d.__rowNum__=n;if(!s||e[n])for(var h=t.s.c;h<=t.e.c;++h){var f=s?e[n][h]:e[r[h]+l];if(void 0!==f&&void 0!==f.t){var m=f.v;switch(f.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+f.t)}if(null!=i[h]){if(null==m)if("e"==f.t&&null===m)d[i[h]]=null;else if(void 0!==u)d[i[h]]=u;else{if(!c||null!==m)continue;d[i[h]]=null}else d[i[h]]=c&&("n"!==f.t||"n"===f.t&&!1!==a.rawNumbers)?m:Qm(f,m,a);null!=m&&(p=!1)}}else{if(void 0===u)continue;null!=i[h]&&(d[i[h]]=u)}}return{row:d,isempty:p}}function rC(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,o=1,i=[],s=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=zm(c);break;case"number":(l=zm(e["!ref"])).s.r=c;break;default:l=c}r>0&&(o=0);var p=Mm(l.s.r),d=[],h=[],f=0,m=0,g=Array.isArray(e),y=l.s.r,v=0,b={};g&&!e[y]&&(e[y]=[]);var C=u.skipHidden&&e["!cols"]||[],w=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(C[v]||{}).hidden)switch(d[v]=jm(v),n=g?e[y][v]:e[d[v]+p],r){case 1:i[v]=v-l.s.c;break;case 2:i[v]=d[v];break;case 3:i[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),a=s=Qm(n,null,u),m=b[s]||0){do{a=s+"_"+m++}while(b[a]);b[s]=m,b[a]=1}else b[s]=1;i[v]=a}for(y=l.s.r+o;y<=l.e.r;++y)if(!(w[y]||{}).hidden){var x=nC(e,l,y,d,r,i,g,u);(!1===x.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(h[f++]=x.row)}return h.length=f,h}var oC=/"/g;function iC(e,t,n,r,o,i,s,a){for(var l=!0,u=[],c="",p=Mm(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var h=a.dense?(e[n]||[])[d]:e[r[d]+p];if(null==h)c="";else if(null!=h.v){l=!1,c=""+(a.rawNumbers&&"n"==h.t?h.v:Qm(h,null,a));for(var f=0,m=0;f!==c.length;++f)if((m=c.charCodeAt(f))===o||m===i||34===m||a.forceQuotes){c='"'+c.replace(oC,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==h.f||h.F?c="":(l=!1,(c="="+h.f).indexOf(",")>=0&&(c='"'+c.replace(oC,'""')+'"'));u.push(c)}return!1===a.blankrows&&l?null:u.join(s)}function sC(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=zm(e["!ref"]),i=void 0!==r.FS?r.FS:",",s=i.charCodeAt(0),a=void 0!==r.RS?r.RS:"\n",l=a.charCodeAt(0),u=new RegExp(("|"==i?"\\|":i)+"+$"),c="",p=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],h=r.skipHidden&&e["!rows"]||[],f=o.s.c;f<=o.e.c;++f)(d[f]||{}).hidden||(p[f]=jm(f));for(var m=0,g=o.s.r;g<=o.e.r;++g)(h[g]||{}).hidden||null!=(c=iC(e,o,g,p,s,l,i,r))&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?a:"")+c));return delete r.dense,n.join("")}function aC(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=sC(e,t);if(void 0===Qd||"string"==t.type)return n;var r=Qd.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function lC(e,t,n){var r,o=n||{},i=+!o.skipHeader,s=e||{},a=0,l=0;if(s&&null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var u="string"==typeof o.origin?Fm(o.origin):o.origin;a=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:a+t.length-1+i}};if(s["!ref"]){var p=zm(s["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),-1==a&&(a=p.e.r+1,c.e.r=a+t.length-1+i)}else-1==a&&(a=0,c.e.r=t.length-1+i);var d=o.header||[],h=0;t.forEach((function(e,t){nf(e).forEach((function(n){-1==(h=d.indexOf(n))&&(d[h=d.length]=n);var u=e[n],c="z",p="",f=Bm({c:l+h,r:a+t+i});r=uC(s,f),!u||"object"!=typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",o.cellDates||(c="n",u=lf(u)),p=o.dateNF||gh[14]):null===u&&o.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,p&&(r.z=p)):s[f]=r={t:c,v:u},p&&(r.z=p)):s[f]=u}))})),c.e.c=Math.max(c.e.c,l+d.length-1);var f=Mm(a);if(i)for(h=0;h<d.length;++h)s[jm(h+l)+f]={t:"s",v:d[h]};return s["!ref"]=Hm(c),s}function uC(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=Fm(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return uC(e,Bm("number"!=typeof t?t:{r:t,c:n||0}))}function cC(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var pC={encode_col:jm,encode_row:Mm,encode_cell:Bm,encode_range:Hm,decode_col:Lm,decode_row:Nm,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Fm,decode_range:qm,format_cell:Qm,sheet_add_aoa:Wm,sheet_add_json:lC,sheet_add_dom:Tb,aoa_to_sheet:$m,json_to_sheet:function(e,t){return lC(null,e,t)},table_to_sheet:_b,table_to_book:function(e,t){return Um(_b(e,t),t)},sheet_to_csv:sC,sheet_to_txt:aC,sheet_to_json:rC,sheet_to_html:Ob,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,i=zm(e["!ref"]),s="",a=[],l=[],u=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)a[o]=jm(o);for(var c=i.s.r;c<=i.e.r;++c)for(s=Mm(c),o=i.s.c;o<=i.e.c;++o)if(n=a[o]+s,r="",void 0!==(t=u?(e[c]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l},sheet_to_row_object_array:rC,sheet_get_cell:uC,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function(e,t,n,r){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);o=i&&+i[2]||0;var s=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=s+o);++o);}if(rb(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n},book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:cC,cell_set_internal_link:function(e,t,n){return cC(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:zm(t),i="string"==typeof t?t:Hm(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=uC(e,s,a);l.t="n",l.F=i,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function dC(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}Ld.version;const hC=function(e){var n=e.data,r=e.filename,o=e.exportType,i="downloadbutton";return o===_r.CSV?i+=" downloadcsv":o===_r.EXCEL&&(i+=" downloadexcel"),t.createElement("button",{className:i,onClick:function(){var e,t,i;switch(o){case _r.EXCEL:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sheet1",n=pC.json_to_sheet(e),r=pC.book_new();pC.book_append_sheet(r,n,t);for(var o=tC(r,{bookType:"xlsx",type:"binary"}),i=new ArrayBuffer(o.length),s=new Uint8Array(i),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);return new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}(n),t="xlsx",i="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break;case _r.CSV:default:e=function(e){if(!e.length)return"";var t=Object.keys(e[0]),n=function(e,t){return e.map((function(e){return t.map((function(t){var n=e[t];return null===n?"":"string"==typeof n?'"'.concat(n.replace(/"/g,'""'),'"'):n})).join(",")}))}(e,t);return[t.join(",")].concat(Kt(n)).join("\r\n")}(n),t="csv",i="text/csv;charset=UTF-8"}var s=new Blob([e],{type:i});r=r.endsWith(t)?r:"".concat(r,".").concat(t);var a=document.createElement("a");a.href=URL.createObjectURL(s),a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a)}},o," ",t.createElement(dC,null))},fC=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function mC(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function gC(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function yC(e,t={}){return{width:t.width||function(e){const t=gC(e,"border-left-width"),n=gC(e,"border-right-width");return e.clientWidth+t+n}(e),height:t.height||function(e){const t=gC(e,"border-top-width"),n=gC(e,"border-bottom-width");return e.clientHeight+t+n}(e)}}const vC=16384;function bC(e){return new Promise(((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}const CC=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||CC(n,t))};function wC(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(""===o||"none"===o)return;const i=fC();try{t.className=`${t.className} ${i}`}catch(e){return}const s=document.createElement("style");s.appendChild(function(e,t,n){const r=`.${e}:${t}`,o=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return mC(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${o}}`)}(i,n,r)),t.appendChild(s)}const xC="application/font-woff",EC="image/jpeg",PC={woff:xC,woff2:xC,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:EC,jpeg:EC,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function SC(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return PC[t]||""}function OC(e){return-1!==e.search(/^(data:)/)}function TC(e,t){return`data:${t};base64,${e}`}async function _C(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise(((e,t)=>{const i=new FileReader;i.onerror=t,i.onloadend=()=>{try{e(n({res:r,result:i.result}))}catch(e){t(e)}},i.readAsDataURL(o)}))}const VC={};async function RC(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=VC[r])return VC[r];let o;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await _C(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));o=TC(r,t)}catch(t){o=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;t&&(r="string"==typeof t?t:t.message),r&&console.warn(r)}return VC[r]=o,o}const IC=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function kC(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>async function(e,t){return CC(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):bC(t)}(e):CC(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),bC(t.toDataURL())}const n=e.poster,r=SC(n);return bC(await RC(n,r,t))}(e,t):CC(e,HTMLIFrameElement)?async function(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await kC(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}(e):e.cloneNode(!1)}(e,t))).then((n=>async function(e,t,n){var r,o;let i=[];return i=IC(e)&&e.assignedNodes?mC(e.assignedNodes()):CC(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?mC(e.contentDocument.body.childNodes):mC((null!==(o=e.shadowRoot)&&void 0!==o?o:e).childNodes),0===i.length||CC(e,HTMLVideoElement)||await i.reduce(((e,r)=>e.then((()=>kC(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()),t}(e,n,t))).then((t=>function(e,t){return CC(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):mC(r).forEach((o=>{let i=r.getPropertyValue(o);if("font-size"===o&&i.endsWith("px")){const e=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${e}px`}CC(e,HTMLIFrameElement)&&"display"===o&&"inline"===i&&(i="block"),"d"===o&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))}))}(e,t),function(e,t){wC(e,t,":before"),wC(e,t,":after")}(e,t),function(e,t){CC(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),CC(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(CC(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}(e,t))).then((e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let o=0;o<n.length;o++){const i=n[o].getAttribute("xlink:href");if(i){const n=e.querySelector(i),o=document.querySelector(i);n||!o||r[i]||(r[i]=await kC(o,t,!0))}}const o=Object.values(r);if(o.length){const t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<o.length;e++)r.appendChild(o[e]);e.appendChild(n)}return e}(e,t))):null}const AC=/url\((['"]?)([^'"]+?)\1\)/g,DC=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,NC=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function MC(e){return-1!==e.search(AC)}async function LC(e,t,n){if(!MC(e))return e;const r=function(e,{preferredFontFormat:t}){return t?e.replace(NC,(e=>{for(;;){const[n,,r]=DC.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),o=function(e){const t=[];return e.replace(AC,((e,n,r)=>(t.push(r),e))),t.filter((e=>!OC(e)))}(r);return o.reduce(((e,r)=>e.then((e=>async function(e,t,n,r,o){try{const i=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}(t,n):t,s=SC(t);let a;return a=o?TC(await o(i),s):await RC(i,s,r),e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}(e,r,t,n)))),Promise.resolve(r))}async function jC(e,t,n){var r;const o=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(o){const r=await LC(o,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function FC(e,t){CC(e,Element)&&(await async function(e,t){await jC("background",e,t)||await jC("background-image",e,t),await jC("mask",e,t)||await jC("mask-image",e,t)}(e,t),await async function(e,t){const n=CC(e,HTMLImageElement);if((!n||OC(e.src))&&(!CC(e,SVGImageElement)||OC(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await RC(r,SC(r),t);await new Promise(((t,r)=>{e.onload=t,e.onerror=r;const i=e;i.decode&&(i.decode=t),"lazy"===i.loading&&(i.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o}))}(e,t),await async function(e,t){const n=mC(e.childNodes).map((e=>FC(e,t)));await Promise.all(n).then((()=>e))}(e,t))}const BC={};async function qC(e){let t=BC[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},BC[e]=t,t}async function HC(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map((async o=>{let i=o.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),_C(i,t.fetchRequestInit,(({result:e})=>(n=n.replace(o,`url(${e})`),[o,e])))}));return Promise.all(o).then((()=>n))}function zC(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=o.exec(n);if(null===e){if(e=i.exec(n),null===e)break;o.lastIndex=i.lastIndex}else i.lastIndex=o.lastIndex;t.push(e[0])}return t}async function QC(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await async function(e,t){const n=await async function(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=mC(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{mC(n.cssRules||[]).forEach(((e,o)=>{if(e.type===CSSRule.IMPORT_RULE){let i=o+1;const s=qC(e.href).then((e=>HC(e,t))).then((e=>zC(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?i+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(s)}}))}catch(o){const i=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(qC(n.href).then((e=>HC(e,t))).then((e=>zC(e).forEach((e=>{i.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e)}))),console.error("Error inlining remote css file",o)}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{mC(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}})),n)))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>MC(e.style.getPropertyValue("src"))))}(r)}(e,t);return(await Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return LC(e.cssText,n,t)})))).join("\n")}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function UC(e,t={}){const{width:n,height:r}=yC(e,t),o=await kC(e,t,!0);return await QC(o,t),await FC(o,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(o,t),await async function(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(e),async function(e){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}(o)}(o,n,r)}async function WC(e,t={}){const{width:n,height:r}=yC(e,t),o=await UC(e,t),i=await bC(o),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=u*l,s.height=c*l,t.skipAutoScale||function(e){(e.width>vC||e.height>vC)&&(e.width>vC&&e.height>vC?e.width>e.height?(e.height*=vC/e.width,e.width=vC):(e.width*=vC/e.height,e.height=vC):e.width>vC?(e.height*=vC/e.width,e.width=vC):(e.width*=vC/e.height,e.height=vC))}(s),s.style.width=`${u}`,s.style.height=`${c}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(i,0,0,s.width,s.height),s}async function $C(e,t={}){return(await WC(e,t)).toDataURL()}async function GC(e,t={}){return(await WC(e,t)).toDataURL("image/jpeg",t.quality||1)}const JC=function(e){var n=e.filename,r=(0,t.useContext)(zt),o=Rt((0,t.useState)(!1),2),i=o[0],s=o[1],a=(0,t.useRef)(null),l=function(){var e=Dt(Mt().mark((function e(t){var o,i,a;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==r||!r.current){e.next=25;break}s(!1),o={transform:"scale(".concat(1,")"),"transform-origin":"top left",background:"white"},e.t0=t,e.next=e.t0===Vr.JPEG?7:e.t0===Vr.SVG?11:(e.t0,Vr.PNG,15);break;case 7:return e.next=9,GC(r.current,{quality:.95,style:o});case 9:return i=e.sent,e.abrupt("break",19);case 11:return e.next=13,UC(r.current,{style:o});case 13:return i=e.sent,e.abrupt("break",19);case 15:return e.next=17,$C(r.current,{style:o});case 17:return i=e.sent,e.abrupt("break",19);case 19:(a=document.createElement("a")).href="string"==typeof i?i:URL.createObjectURL(i),a.download="".concat(n,".").concat(t),document.body.appendChild(a),a.click(),document.body.removeChild(a);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(e){a.current&&!a.current.contains(e.target)&&s(!1)};return(0,t.useEffect)((function(){return document.addEventListener("mousedown",u),function(){document.removeEventListener("mousedown",u)}}),[]),t.createElement("div",{className:"image-dropdown",ref:a},t.createElement("button",{className:"downloadbutton downloadimage",onClick:function(){s(!i)}},"IMAGE ",t.createElement(dC,null)),i&&t.createElement("div",{className:"image-options"},t.createElement("div",{className:"imageoption downloadpng",onClick:function(){return l(Vr.PNG)}},t.createElement("span",null,"PNG")),t.createElement("div",{className:"imageoption downloadjpeg",onClick:function(){return l(Vr.JPEG)}},t.createElement("span",null,"JPEG")),t.createElement("div",{className:"imageoption downloadsvg",onClick:function(){return l(Vr.SVG)}},t.createElement("span",null,"SVG"))))},YC=function(e){var n=e.data,r=e.filename;return t.createElement("div",{className:"downloadcontainer"},t.createElement(hC,{data:n,filename:"".concat(r,".csv"),exportType:_r.CSV}),t.createElement(hC,{data:n,filename:"".concat(r,".xlsx"),exportType:_r.EXCEL}),t.createElement(JC,{filename:r}))};pp.defaults.font.size=16,pp.defaults.font.family="Open Sans",pp.defaults.font.weight=700;const KC=function(e){var n=e.title,r=e.description,o=e.filter,i=e.children,s=e.category,a=e.data,l=e.filename,u=Ar(),c=window.location.origin+window.location.pathname,p=lr().trackPageView;return(0,t.useEffect)((function(){p({documentTitle:n})}),[p,n]),t.createElement(t.Fragment,null,s===Tr.Organisation&&t.createElement(Vd,null),s===Tr.Policy&&t.createElement(Ad,null),s===Tr.Network&&t.createElement(Dd,null),s===Tr.ConnectedUsers&&t.createElement(Nd,null),s===Tr.Services&&t.createElement(Md,null),t.createElement(Sr,{type:"data"}),u&&t.createElement(Tn,{className:"preview-banner"},t.createElement("span",null,"You are viewing a preview of the website which includes pre-published survey data. ",t.createElement("a",{href:c},"Click here")," to deactivate preview mode.")),t.createElement(kd,{activeCategory:s}),t.createElement(Sn,{className:"grow"},t.createElement(Tn,null,t.createElement("h3",{className:"m-1"},n)),t.createElement(Tn,null,t.createElement("p",{className:"p-md-4"},r)),t.createElement(Tn,{align:"right",style:{position:"relative"}},t.createElement(YC,{data:a,filename:l})),t.createElement(Tn,null,o),t.createElement(Tn,null,i)))};const XC=t.createContext(null);var ZC=Object.prototype.hasOwnProperty;function ew(e,t,n){for(n of e.keys())if(tw(n,t))return n}function tw(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&tw(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=ew(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=ew(t,o)))return!1;if(!tw(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(ZC.call(e,n)&&++r&&!ZC.call(t,n))return!1;if(!(n in t)||!tw(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function nw(e){return e.split("-")[0]}function rw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ow(e){return e instanceof rw(e).Element||e instanceof Element}function iw(e){return e instanceof rw(e).HTMLElement||e instanceof HTMLElement}function sw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof rw(e).ShadowRoot||e instanceof ShadowRoot)}var aw=Math.max,lw=Math.min,uw=Math.round;function cw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function pw(){return!/^((?!chrome|android).)*safari/i.test(cw())}function dw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&iw(e)&&(o=e.offsetWidth>0&&uw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&uw(r.height)/e.offsetHeight||1);var s=(ow(e)?rw(e):window).visualViewport,a=!pw()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,u=(r.top+(a&&s?s.offsetTop:0))/i,c=r.width/o,p=r.height/i;return{width:c,height:p,top:u,right:l+c,bottom:u+p,left:l,x:l,y:u}}function hw(e){var t=dw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mw(e){return e?(e.nodeName||"").toLowerCase():null}function gw(e){return rw(e).getComputedStyle(e)}function yw(e){return["table","td","th"].indexOf(mw(e))>=0}function vw(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function bw(e){return"html"===mw(e)?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||vw(e)}function Cw(e){return iw(e)&&"fixed"!==gw(e).position?e.offsetParent:null}function ww(e){for(var t=rw(e),n=Cw(e);n&&yw(n)&&"static"===gw(n).position;)n=Cw(n);return n&&("html"===mw(n)||"body"===mw(n)&&"static"===gw(n).position)?t:n||function(e){var t=/firefox/i.test(cw());if(/Trident/i.test(cw())&&iw(e)&&"fixed"===gw(e).position)return null;var n=bw(e);for(sw(n)&&(n=n.host);iw(n)&&["html","body"].indexOf(mw(n))<0;){var r=gw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function xw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ew(e,t,n){return aw(e,lw(t,n))}function Pw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Sw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ow="top",Tw="bottom",_w="right",Vw="left",Rw="auto",Iw=[Ow,Tw,_w,Vw],kw="start",Aw="end",Dw="viewport",Nw="popper",Mw=Iw.reduce((function(e,t){return e.concat([t+"-"+kw,t+"-"+Aw])}),[]),Lw=[].concat(Iw,[Rw]).reduce((function(e,t){return e.concat([t,t+"-"+kw,t+"-"+Aw])}),[]),jw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Fw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nw(n.placement),l=xw(a),u=[Vw,_w].indexOf(a)>=0?"height":"width";if(i&&s){var c=function(e,t){return Pw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Sw(e,Iw))}(o.padding,n),p=hw(i),d="y"===l?Ow:Vw,h="y"===l?Tw:_w,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=ww(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=c[d],C=y-p[u]-c[h],w=y/2-p[u]/2+v,x=Ew(b,w,C),E=l;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bw(e){return e.split("-")[1]}var qw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Vw,C=Ow,w=window;if(u){var x=ww(n),E="clientHeight",P="clientWidth";x===rw(n)&&"static"!==gw(x=vw(n)).position&&"absolute"===a&&(E="scrollHeight",P="scrollWidth"),(o===Ow||(o===Vw||o===_w)&&i===Aw)&&(C=Tw,m-=(p&&x===w&&w.visualViewport?w.visualViewport.height:x[E])-r.height,m*=l?1:-1),o!==Vw&&(o!==Ow&&o!==Tw||i!==Aw)||(b=_w,h-=(p&&x===w&&w.visualViewport?w.visualViewport.width:x[P])-r.width,h*=l?1:-1)}var S,O=Object.assign({position:a},u&&qw),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:uw(n*o)/o||0,y:uw(r*o)/o||0}}({x:h,y:m},rw(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},O,((S={})[C]=v?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},O,((t={})[C]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}const zw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,u={placement:nw(t.placement),variation:Bw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Hw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qw={passive:!0};const Uw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=rw(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qw)})),a&&l.addEventListener("resize",n.update,Qw),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qw)})),a&&l.removeEventListener("resize",n.update,Qw)}},data:{}};var Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function $w(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ww[e]}))}var Gw={start:"end",end:"start"};function Jw(e){return e.replace(/start|end/g,(function(e){return Gw[e]}))}function Yw(e){var t=rw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kw(e){return dw(vw(e)).left+Yw(e).scrollLeft}function Xw(e){var t=gw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Zw(e){return["html","body","#document"].indexOf(mw(e))>=0?e.ownerDocument.body:iw(e)&&Xw(e)?e:Zw(bw(e))}function ex(e,t){var n;void 0===t&&(t=[]);var r=Zw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=rw(r),s=o?[i].concat(i.visualViewport||[],Xw(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ex(bw(s)))}function tx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nx(e,t,n){return t===Dw?tx(function(e,t){var n=rw(e),r=vw(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=pw();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Kw(e),y:l}}(e,n)):ow(t)?function(e,t){var n=dw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tx(function(e){var t,n=vw(e),r=Yw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=aw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=aw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Kw(e),l=-r.scrollTop;return"rtl"===gw(o||n).direction&&(a+=aw(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(vw(e)))}function rx(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nw(o):null,s=o?Bw(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Ow:t={x:a,y:n.y-r.height};break;case Tw:t={x:a,y:n.y+n.height};break;case _w:t={x:n.x+n.width,y:l};break;case Vw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?xw(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case kw:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Aw:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ox(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?Dw:u,p=n.elementContext,d=void 0===p?Nw:p,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=Pw("number"!=typeof g?g:Sw(g,Iw)),v=d===Nw?"reference":Nw,b=e.rects.popper,C=e.elements[f?v:d],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=ex(bw(e)),n=["absolute","fixed"].indexOf(gw(e).position)>=0&&iw(e)?ww(e):e;return ow(n)?t.filter((function(e){return ow(e)&&fw(e,n)&&"body"!==mw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=nx(e,n,r);return t.top=aw(o.top,t.top),t.right=lw(o.right,t.right),t.bottom=lw(o.bottom,t.bottom),t.left=aw(o.left,t.left),t}),nx(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ow(C)?C:C.contextElement||vw(e.elements.popper),l,c,s),x=dw(e.elements.reference),E=rx({reference:x,element:b,strategy:"absolute",placement:o}),P=tx(Object.assign({},b,E)),S=d===Nw?P:x,O={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},T=e.modifiersData.offset;if(d===Nw&&T){var _=T[o];Object.keys(O).forEach((function(e){var t=[_w,Tw].indexOf(e)>=0?1:-1,n=[Ow,Tw].indexOf(e)>=0?"y":"x";O[e]+=_[n]*t}))}return O}const ix={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=nw(g),v=l||(y!==g&&f?function(e){if(nw(e)===Rw)return[];var t=$w(e);return[Jw(e),t,Jw(t)]}(g):[$w(g)]),b=[g].concat(v).reduce((function(e,n){return e.concat(nw(n)===Rw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Lw:l,c=Bw(r),p=c?a?Mw:Mw.filter((function(e){return Bw(e)===c})):Iw,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,n){return t[n]=ox(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[nw(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:p,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,w=t.rects.popper,x=new Map,E=!0,P=b[0],S=0;S<b.length;S++){var O=b[S],T=nw(O),_=Bw(O)===kw,V=[Ow,Tw].indexOf(T)>=0,R=V?"width":"height",I=ox(t,{placement:O,boundary:c,rootBoundary:p,altBoundary:d,padding:u}),k=V?_?_w:Vw:_?Tw:Ow;C[R]>w[R]&&(k=$w(k));var A=$w(k),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[k]<=0,I[A]<=0),D.every((function(e){return e}))){P=O,E=!1;break}x.set(O,D)}if(E)for(var N=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},M=f?3:1;M>0&&"break"!==N(M);M--);t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ax(e){return[Ow,_w,Tw,Vw].some((function(t){return e[t]>=0}))}const lx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=Lw.reduce((function(e,n){return e[n]=function(e,t,n){var r=nw(e),o=[Vw,Ow].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Vw,_w].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},ux={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,h=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=ox(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:c}),y=nw(t.placement),v=Bw(t.placement),b=!v,C=xw(y),w="x"===C?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,P=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(i){var V,R="y"===C?Ow:Vw,I="y"===C?Tw:_w,k="y"===C?"height":"width",A=x[C],D=A+g[R],N=A-g[I],M=h?-P[k]/2:0,L=v===kw?E[k]:P[k],j=v===kw?-P[k]:-E[k],F=t.elements.arrow,B=h&&F?hw(F):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=q[R],z=q[I],Q=Ew(0,E[k],B[k]),U=b?E[k]/2-M-Q-H-O.mainAxis:L-Q-H-O.mainAxis,W=b?-E[k]/2+M+Q+z+O.mainAxis:j+Q+z+O.mainAxis,$=t.elements.arrow&&ww(t.elements.arrow),G=$?"y"===C?$.clientTop||0:$.clientLeft||0:0,J=null!=(V=null==T?void 0:T[C])?V:0,Y=A+W-J,K=Ew(h?lw(D,A+U-J-G):D,A,h?aw(N,Y):N);x[C]=K,_[C]=K-A}if(a){var X,Z="x"===C?Ow:Vw,ee="x"===C?Tw:_w,te=x[w],ne="y"===w?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Ow,Vw].indexOf(y),se=null!=(X=null==T?void 0:T[w])?X:0,ae=ie?re:te-E[ne]-P[ne]-se+O.altAxis,le=ie?te+E[ne]+P[ne]-se-O.altAxis:oe,ue=h&&ie?function(e,t,n){var r=Ew(e,t,n);return r>n?n:r}(ae,te,le):Ew(h?ae:re,te,h?le:oe);x[w]=ue,_[w]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function cx(e,t,n){void 0===n&&(n=!1);var r,o,i=iw(t),s=iw(t)&&function(e){var t=e.getBoundingClientRect(),n=uw(t.width)/e.offsetWidth||1,r=uw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=vw(t),l=dw(e,s,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==mw(t)||Xw(a))&&(u=(r=t)!==rw(r)&&iw(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Yw(r)),iw(t)?((c=dw(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Kw(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function px(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var dx={placement:"bottom",modifiers:[],strategy:"absolute"};function hx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const fx=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?dx:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},dx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:ow(e)?ex(e):e.contextElement?ex(e.contextElement):[],popper:ex(t)};var s,u,d=function(e){var t=px(e);return jw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,n=e.popper;if(hx(t,n)){a.rects={reference:cx(t,ww(n),"fixed"===a.options.strategy),popper:hw(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,p=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:p,instance:c})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),u=!0}};if(!hx(e,t))return c;function p(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=ox(t,{elementContext:"reference"}),a=ox(t,{altBoundary:!0}),l=sx(s,r),u=sx(a,o,i),c=ax(l),p=ax(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},zw,Uw,lx,ix,ux,Fw]}),mx=["enabled","placement","strategy","modifiers"],gx={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},yx={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},vx=[],bx=function(e,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:s="absolute",modifiers:a=vx}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,mx);const u=(0,t.useRef)(a),c=(0,t.useRef)(),p=(0,t.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),d=(0,t.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[h,f]=function(e){const n=io();return[e[0],(0,t.useCallback)((t=>{if(n())return e[1](t)}),[n,e[1]])]}((0,t.useState)({placement:i,update:p,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,t.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),f({state:e,styles:t,attributes:n,update:p,forceUpdate:d,placement:e.placement})}})),[p,d,f]),g=(0,t.useMemo)((()=>(tw(u.current,a)||(u.current=a),u.current)),[a]);return(0,t.useEffect)((()=>{c.current&&o&&c.current.setOptions({placement:i,strategy:s,modifiers:[...g,m,gx]})}),[s,i,m,o,g]),(0,t.useEffect)((()=>{if(o&&null!=e&&null!=n)return c.current=fx(e,n,Object.assign({},l,{placement:i,strategy:s,modifiers:[...g,yx,m]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,f((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,e,n]),h},Cx=()=>{},wx=e=>e&&("current"in e?e.current:e),xx={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Ex=function(e,n=Cx,{disabled:r,clickTrigger:o="click"}={}){const i=(0,t.useRef)(!1),s=(0,t.useRef)(!1),a=(0,t.useCallback)((t=>{const n=wx(e);var r;Di()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!oo(n,t.target)||s.current,s.current=!1}),[e]),l=Wr((t=>{const n=wx(e);n&&oo(n,t.target)&&(s.current=!0)})),u=Wr((e=>{i.current||n(e)}));(0,t.useEffect)((()=>{var t,n;if(r||null==e)return;const i=Br(wx(e)),s=i.defaultView||window;let c=null!=(t=s.event)?t:null==(n=s.parent)?void 0:n.event,p=null;xx[o]&&(p=to(i,xx[o],l,!0));const d=to(i,o,a,!0),h=to(i,o,(e=>{e!==c?u(e):c=void 0}));let f=[];return"ontouchstart"in i.documentElement&&(f=[].slice.call(i.body.children).map((e=>to(e,"mousemove",Cx)))),()=>{null==p||p(),d(),h(),f.forEach((e=>e()))}}),[e,r,o,a,l,u])};function Px(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Sx=["children","usePopper"],Ox=()=>{};function Tx(e={}){const n=(0,t.useContext)(XC),[r,o]=Qr(),i=(0,t.useRef)(!1),{flip:s,offset:a,rootCloseEvent:l,fixed:u=!1,placement:c,popperConfig:p={},enableEventListeners:d=!0,usePopper:h=!!n}=e,f=null==(null==n?void 0:n.show)?!!e.show:n.show;f&&!i.current&&(i.current=!0);const{placement:m,setMenu:g,menuElement:y,toggleElement:v}=n||{},b=bx(v,y,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,p,d,h;const f=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Px(Object.assign({},f,{eventListeners:{enabled:t,options:null==(u=f.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},f.preventOverflow,{options:s?Object.assign({padding:s},null==(c=f.preventOverflow)?void 0:c.options):null==(p=f.preventOverflow)?void 0:p.options}),offset:{options:Object.assign({offset:o},null==(d=f.offset)?void 0:d.options)},arrow:Object.assign({},f.arrow,{enabled:!!a,options:Object.assign({},null==(h=f.arrow)?void 0:h.options,{element:a})}),flip:Object.assign({enabled:!!r},f.flip)}))})}({placement:c||m||"bottom-start",enabled:h,enableEvents:null==d?f:d,offset:a,flip:s,fixed:u,arrowElement:r,popperConfig:p})),C=Object.assign({ref:g||Ox,"aria-labelledby":null==v?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),w={show:f,placement:m,hasShown:i.current,toggle:null==n?void 0:n.toggle,popper:h?b:null,arrowProps:h?Object.assign({ref:o},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ex(y,(e=>{null==n||n.toggle(!1,e)}),{clickTrigger:l,disabled:!f}),[C,w]}function _x(e){let{children:t,usePopper:n=!0}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Sx);const[o,i]=Tx(Object.assign({},r,{usePopper:n}));return(0,gn.jsx)(gn.Fragment,{children:t(o,i)})}_x.displayName="DropdownMenu";const Vx=_x,Rx={prefix:String(Math.round(1e10*Math.random())),current:0},Ix=t.createContext(Rx),kx=t.createContext(!1);let Ax=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Dx=new WeakMap;const Nx="function"==typeof t.useId?function(e){let n=t.useId(),[r]=(0,t.useState)("function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(jx,Mx,Lx):(0,t.useContext)(kx));return e||`${r?"react-aria":`react-aria${Rx.prefix}`}-${n}`}:function(e){let n=(0,t.useContext)(Ix);n!==Rx||Ax||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let n=(0,t.useContext)(Ix),r=(0,t.useRef)(null);if(null===r.current&&!e){var o,i;let e=null===(i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let t=Dx.get(e);null==t?Dx.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,Dx.delete(e))}r.current=++n.current}return r.current}(!!e),o=`react-aria${n.prefix}`;return e||`${o}-${r}`};function Mx(){return!1}function Lx(){return!0}function jx(e){return()=>{}}const Fx=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Bx=()=>{};function qx(){const e=Nx(),{show:n=!1,toggle:r=Bx,setToggle:o,menuElement:i}=(0,t.useContext)(XC)||{},s=(0,t.useCallback)((e=>{r(!n,e)}),[n,r]),a={id:e,ref:o||Bx,onClick:s,"aria-expanded":!!n};return i&&Fx(i)&&(a["aria-haspopup"]=!0),[a,{show:n,toggle:r}]}function Hx({children:e}){const[t,n]=qx();return(0,gn.jsx)(gn.Fragment,{children:e(t,n)})}Hx.displayName="DropdownToggle";const zx=Hx,Qx=(e,t=null)=>null!=e?String(e):t||null,Ux=t.createContext(null),Wx=t.createContext(null);Wx.displayName="NavContext";const $x=Wx,Gx=["eventKey","disabled","onClick","active","as"];function Jx({key:e,href:n,active:r,disabled:o,onClick:i}){const s=(0,t.useContext)(Ux),a=(0,t.useContext)($x),{activeKey:l}=a||{},u=Qx(e,n),c=null==r&&null!=e?Qx(l)===u:r;return[{onClick:Wr((e=>{o||(null==i||i(e),s&&!e.isPropagationStopped()&&s(u,e))})),"aria-disabled":o||void 0,"aria-selected":c,[lo("dropdown-item")]:""},{isActive:c}]}const Yx=t.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:i,as:s=is}=e,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Gx);const[l]=Jx({key:n,href:a.href,disabled:r,onClick:o,active:i});return(0,gn.jsx)(s,Object.assign({},a,{ref:t},l))}));Yx.displayName="DropdownItem";const Kx=Yx;function Xx(){const e=function(){const[,e]=(0,t.useReducer)((e=>!e),!1);return e}(),n=(0,t.useRef)(null),r=(0,t.useCallback)((t=>{n.current=t,e()}),[e]);return[n,r]}function Zx({defaultShow:e,show:n,onSelect:r,onToggle:o,itemSelector:i=`* [${lo("dropdown-item")}]`,focusFirstItemOnShow:s,placement:a="bottom-start",children:l}){const u=ho(),[c,p]=function(e,n,r){const o=(0,t.useRef)(void 0!==e),[i,s]=(0,t.useState)(n),a=void 0!==e,l=o.current;return o.current=a,!a&&l&&i!==n&&s(n),[a?e:i,(0,t.useCallback)(((...e)=>{const[t,...n]=e;let o=null==r?void 0:r(t,...n);return s(t),o}),[r])]}(n,e,o),[d,h]=Xx(),f=d.current,[m,g]=Xx(),y=m.current,v=so(c),b=(0,t.useRef)(null),C=(0,t.useRef)(!1),w=(0,t.useContext)(Ux),x=(0,t.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{p(e,{originalEvent:t,source:n})}),[p]),E=Wr(((e,t)=>{null==r||r(e,t),x(!1,t,"select"),t.isPropagationStopped()||null==w||w(e,t)})),P=(0,t.useMemo)((()=>({toggle:x,placement:a,show:c,menuElement:f,toggleElement:y,setMenu:h,setToggle:g})),[x,a,c,f,y,h,g]);f&&v&&!c&&(C.current=f.contains(f.ownerDocument.activeElement));const S=Wr((()=>{y&&y.focus&&y.focus()})),O=Wr((()=>{const e=b.current;let t=s;if(null==t&&(t=!(!d.current||!Fx(d.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Vo(d.current,i)[0];n&&n.focus&&n.focus()}));(0,t.useEffect)((()=>{c?O():C.current&&(C.current=!1,S())}),[c,C,S,O]),(0,t.useEffect)((()=>{b.current=null}));const T=(e,t)=>{if(!d.current)return null;const n=Vo(d.current,i);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,n,r,o=!1){const i=Wr(r);(0,t.useEffect)((()=>{const t="function"==typeof e?e():e;return t.addEventListener(n,i,o),()=>t.removeEventListener(n,i,o)}),[e])}((0,t.useCallback)((()=>u.document),[u]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,i=null==(t=d.current)?void 0:t.contains(o),s=null==(n=m.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&i||"Escape"===r&&"search"===o.type))return;if(!i&&!s)return;if(!("Tab"!==r||d.current&&c))return;b.current=e.type;const a={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=T(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),c){const e=T(o,1);e&&e.focus&&e.focus()}else p(!0,a);return;case"Tab":Fr(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=d.current)&&t.contains(e.target)||p(!1,a)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),p(!1,a)}})),(0,gn.jsx)(Ux.Provider,{value:E,children:(0,gn.jsx)(XC.Provider,{value:P,children:l})})}Zx.displayName="Dropdown",Zx.Menu=Vx,Zx.Toggle=zx,Zx.Item=Kx;const eE=Zx;function tE(){return tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tE.apply(null,arguments)}function nE(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function rE(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function oE(e,n){return Object.keys(n).reduce((function(r,o){var i,s=r,a=s[nE(o)],l=s[o],u=Yt(s,[nE(o),o].map(rE)),c=n[o],p=function(e,n,r){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(n),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==n&&a(n),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),a(e)}),[r])]}(l,a,e[c]),d=p[0],h=p[1];return tE({},u,((i={})[o]=d,i[c]=h,i))}),e)}o(311);const iE=t.createContext({});iE.displayName="DropdownContext";const sE=iE,aE=t.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...o},i)=>(t=Cn(t,"dropdown-divider"),(0,gn.jsx)(n,{ref:i,className:mn()(e,t),role:r,...o}))));aE.displayName="DropdownDivider";const lE=aE,uE=t.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},i)=>(t=Cn(t,"dropdown-header"),(0,gn.jsx)(n,{ref:i,className:mn()(e,t),role:r,...o}))));uE.displayName="DropdownHeader";const cE=uE;new WeakMap;const pE=["onKeyDown"],dE=t.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,pE);const[o]=rs(Object.assign({tagName:"a"},r)),i=Wr((e=>{o.onKeyDown(e),null==n||n(e)}));return(s=r.href)&&"#"!==s.trim()&&"button"!==r.role?(0,gn.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,gn.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:i}));var s}));dE.displayName="Anchor";const hE=dE,fE=t.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:i,as:s=hE,...a},l)=>{const u=Cn(e,"dropdown-item"),[c,p]=Jx({key:n,href:a.href,disabled:r,onClick:o,active:i});return(0,gn.jsx)(s,{...a,...c,ref:l,className:mn()(t,u,p.isActive&&"active",r&&"disabled")})}));fE.displayName="DropdownItem";const mE=fE,gE=t.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=Cn(t,"dropdown-item-text"),(0,gn.jsx)(n,{ref:o,className:mn()(e,t),...r}))));gE.displayName="DropdownItemText";const yE=gE,vE=t.createContext(null);vE.displayName="InputGroupContext";const bE=vE,CE=t.createContext(null);CE.displayName="NavbarContext";const wE=CE;function xE(e,t){return e}function EE(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const PE=t.forwardRef((({bsPrefix:e,className:n,align:r,rootCloseEvent:o,flip:i=!0,show:s,renderOnMount:a,as:l="div",popperConfig:u,variant:c,...p},d)=>{let h=!1;const f=(0,t.useContext)(wE),m=Cn(e,"dropdown-menu"),{align:g,drop:y,isRTL:v}=(0,t.useContext)(sE);r=r||g;const b=(0,t.useContext)(bE),C=[];if(r)if("object"==typeof r){const e=Object.keys(r);if(e.length){const t=e[0],n=r[t];h="start"===n,C.push(`${m}-${t}-${n}`)}}else"end"===r&&(h=!0);const w=EE(h,y,v),[x,{hasShown:E,popper:P,show:S,toggle:O}]=Tx({flip:i,rootCloseEvent:o,show:s,usePopper:!f&&0===C.length,offset:[0,2],popperConfig:u,placement:w});if(x.ref=Gr(xE(d),x.ref),go((()=>{S&&(null==P||P.update())}),[S]),!E&&!a&&!b)return null;"string"!=typeof l&&(x.show=S,x.close=()=>null==O?void 0:O(!1),x.align=r);let T=p.style;return null!=P&&P.placement&&(T={...p.style,...x.style},p["x-placement"]=P.placement),(0,gn.jsx)(l,{...p,...x,style:T,...(C.length||f)&&{"data-bs-popper":"static"},className:mn()(n,m,S&&"show",h&&`${m}-end`,c&&`${m}-${c}`,...C)})}));PE.displayName="DropdownMenu";const SE=PE,OE=t.forwardRef((({bsPrefix:e,split:n,className:r,childBsPrefix:o,as:i=as,...s},a)=>{const l=Cn(e,"dropdown-toggle"),u=(0,t.useContext)(XC);void 0!==o&&(s.bsPrefix=o);const[c]=qx();return c.ref=Gr(c.ref,xE(a)),(0,gn.jsx)(i,{className:mn()(r,l,n&&`${l}-split`,(null==u?void 0:u.show)&&"show"),...c,...s})}));OE.displayName="DropdownToggle";const TE=OE,_E=t.forwardRef(((e,n)=>{const{bsPrefix:r,drop:o="down",show:i,className:s,align:a="start",onSelect:l,onToggle:u,focusFirstItemOnShow:c,as:p="div",navbar:d,autoClose:h=!0,...f}=oE(e,{show:"onToggle"}),m=(0,t.useContext)(bE),g=Cn(r,"dropdown"),y=En(),v=Wr(((e,t)=>{var n,r;(null==(n=t.originalEvent)||null==(n=n.target)?void 0:n.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),r=t.source,(!1===h?"click"===r:"inside"===h?"rootClose"!==r:"outside"!==h||"select"!==r)&&(null==u||u(e,t)))})),b=EE("end"===a,o,y),C=(0,t.useMemo)((()=>({align:a,drop:o,isRTL:y})),[a,o,y]),w={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,gn.jsx)(sE.Provider,{value:C,children:(0,gn.jsx)(eE,{placement:b,show:i,onSelect:l,onToggle:v,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:m?f.children:(0,gn.jsx)(p,{...f,ref:n,className:mn()(s,i&&"show",w[o])})})})}));_E.displayName="Dropdown";const VE=Object.assign(_E,{Toggle:TE,Menu:SE,Item:mE,ItemText:yE,Divider:lE,Header:cE}),RE=function(e){var n=e.filterOptions,r=e.filterSelection,o=e.setFilterSelection,i=e.max1year,s=void 0!==i&&i,a=e.coloredYears,l=void 0!==a&&a,u=Rt((0,t.useState)(!0),2),c=u[0],p=u[1],d=(0,t.useContext)(Gt).nrens;if((0,t.useEffect)((function(){var e=function(){return p(window.innerWidth>=992)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),s&&r.selectedYears.length>1){var h=Math.max.apply(Math,Kt(r.selectedYears));o({selectedYears:[h],selectedNrens:Kt(r.selectedNrens)})}var f=c?3:2,m=Math.ceil(d.length/f),g=Array.from(Array(f),(function(){return[]}));d.sort((function(e,t){return e.name.localeCompare(t.name)})).forEach((function(e,t){var n=Math.floor(t/m);g[n].push(e)}));var y=function(e){var t=n.availableNrens.find((function(t){return t.name===e.name}));return void 0!==t};return t.createElement(t.Fragment,null,t.createElement(Vn,{xs:3},t.createElement(VE,{autoClose:"outside",className:"m-3"},t.createElement(VE.Toggle,{id:"nren-dropdown-toggle",variant:"compendium"},"Select NRENs "),t.createElement(VE.Menu,{style:{borderRadius:0}},t.createElement("div",{className:"d-flex fit-max-content mt-4 mx-3"},g.map((function(e,n){return t.createElement("div",{key:n,className:"flex-fill"},e.map((function(e){return t.createElement("div",{className:"filter-dropdown-item flex-fill py-1 px-3",key:e.name},t.createElement(ts.Check,{type:"checkbox"},t.createElement(ts.Check.Input,{id:e.name,readOnly:!0,type:"checkbox",onClick:function(){return function(e){r.selectedNrens.includes(e)?o({selectedYears:Kt(r.selectedYears),selectedNrens:r.selectedNrens.filter((function(t){return t!==e}))}):o({selectedYears:Kt(r.selectedYears),selectedNrens:[].concat(Kt(r.selectedNrens),[e])})}(e.name)},checked:r.selectedNrens.includes(e.name),className:"nren-checkbox",disabled:!y(e)}),t.createElement(ts.Check.Label,{htmlFor:e.name,className:"nren-checkbox-label"},e.name," ",t.createElement("span",{style:{fontWeight:"lighter"}},"(",e.country,")"))))})))}))),t.createElement("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3"},t.createElement(as,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:Kt(r.selectedYears),selectedNrens:n.availableNrens.map((function(e){return e.name}))})}},"Select all NRENs"),t.createElement(as,{variant:"compendium",className:"flex-fill",onClick:function(){o({selectedYears:Kt(r.selectedYears),selectedNrens:[]})}},"Unselect all NRENs"))))),t.createElement(Vn,null,t.createElement(Id,{className:"d-flex justify-content-end gap-2 m-3"},n.availableYears.sort().map((function(e){return t.createElement(as,{variant:l?"compendium-year-"+e%9:"compendium-year",key:e,active:r.selectedYears.includes(e),onClick:function(){return function(e){r.selectedYears.includes(e)?o({selectedYears:r.selectedYears.filter((function(t){return t!==e})),selectedNrens:Kt(r.selectedNrens)}):o({selectedYears:s?[e]:[].concat(Kt(r.selectedYears),[e]),selectedNrens:Kt(r.selectedNrens)})}(e)}},e)})))))},IE=function(e){var n=e.children,r=(0,t.useContext)(zt);return t.createElement("div",{ref:r},n)};function kE(e){var t=new Set,n=new Map;return e.forEach((function(e){t.add(e.year),n.set(e.nren,{name:e.nren,country:e.nren_country})})),{years:t,nrens:n}}function AE(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=e+(Ar()?"?preview":"");(0,t.useEffect)((function(){fetch(a).then((function(e){return e.json()})).then((function(e){var t=e.filter(r);s(t);var o=kE(t),i=o.years,a=o.nrens;n((function(e){return{selectedYears:e.selectedYears.filter((function(e){return i.has(e)})).length?e.selectedYears:[Math.max.apply(Math,Kt(i))],selectedNrens:e.selectedNrens.filter((function(e){return a.has(e)})).length?e.selectedNrens:Kt(a.keys())}}))}))}),[a,n]);var l=(0,t.useMemo)((function(){return kE(i)}),[i]),u=l.years,c=l.nrens;return{data:i,years:u,nrens:c}}var DE=function(e){var t=e.title,n=e.unit,r=e.tooltipPrefix,o=e.tooltipUnit,i=e.tickLimit,s=e.valueTransform;return{responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=null!=r?r:e.dataset.label||"",n=s?s(e.parsed.y):e.parsed.y;return null!==e.parsed.y&&(t+=": ".concat(n," ").concat(o||"")),t}}}},scales:{y:{title:{display:!!t,text:t||""},ticks:{autoSkip:!0,maxTicksLimit:i,callback:function(e){var t="string"==typeof e?e:s?s(e):e;return"".concat(t," ").concat(n||"")}}}}}},NE=function(e){var t=e.title,n=e.unit,r=e.tooltipPrefix,o=e.tooltipUnit,i=e.valueTransform;return{maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(e){var t=null!=r?r:e.dataset.label||"",n=i?i(e.parsed.x):e.parsed.x;return null!==e.parsed.y&&(t+=": ".concat(n," ").concat(o||"")),t}}}},scales:{x:{title:{display:!!t,text:t||""},position:"top",ticks:{callback:function(e){if(!e)return e;var t=i?i(e):e;return"".concat(t," ").concat(n||"")}}},x2:{title:{display:!!t,text:t||""},ticks:{callback:function(e){if(!e)return e;var t=i?i(e):e;return"".concat(t," ").concat(n||"")}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"}};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const ME=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/budget",r),i=o.data,s=o.nrens,a=i.filter((function(e){return n.selectedNrens.includes(e.nren)})),l=Sd(a,"budget"),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r}),c=DE({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"});return t.createElement(KC,{title:"Budget of NRENs per Year",description:t.createElement("span",null,"The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",t.createElement("br",null),"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",t.createElement("br",null),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."),category:Tr.Organisation,filter:u,data:a,filename:"budget_data"},t.createElement(IE,null,t.createElement(dd,{data:l,options:c})))},LE=t.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=Cn(e,"table"),d=mn()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,n&&`${p}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,gn.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,gn.jsx)("div",{className:e,children:h})}return h})),jE=LE,FE=function(e){var n=e.year,r=e.active,o=e.tooltip,i=e.rounded,s={width:void 0!==i&&i?"30px":"75px",height:"30px",margin:"2px"};return t.createElement("div",{className:"d-inline-block",key:n},r&&o?t.createElement("div",{className:"rounded-pill bg-color-of-the-year-".concat(n%9," bottom-tooltip pill-shadow"),style:s,"data-description":"".concat(n,": ").concat(o)}):r?t.createElement("div",{className:"rounded-pill bg-color-of-the-year-".concat(n%9," bottom-tooltip-small"),style:s,"data-description":n}):t.createElement("div",{className:"rounded-pill bg-color-of-the-year-blank",style:s}))},BE=function(e){var n=e.columns,r=e.dataLookup,o=e.circle,i=void 0!==o&&o,s=e.columnLookup,a=void 0===s?new Map:s,l=Array.from(new Set(Array.from(r.values()).flatMap((function(e){return Array.from(e.keys())})))),u=n.map((function(e){return a.get(e)||e})),c=Array.from(new Set(Array.from(r.values()).flatMap((function(e){return Array.from(e.values()).flatMap((function(e){return Array.from(e.keys())}))})))),p=l.filter((function(e){var t=a.get(e);return t?!u.includes(t):!u.includes(e)})).map((function(e){return a.get(e)||e}));return t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"12rem"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),n.map((function(e){return t.createElement("th",{colSpan:1,key:e},e)})),p.length?t.createElement("th",null,"Other"):null)),t.createElement("tbody",null,Array.from(r.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),u.map((function(e){var n=o.get(e);return n?t.createElement("td",{key:e},c.map((function(e){var r=n.get(e)||{};return t.createElement(FE,{key:e,year:e,active:n.has(e),tooltip:r.tooltip,rounded:i})}))):t.createElement("td",{key:e})})),!!p.length&&t.createElement("td",{key:"".concat(r,"-other")},p.map((function(e){var n=o.get(e);if(n)return Array.from(Array.from(n.entries())).map((function(n){var r=Rt(n,2),o=r[0],s=r[1];return t.createElement(FE,{key:o,year:o,active:!0,tooltip:s.tooltip||e,rounded:i})}))}))))}))))},qE=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/charging",r,(function(e){return null!=e.fee_type})),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"fee_type"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[p[0],"flat_fee"],[p[1],"usage_based_fee"],[p[2],"combination"],[p[3],"no_charge"],[p[4],"other"]]);return t.createElement(KC,{title:"Charging Mechanism of NRENs",description:"The charging structure is the way in which NRENs charge their customers for the services they provide. The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.",category:Tr.Organisation,filter:c,data:l,filename:"charging_mechanism_of_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d})))};const HE=function(e){var n=e.data,r=e.columnTitle,o=e.dottedBorder,i=e.noDots,s=e.keysAreURLs,a=e.removeDecoration;return t.createElement(jE,{borderless:!0,className:"compendium-table"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"nren-column"},t.createElement("span",null,"NREN")),t.createElement("th",{className:"year-column"},t.createElement("span",null,"Year")),t.createElement("th",{className:"blue-column"},t.createElement("span",null,r)))),t.createElement("tbody",null,function(e,n){var r=n.dottedBorder,o=void 0!==r&&r,i=n.noDots,s=void 0!==i&&i,a=n.keysAreURLs,l=void 0!==a&&a,u=n.removeDecoration,c=void 0!==u&&u;return Array.from(e.entries()).map((function(e){var n=Rt(e,2),r=n[0],i=n[1];return Array.from(i.entries()).map((function(e,n){var i=Rt(e,2),a=i[0],u=i[1],p={};return c&&(p.textDecoration="none"),t.createElement("tr",{key:r+a,className:o?"dotted-border":""},t.createElement("td",{className:"pt-3 nren-column text-nowrap"},0===n&&r),t.createElement("td",{className:"pt-3 year-column"},a),t.createElement("td",{className:"pt-3 blue-column"},t.createElement("ul",{className:s?"no-list-style-type":""},Array.from(Object.entries(u)).map((function(e,n){var r=Rt(e,2),o=r[0],i=r[1];return function(e,n,r,o,i){return e&&o.startsWith("http")?t.createElement("li",{key:r},t.createElement("a",{href:(s=o,s.match(/^[a-zA-Z]+:\/\//)?s:"https://"+s),target:"_blank",rel:"noopener noreferrer",style:n},i)):t.createElement("li",{key:r},t.createElement("span",null,i));var s}(l,p,n,i,o)})))))}))}))}(n,{dottedBorder:o,noDots:i,keysAreURLs:s,removeDecoration:a})))},zE=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/ec-project",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n=t.map((function(e){return e.project})).sort();n.length&&n.forEach((function(t){e[t]=t}))})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:Tr.Organisation,filter:c,data:l,filename:"nren_involvement_in_european_commission_projects"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"EC Project Membership",dottedBorder:!0})))};var QE=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),UE=function(e,t,n){var r,o=[].concat(t),i=o.length,s=e.font,a=0;for(e.font=n.string,r=0;r<i;++r)a=Math.max(e.measureText(o[r]).width,a);return e.font=s,{height:i*n.lineHeight,width:a}};function WE(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var o=e.x-n,i=e.y-r,s=Math.sqrt(o*o+i*i);return{x:s?o/s:0,y:s?i/s:-1}}var $E=0,GE=1,JE=2,YE=4,KE=8;function XE(e,t,n){var r=$E;return e<n.left?r|=GE:e>n.right&&(r|=JE),t<n.top?r|=KE:t>n.bottom&&(r|=YE),r}function ZE(e,t){var n,r,o=t.anchor,i=e;return t.clamp&&(i=function(e,t){for(var n,r,o,i=e.x0,s=e.y0,a=e.x1,l=e.y1,u=XE(i,s,t),c=XE(a,l,t);u|c&&!(u&c);)(n=u||c)&KE?(r=i+(a-i)*(t.top-s)/(l-s),o=t.top):n&YE?(r=i+(a-i)*(t.bottom-s)/(l-s),o=t.bottom):n&JE?(o=s+(l-s)*(t.right-i)/(a-i),r=t.right):n&GE&&(o=s+(l-s)*(t.left-i)/(a-i),r=t.left),n===u?u=XE(i=r,s=o,t):c=XE(a=r,l=o,t);return{x0:i,x1:a,y0:s,y1:l}}(i,t.area)),"start"===o?(n=i.x0,r=i.y0):"end"===o?(n=i.x1,r=i.y1):(n=(i.x0+i.x1)/2,r=(i.y0+i.y1)/2),function(e,t,n,r,o){switch(o){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),r=Math.sin(o)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var eP=function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),o=Math.sin(n),i=e.innerRadius,s=e.outerRadius;return ZE({x0:e.x+r*i,y0:e.y+o*i,x1:e.x+r*s,y1:e.y+o*s,vx:r,vy:o},t)},tP=function(e,t){var n=WE(e,t.origin),r=n.x*e.options.radius,o=n.y*e.options.radius;return ZE({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},nP=function(e,t){var n=WE(e,t.origin),r=e.x,o=e.y,i=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),i=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),ZE({x0:r,y0:o+s,x1:r+i,y1:o,vx:n.x,vy:n.y},t)},rP=function(e,t){var n=WE(e,t.origin);return ZE({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)},oP=function(e){return Math.round(e*QE)/QE};function iP(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function sP(e,t,n){var r=e.shadowBlur,o=n.stroked,i=oP(n.x),s=oP(n.y),a=oP(n.w);o&&e.strokeText(t,i,s,a),n.filled&&(r&&o&&(e.shadowBlur=0),e.fillText(t,i,s,a),r&&o&&(e.shadowBlur=r))}var aP=function(e,t,n,r){var o=this;o._config=e,o._index=r,o._model=null,o._rects=null,o._ctx=t,o._el=n};Zs(aP.prototype,{_modelize:function(e,t,n,r){var o,i=this,s=i._index,a=Ol(Tl([n.font,{}],r,s)),l=Tl([n.color,rl.color],r,s);return{align:Tl([n.align,"center"],r,s),anchor:Tl([n.anchor,"center"],r,s),area:r.chart.chartArea,backgroundColor:Tl([n.backgroundColor,null],r,s),borderColor:Tl([n.borderColor,null],r,s),borderRadius:Tl([n.borderRadius,0],r,s),borderWidth:Tl([n.borderWidth,0],r,s),clamp:Tl([n.clamp,!1],r,s),clip:Tl([n.clip,!1],r,s),color:l,display:e,font:a,lines:t,offset:Tl([n.offset,4],r,s),opacity:Tl([n.opacity,1],r,s),origin:iP(i._el,r),padding:Sl(Tl([n.padding,4],r,s)),positioner:(o=i._el,o instanceof mp?eP:o instanceof Sp?tP:o instanceof Ip?nP:rP),rotation:Tl([n.rotation,0],r,s)*(Math.PI/180),size:UE(i._ctx,t,a),textAlign:Tl([n.textAlign,"start"],r,s),textShadowBlur:Tl([n.textShadowBlur,0],r,s),textShadowColor:Tl([n.textShadowColor,l],r,s),textStrokeColor:Tl([n.textStrokeColor,l],r,s),textStrokeWidth:Tl([n.textStrokeWidth,0],r,s)}},update:function(e){var t,n,r,o=this,i=null,s=null,a=o._index,l=o._config,u=Tl([l.display,!0],e,a);u&&(t=e.dataset.data[a],(r=qs(n=Ws($s(l.formatter,[t,e]),t))?[]:function(e){var t,n=[];for(e=[].concat(e);e.length;)"string"==typeof(t=e.pop())?n.unshift.apply(n,t.split("\n")):Array.isArray(t)?e.push.apply(e,t):qs(e)||n.unshift(""+t);return n}(n)).length&&(s=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,o=e.size.width,i=-o/2,s=-r/2;return{frame:{x:i-n.left-t,y:s-n.top-t,w:o+n.width+2*t,h:r+n.height+2*t},text:{x:i,y:s,w:o,h:r}}}(i=o._modelize(u,r,l,e)))),o._model=i,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,r,o,i,s=e.ctx,a=this._model,l=this._rects;this.visible()&&(s.save(),a.clip&&(n=a.area,s.beginPath(),s.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),s.clip()),s.globalAlpha=(r=0,o=a.opacity,i=1,Math.max(r,Math.min(o,i))),s.translate(oP(t.x),oP(t.y)),s.rotate(a.rotation),function(e,t,n){var r=n.backgroundColor,o=n.borderColor,i=n.borderWidth;(r||o&&i)&&(e.beginPath(),function(e,t,n,r,o,i){var s=Math.PI/2;if(i){var a=Math.min(i,o/2,r/2),l=t+a,u=n+a,c=t+r-a,p=n+o-a;e.moveTo(t,u),l<c&&u<p?(e.arc(l,u,a,-Math.PI,-s),e.arc(c,u,a,-s,0),e.arc(c,p,a,0,s),e.arc(l,p,a,s,Math.PI)):l<c?(e.moveTo(l,n),e.arc(c,u,a,-s,s),e.arc(l,u,a,s,Math.PI+s)):u<p?(e.arc(l,u,a,-Math.PI,0),e.arc(l,p,a,0,Math.PI)):e.arc(l,u,a,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)}(e,oP(t.x)+i/2,oP(t.y)+i/2,oP(t.w)-i,oP(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),o&&i&&(e.strokeStyle=o,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}(s,l.frame,a),function(e,t,n,r){var o,i=r.textAlign,s=r.color,a=!!s,l=r.font,u=t.length,c=r.textStrokeColor,p=r.textStrokeWidth,d=c&&p;if(u&&(a||d))for(n=function(e,t,n){var r=n.lineHeight,o=e.w,i=e.x;return"center"===t?i+=o/2:"end"!==t&&"right"!==t||(i+=o),{h:r,w:o,x:i,y:e.y+r/2}}(n,i,l),e.font=l.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,a&&(e.fillStyle=s),d&&(e.lineJoin="round",e.lineWidth=p,e.strokeStyle=c),o=0,u=t.length;o<u;++o)sP(e,t[o],{stroked:d,filled:a,w:n.w,x:n.x,y:n.y+n.h*o})}(s,a.lines,l.text,a),s.restore())}});var lP=Number.MIN_SAFE_INTEGER||-9007199254740991,uP=Number.MAX_SAFE_INTEGER||9007199254740991;function cP(e,t,n){var r=Math.cos(n),o=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-o*(e.y-s),y:s+o*(e.x-i)+r*(e.y-s)}}function pP(e,t){var n,r,o,i,s,a=uP,l=lP,u=t.origin;for(n=0;n<e.length;++n)o=(r=e[n]).x-u.x,i=r.y-u.y,s=t.vx*o+t.vy*i,a=Math.min(a,s),l=Math.max(l,s);return{min:a,max:l}}function dP(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/o,vy:(t.y-e.y)/o,origin:e,ln:o}}var hP=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function fP(e,t,n){var r=t.positioner(e,t),o=r.vx,i=r.vy;if(!o&&!i)return{x:r.x,y:r.y};var s=n.w,a=n.h,l=t.rotation,u=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),c=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),p=1/Math.max(Math.abs(o),Math.abs(i));return u*=o*p,c*=i*p,u+=t.offset*o,c+=t.offset*i,{x:r.x+u,y:r.y+c}}Zs(hP.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=t._rect;return!((e=cP(e,t.center(),-t._rotation)).x<n.x-1||e.y<n.y-1||e.x>n.x+n.w+2||e.y>n.y+n.h+2)},intersects:function(e){var t,n,r,o=this._points(),i=e._points(),s=[dP(o[0],o[1]),dP(o[0],o[3])];for(this._rotation!==e._rotation&&s.push(dP(i[0],i[1]),dP(i[0],i[3])),t=0;t<s.length;++t)if(n=pP(o,s[t]),r=pP(i,s[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[cP({x:t.x,y:t.y},r,n),cP({x:t.x+t.w,y:t.y},r,n),cP({x:t.x+t.w,y:t.y+t.h},r,n),cP({x:t.x,y:t.y+t.h},r,n)]}});var mP={prepare:function(e){var t,n,r,o,i,s=[];for(t=0,r=e.length;t<r;++t)for(n=0,o=e[t].length;n<o;++n)i=e[t][n],s.push(i),i.$layout={_box:new hP,_hidable:!1,_visible:!0,_set:t,_idx:i._index};return s.sort((function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx})),this.update(s),s},update:function(e){var t,n,r,o,i,s=!1;for(t=0,n=e.length;t<n;++t)o=(r=e[t]).model(),(i=r.$layout)._hidable=o&&"auto"===o.display,i._visible=r.visible(),s|=i._hidable;s&&function(e){var t,n,r,o,i,s,a;for(t=0,n=e.length;t<n;++t)(o=(r=e[t]).$layout)._visible&&(a=new Proxy(r._el,{get:(e,t)=>e.getProps([t],!0)[t]}),i=r.geometry(),s=fP(a,r.model(),i),o._box.update(s,i,r.rotation()));!function(e,t){var n,r,o,i;for(n=e.length-1;n>=0;--n)for(o=e[n].$layout,r=n-1;r>=0&&o._visible;--r)(i=e[r].$layout)._visible&&o._box.intersects(i._box)&&t(o,i)}(e,(function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)}))}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,o,i,s,a;for(n=0,r=t.length;n<r;++n)(i=(o=t[n]).$layout)._visible&&(s=o.geometry(),a=fP(o._el,o.model(),s),i._box.update(a,s,o.rotation()),o.draw(e,a))}},gP={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(qs(e))return null;var t,n,r,o=e;if(zs(e))if(qs(e.label))if(qs(e.r))for(o="",r=0,n=(t=Object.keys(e)).length;r<n;++r)o+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else o=e.r;else o=e.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},yP="$datalabels",vP="$default";function bP(e,t,n,r){if(t){var o,i=n.$context,s=n.$groups;t[s._set]&&(o=t[s._set][s._key])&&!0===$s(o,[i,r])&&(e[yP]._dirty=!0,n.update(i))}}var CP={id:"datalabels",defaults:gP,beforeInit:function(e){e[yP]={_actives:[]}},beforeUpdate:function(e){var t=e[yP];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,o,i,s,a,l,u,c,p=t.index,d=e[yP],h=d._datasets[p]=[],f=e.isDatasetVisible(p),m=e.data.datasets[p],g=function(e,t){var n,r,o,i=e.datalabels,s=[];return!1===i?null:(!0===i&&(i={}),t=Zs({},[t,i]),r=t.labels||{},o=Object.keys(r),delete t.labels,o.length?o.forEach((function(e){r[e]&&s.push(Zs({},[t,r[e],{_key:e}]))})):s.push(t),n=s.reduce((function(e,t){return Gs(t.listeners||{},(function(n,r){e[r]=e[r]||{},e[r][t._key||vP]=n})),delete t.listeners,e}),{}),{labels:s,listeners:n})}(m,n),y=t.meta.data||[],v=e.ctx;for(v.save(),r=0,i=y.length;r<i;++r)if((u=y[r])[yP]=[],f&&u&&e.getDataVisibility(r)&&!u.skip)for(o=0,s=g.labels.length;o<s;++o)l=(a=g.labels[o])._key,(c=new aP(a,v,u,r)).$groups={_set:p,_key:l||vP},c.$context={active:!1,chart:e,dataIndex:r,dataset:m,datasetIndex:p},c.update(c.$context),u[yP].push(c),h.push(c);v.restore(),Zs(d._listeners,g.listeners,{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],d._listened=!0}})},afterUpdate:function(e){e[yP]._labels=mP.prepare(e[yP]._datasets)},afterDatasetsDraw:function(e){mP.draw(e,e[yP]._labels)},beforeEvent:function(e,t){if(e[yP]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":!function(e,t){var n,r,o=e[yP],i=o._listeners;if(i.enter||i.leave){if("mousemove"===t.type)r=mP.lookup(o._labels,t);else if("mouseout"!==t.type)return;n=o._hovered,o._hovered=r,function(e,t,n,r,o){var i,s;(n||r)&&(n?r?n!==r&&(s=i=!0):s=!0:i=!0,s&&bP(e,t.leave,n,o),i&&bP(e,t.enter,r,o))}(e,i,n,r,t)}}(e,n);break;case"click":!function(e,t){var n=e[yP],r=n._listeners.click,o=r&&mP.lookup(n._labels,t);o&&bP(e,r,o,t)}(e,n)}}},afterEvent:function(e){var t,n,r,o,i,s,a,l=e[yP],u=function(e,t){var n,r,o,i,s=e.slice(),a=[];for(n=0,o=t.length;n<o;++n)i=t[n],-1===(r=s.indexOf(i))?a.push([i,1]):s.splice(r,1);for(n=0,o=s.length;n<o;++n)a.push([s[n],-1]);return a}(l._actives,l._actives=e.getActiveElements());for(t=0,n=u.length;t<n;++t)if((i=u[t])[1])for(r=0,o=(a=i[0].element[yP]||[]).length;r<o;++r)(s=a[r]).$context.active=1===i[1],s.update(s.$context);(l._dirty||u.length)&&(mP.update(l._labels),e.render()),delete l._dirty}};const wP=function(e){var n=e.index,r=e.active,o=void 0===r||r;return t.createElement("div",{className:"d-inline-block m-2",key:n},o?t.createElement("div",{className:"color-of-badge-".concat(n%5),style:{width:"20px",height:"35px",margin:"2px"}}):t.createElement("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}))};var xP={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.y&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",ticks:{callback:function(e){return"".concat(e,"%")},stepSize:10},max:100,min:0},xBottom:{ticks:{callback:function(e){return"".concat(e,"%")},stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.xBottom&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.xBottom.options.min=n,e.chart.scales.xBottom.options.max=t,e.chart.scales.xBottom.min=n,e.chart.scales.xBottom.max=t}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function EP(){return t.createElement("div",{className:"d-flex justify-content-center bold-grey-12pt"},t.createElement(Tn,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center"},t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:0,index:0}),"Client Institutions"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:1,index:1}),"Commercial"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:2,index:2}),"European Funding"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:3,index:3}),"Gov/Public Bodies"),t.createElement(Vn,{className:"d-flex align-items-center"},t.createElement(wP,{key:4,index:4}),"Other")))}pp.register(Xp);const PP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/funding",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e){var t=wd(e),n=function(){var e=function(e,t,n){return"#"+[e,t,n].map((function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})).join("")},t=new Map;return t.set("client_institutions",e(157,40,114)),t.set("commercial",e(241,224,79)),t.set("european_funding",e(219,42,76)),t.set("gov_public_bodies",e(237,141,24)),t.set("other",e(137,166,121)),t}(),r=Kt(new Set(e.map((function(e){return e.year})))).sort(),o=Kt(new Set(e.map((function(e){return e.nren})))).sort(),i={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},s=Object.keys(i),a=(0,fd.o1)(Object.keys(i),r).reduce((function(e,t){var n=Rt(t,2),r=n[0],o=n[1];return e["".concat(r,",").concat(o)]={},e}),{});t.forEach((function(e,t){e.forEach((function(e,n){var r=s.map((function(t){return e[t]||0})),o=r.reduce((function(e,t){return e+t}),0);if(0!==o)for(var i=0,l=s;i<l.length;i++){var u=l[i],c="".concat(u,",").concat(n),p=s.indexOf(u);a[c][t]=r[p]}}))}));var l=Array.from(Object.entries(a)).map((function(e){var t=Rt(e,2),r=t[0],a=t[1],l=Rt(r.split(","),2),u=l[0],c=l[1];return{backgroundColor:n.get(u)||"black",label:i[u]+" ("+c+")",data:o.map((function(e){return a[e]})),stack:c,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:u==s[0],formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}})),u={datasets:l,labels:o.map((function(e){return e.toString()}))};return u}(l);u.datasets.forEach((function(e){e.data=e.data.filter((function(e,t){return n.selectedNrens.includes(u.labels[t])}))})),u.labels=u.labels.filter((function(e){return n.selectedNrens.includes(e)}));var c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=Array.from(new Set(l.map((function(e){return e.nren})))).length,d=p*n.selectedYears.length*2+5;return t.createElement(KC,{title:"Income Source Of NRENs",description:t.createElement("span",null,'The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',t.createElement("br",null),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."),category:Tr.Organisation,filter:c,data:l,filename:"income_source_of_nren_per_year"},t.createElement(IE,null,t.createElement(EP,null),t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{plugins:[CP],data:u,options:xP})),t.createElement(EP,null)))},SP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/parent-organizations",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(wd(l),(function(e,t){var n=t.name;e[n]=n})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,max1year:!0});return t.createElement(KC,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:Tr.Organisation,filter:c,data:l,filename:"nren_parent_organisations"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})))},OP=function(e){var n=e.children,r=e.location;r||(r="both");var o="top"===r||"both"===r,i="bottom"===r||"both"===r;return t.createElement(IE,null,o&&t.createElement("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),n,i&&t.createElement("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}))};function TP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _P={id:"htmlLegend",afterUpdate:function(e,t,n){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return TP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(n.containerIDs);try{var i,s=function(){var t=function(e,t){var n=document.getElementById(t);if(!n)return null;var r=n.querySelector("ul");return r||((r=document.createElement("ul")).style.display="flex",r.style.flexDirection="row",r.style.margin="0",r.style.padding="0",n.appendChild(r)),r}(0,r.value);if(!t)return{v:void 0};for(;t.firstChild;)t.firstChild.remove();e.options.plugins.legend.labels.generateLabels(e).forEach((function(n){var r=document.createElement("li");r.style.alignItems="center",r.style.cursor="pointer",r.style.display="flex",r.style.flexDirection="row",r.style.marginLeft="10px",r.onclick=function(){var t=e.config.type;"pie"===t||"doughnut"===t?e.toggleDataVisibility(n.index):e.setDatasetVisibility(n.datasetIndex,!e.isDatasetVisible(n.datasetIndex)),e.update()};var o=document.createElement("span");o.style.background=n.fillStyle,o.style.borderColor=n.strokeStyle,o.style.borderWidth=n.lineWidth+"px",o.style.display="inline-block",o.style.height="1rem",o.style.marginRight="10px",o.style.width="2.5rem";var i=document.createElement("p");i.style.color=n.fontColor,i.style.margin="0",i.style.padding="0",i.style.textDecoration=n.hidden?"line-through":"",i.style.fontSize="".concat(pp.defaults.font.size,"px"),i.style.fontFamily="".concat(pp.defaults.font.family),i.style.fontWeight="".concat(pp.defaults.font.weight);var s=document.createTextNode(n.text);i.appendChild(s),r.appendChild(o),r.appendChild(i),t.appendChild(r)}))};for(o.s();!(r=o.n()).done;)if(i=s())return i.v}catch(e){o.e(e)}finally{o.f()}}};const VP=_P;pp.register(ed,rd,Ip,Lp,Xp,Np);var RP={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.x&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(e,t){return"".concat(10*t,"%")}}},x2:{ticks:{callback:function(e){return"number"==typeof e?"".concat(e,"%"):e}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const IP=function(e){var n=e.roles,r=void 0!==n&&n,o=(0,t.useContext)(qt),i=o.filterSelection,s=o.setFilterSelection,a=AE("/api/staff",s,(function(e){return r&&e.technical_fte>0&&e.non_technical_fte>0||!r&&e.permanent_fte>0&&e.subcontracted_fte>0})),l=a.data,u=a.years,c=a.nrens,p=l.filter((function(e){return i.selectedYears.includes(e.year)&&i.selectedNrens.includes(e.nren)})),d=function(e,t,n){var r,o={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},i=Rt(r=t?["Technical FTE","Non-technical FTE"]:["Permanent FTE","Subcontracted FTE"],2),s=i[0],a=i[1],l=[o[s],o[a]],u=l[0],c=l[1],p=wd(e),d=[n].sort(),h=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),f=(0,fd.o1)(r,d).map((function(e){var t=Rt(e,2),n=t[0],r=t[1],o="";return"Technical FTE"===n?o="rgba(40, 40, 250, 0.8)":"Permanent FTE"===n?o="rgba(159, 129, 235, 1)":"Subcontracted FTE"===n?o="rgba(173, 216, 229, 1)":"Non-technical FTE"===n&&(o="rgba(116, 216, 242, 0.54)"),{backgroundColor:o,label:"".concat(n," (").concat(r,")"),data:h.map((function(e){var t,o,i,l,d,h,f,m=p.get(e).get(r);return m?(o=(t=m)[u],i=t[c],d=100*(o/(l=o+i)||0),h=100*(i/l||0),(f={})[s]=Math.round(Math.floor(100*d))/100,f[a]=Math.round(Math.floor(100*h))/100,f)[n]:0})),stack:r,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:f,labels:h}}(p,r,i.selectedYears[0]),h=t.createElement(RE,{max1year:!0,filterOptions:{availableYears:Kt(u),availableNrens:Kt(c.values())},filterSelection:i,setFilterSelection:s}),f=p.length,m=Math.max(1.5*f,20),g=r?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",y=r?"The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format":"The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.",v=r?"roles_of_nren_employees":"types_of_employment_for_nrens";return t.createElement(KC,{title:g,description:y,category:Tr.Organisation,filter:h,data:p,filename:v},t.createElement(OP,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(m,"rem")}},t.createElement(hd,{data:d,options:RP,plugins:[VP]}))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const kP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/staff",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e,t){var n=["Permanent FTE","Subcontracted FTE"],r={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},o=[r[n[0]],r[n[1]]],i=o[0],s=o[1],a=wd(e),l=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),u=t.sort().map((function(e,t){return{backgroundColor:"rgba(219, 42, 76, 1)",label:"Number of FTEs (".concat(e,")"),data:l.map((function(t){var n,r,o=a.get(t).get(e);return o?(null!==(n=o[i])&&void 0!==n?n:0)+(null!==(r=o[s])&&void 0!==r?r:0):0})),stack:"".concat(e),borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(e,t){return t.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(e){return e.chart.chartArea.width}}}}));return{datasets:u,labels:l}}(l,n.selectedYears),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=Array.from(new Set(l.map((function(e){return e.nren})))).length,d=Math.max(p*n.selectedYears.length*1.5+5,50),h=NE({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"});return t.createElement(KC,{title:"Number of NREN Employees",description:'The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.',category:Tr.Organisation,filter:c,data:l,filename:"number_of_nren_employees"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:h,plugins:[CP]}))))};function AP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const DP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/sub-organizations",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return AP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t.sort((function(e,t){return e.name.localeCompare(t.name)})));try{for(r.s();!(n=r.n()).done;){var o=n.value,i="".concat(o.name," (").concat(o.role,")");e[i]=i}}catch(e){r.e(e)}finally{r.f()}})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Sub-Organisations",description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:Tr.Organisation,filter:c,data:l,filename:"nren_suborganisations"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Suborganisation and Role",dottedBorder:!0})))},NP=function(){var e="audits",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/standards",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)&&null!==t[e]})),c=yd(Ed(u,e),(function(e,t){if(t.audit_specifics)return t.audit_specifics})),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"External and Internal Audits of Information Security Management Systems",description:"The table below shows whether NRENs have external and/or internal audits of the information security management systems (eg. risk management and policies). Where extra information has been provided, such as whether a certified security auditor on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator mark ringed in black.",category:Tr.Policy,filter:h,data:u,filename:"audits_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},MP=function(){var e="business_continuity_plans",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/standards",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(t){return r.selectedYears.includes(t.year)&&r.selectedNrens.includes(t.nren)&&null!==t[e]})),c=yd(Ed(u,e),(function(e,t){if(t.business_continuity_plans_specifics)return t.business_continuity_plans_specifics})),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"NREN Business Continuity Planning",description:"The table below shows which NRENs have business continuity plans in place to ensure business continuation and operations. Extra details about whether the NREN complies with any international standards, and whether they test the continuity plans regularly can be seen by hovering over the marker. The presence of this extra information is denoted by a black ring around the marker.",category:Tr.Policy,filter:h,data:u,filename:"business_continuity_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))};pp.register(ed,rd,Ip,Lp,Xp,Np);const LP=function(){var e="amount",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/central-procurement",o,(function(t){return null!=t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=Od(u,e,"Procurement Value"),p=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o}),d=Array.from(new Set(u.map((function(e){return e.nren})))).length,h=Math.max(d*r.selectedYears.length*1.5+5,50),f=t.createElement("span",null,"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."),m=NE({title:"Software Procurement Value",valueTransform:function(e){var t=new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"});return"".concat(t.format(e))}});return t.createElement(KC,{title:"Value of Software Procured for Customers by NRENs",description:f,category:Tr.Policy,filter:p,data:u,filename:"central_procurement"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(h,"rem")}},t.createElement(hd,{data:c,options:m,plugins:[CP]}))))},jP=function(){var e="strategic_plan",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/policy",o,(function(t){return!!t[e]})),s=i.data,a=(i.years,i.nrens),l=(s?vd(s):[]).filter((function(e){return r.selectedNrens.includes(e.nren)})),u=xd(wd(l),(function(t,n){var r=n[e];t[r]=r})),c=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(a.values())},filterSelection:r,setFilterSelection:o});return t.createElement(KC,{title:"NREN Corporate Strategies",description:"The table below contains links to the NRENs most recent corporate strategic plans. NRENs are asked if updates have been made to their corporate strategy over the previous year. To avoid showing outdated links, only the most recent responses are shown.",category:Tr.Policy,filter:c,data:l,filename:"nren_corporate_strategy"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})))},FP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/crisis-exercises",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"exercise_descriptions"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"},d=new Map(Object.entries(p).map((function(e){var t=Rt(e,2),n=t[0];return[t[1],n]})));return t.createElement(KC,{title:"Crisis Exercises - NREN Operation and Participation",description:"Many NRENs run or participate in crisis exercises to test procedures and train employees. The table below shows whether NRENs have run or participated in an exercise in the previous year. ",category:Tr.Policy,filter:c,data:l,filename:"crisis_exercise_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:Object.values(p),dataLookup:u,circle:!0,columnLookup:d})))},BP=function(){var e="crisis_management_procedure",n=function(t){return null!==t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/standards",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Ed(c,e),d=["Yes","No"],h=new Map([[d[0],"True"],[d[1],"False"]]),f=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i,coloredYears:!0});return t.createElement(KC,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:Tr.Policy,filter:f,data:c,filename:"crisis_management_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:d,columnLookup:h,dataLookup:p})))};function qP(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return HP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function HP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const zP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/eosc-listings",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n,r=qP(t);try{for(r.s();!(n=r.n()).done;){var o,i=qP(n.value.service_names);try{for(i.s();!(o=i.n()).done;){var s=o.value;e[s]=s}}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=t.createElement("span",null,"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list.");return t.createElement(KC,{title:"NREN Services Listed on the EOSC Portal",description:p,category:Tr.Policy,filter:c,data:l,filename:"nren_eosc_listings"},t.createElement(IE,null,t.createElement(HE,{data:u,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})))},QP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/policy",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]].forEach((function(n){var r=Rt(n,2),o=r[0],i=r[1],s=t[o];s&&(e[i]=s)}))})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Policies",description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:Tr.Policy,filter:u,data:a,filename:"nren_policies"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})))},UP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/security-controls",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"security_control_descriptions"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"},d=new Map(Object.entries(p).map((function(e){var t=Rt(e,2),n=t[0];return[t[1],n]})));return t.createElement(KC,{title:"Security Controls Used by NRENs",description:"The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.",category:Tr.Policy,filter:c,data:l,filename:"security_control_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:Object.values(p),dataLookup:u,circle:!0,columnLookup:d})))},WP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/service-management",r),i=o.data,s=o.years,a=o.nrens,l="service_level_targets",u=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)&&null!==e[l]})),c=Ed(u,l),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs Offering Service Level Targets",description:"The table below shows which NRENs offer Service Levels Targets for their services. If NRENs have never responded to this question in the survey, they are excluded. ",category:Tr.Policy,filter:h,data:u,filename:"service_level_targets"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},$P=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/service-management",r),i=o.data,s=o.years,a=o.nrens,l="service_management_framework",u=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)&&null!==e[l]})),c=Ed(u,l),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs Operating a Formal Service Management Framework",description:"The chart below shows which NRENs operate a formal service management framework for all of their services. NRENs which have never answered this question cannot be selected.",category:Tr.Policy,filter:h,data:u,filename:"service_management_framework"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))};var GP=t.createElement("span",null,"✔");function JP(e){var n=e.dataLookup,r=e.rowInfo,o=e.categoryLookup,i=e.isTickIcon,s=void 0!==i&&i;if(!n)return t.createElement("div",{className:"matrix-border"});var a=Object.entries(o).map((function(e){var o,i=Rt(e,2),a=i[0],l=i[1],u=Object.entries(r).map((function(e){var r=Rt(e,2),o=r[0],i=r[1],l=[];return n.forEach((function(e){e.forEach((function(e){var t=e.get(a);if(t){var n=t[i];null!=n&&(n=Object.values(n)[0]);var r=null!=n&&s?GP:n;l.push(r)}}))})),l.length?t.createElement("tr",{key:o},t.createElement("th",{className:"fixed-column"},o),l.map((function(e,n){return t.createElement("td",{key:n},e)}))):null})),c=Array.from(n.entries()).reduce((function(e,t){var n=Rt(t,2),r=n[0],o=n[1];return Array.from(o.entries()).forEach((function(t){var n=Rt(t,2),o=n[0];n[1].get(a)&&(e[r]||(e[r]=[]),e[r].push(o))})),e}),{});return t.createElement(Er,{title:l,startCollapsed:!0,key:a,theme:"-matrix"},u?t.createElement("div",{className:"table-responsive"},t.createElement(jE,{className:"matrix-table",bordered:!0},t.createElement("thead",null,(o=Object.entries(c),t.createElement(t.Fragment,null,t.createElement("tr",null,t.createElement("th",{className:"fixed-column"}),o.map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("th",{key:r,colSpan:o.length,style:{width:"".concat(8*o.length,"rem")}},r)}))),t.createElement("tr",null,t.createElement("th",{className:"fixed-column"}),o.flatMap((function(e){var n=Rt(e,2),r=n[0];return n[1].map((function(e){return t.createElement("th",{key:"".concat(r,"-").concat(e)},e)}))})))))),t.createElement("tbody",null,u))):t.createElement("div",{style:{paddingLeft:"5%"}},t.createElement("p",null,"No data available for this section.")))}));return t.createElement("div",{className:"matrix-border"},a)}const YP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/services-offered",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Pd(l,["service_category"],"user_category"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"Services Offered by NRENs by Types of Users",description:t.createElement("span",null,"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."),category:Tr.Policy,filter:c,data:l,filename:"nren_services_offered"},t.createElement(IE,null,t.createElement(JP,{dataLookup:u,rowInfo:{"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},categoryLookup:Rr,isTickIcon:!0})))};function KP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KP(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ZP=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/institution-urls",r),i=o.data,s=o.nrens,a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r}),c=a.map((function(e){var t;return XP(XP({},e),{},{urls:(null!==(t=e.urls)&&void 0!==t?t:[]).join(", ")})}));return t.createElement(KC,{title:"Webpages Listing Institutions and Organisations Connected to NREN Networks",description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:Tr.ConnectedUsers,filter:u,data:c,filename:"institution_urls"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})))};var eS=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,"Proportion of Different Categories of Institutions Served by NRENs"),dn.ConnectivityLevel,"Level of IP Connectivity by Institution Type"),dn.ConnectionCarrier,"Methods of Carrying IP Traffic to Users"),dn.ConnectivityLoad,"Connectivity Load"),dn.ConnectivityGrowth,"Connectivity Growth"),dn.CommercialChargingLevel,"Commercial Charging Level"),dn.CommercialConnectivity,"Commercial Connectivity"),tS=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,t.createElement("span",null,"European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",t.createElement("br",null),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category.")),dn.ConnectivityLevel,t.createElement("span",null,"The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",t.createElement("br",null),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer.")),dn.ConnectionCarrier,t.createElement("span",null,"The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",t.createElement(St,{to:"/connected-proportion",className:""},t.createElement("span",null,eS[dn.ConnectedProportion])))),dn.ConnectivityLoad,t.createElement("span",null,"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types.")),dn.ConnectivityGrowth,t.createElement("span",null,"The table below illustrates the anticipated traffic growth within NREN networks over the next three years.")),dn.CommercialChargingLevel,t.createElement("span",null,"The table below outlines the typical charging levels for various types of commercial connections.")),dn.CommercialConnectivity,t.createElement("span",null,"The table below outlines the types of commercial organizations NRENs connect.")),nS=tn(tn(tn(tn(tn(tn(tn({},dn.ConnectedProportion,{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"}),dn.ConnectivityLevel,{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"}),dn.ConnectionCarrier,{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"}),dn.ConnectivityLoad,{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"}),dn.ConnectivityGrowth,{"Percentage growth":"growth"}),dn.CommercialChargingLevel,{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"}),dn.CommercialConnectivity,{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"});const rS=function(e){var n,r,o=e.page,i="/api/connected-".concat(o.toString()),s=(0,t.useContext)(qt),a=s.filterSelection,l=s.setFilterSelection,u=AE(i,l),c=u.data,p=u.years,d=u.nrens,h=c.filter((function(e){return a.selectedYears.includes(e.year)&&a.selectedNrens.includes(e.nren)})),f=!1;o==dn.CommercialConnectivity?(r=Ir,f=!0,n=Pd(h,Object.keys(Ir),void 0)):o==dn.CommercialChargingLevel?(r=kr,f=!0,n=Pd(h,Object.keys(kr),void 0)):o==dn.ConnectionCarrier?(r=Rr,f=!0,n=Pd(h,["carry_mechanism"],"user_category")):(dn.ConnectedProportion,r=Rr,n=Pd(h,Object.values(nS[o]),"user_category",!1));var m=t.createElement(RE,{filterOptions:{availableYears:Kt(p),availableNrens:Kt(d.values())},filterSelection:a,setFilterSelection:l}),g=nS[o],y="nren_connected_".concat(o.toString());return t.createElement(KC,{title:eS[o],description:tS[o],category:Tr.ConnectedUsers,filter:m,data:h,filename:y},t.createElement(IE,null,t.createElement(JP,{dataLookup:n,rowInfo:g,isTickIcon:f,categoryLookup:r})))},oS=function(e){var n=e.data,r=e.dottedBorder,o=e.columns;return t.createElement(jE,{borderless:!0,className:"compendium-table"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"nren-column"},t.createElement("span",null,"NREN")),t.createElement("th",{className:"year-column"},t.createElement("span",null,"Year")),Object.values(o).map((function(e,n){return t.createElement("th",{key:n,className:"blue-column"},t.createElement("span",null,e))})))),t.createElement("tbody",null,function(e){var n=e.data,r=e.dottedBorder,o=void 0!==r&&r,i=e.columns;return Array.from(n.entries()).map((function(e){var n=Rt(e,2),r=n[0],s=n[1];return Array.from(s.entries()).map((function(e,n){var s=Rt(e,2),a=s[0],l=s[1];return t.createElement("tr",{key:r+a,className:o?"dotted-border":""},t.createElement("td",{className:"pt-3 nren-column text-nowrap"},0===n&&r),t.createElement("td",{className:"pt-3 year-column"},a),Object.keys(i).map((function(e,n){return t.createElement("td",{key:n,className:"pt-3 blue-column"},l[e])})))}))}))}({data:n,dottedBorder:r,columns:o})))};function iS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const sS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/remote-campuses",r,(function(e){return!!e.remote_campus_connectivity})),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=xd(Cd(l),(function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return iS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.remote_campus_connectivity){var i=o.connections.map((function(e){return e.country})).join(", ");e.countries=i,e.local_r_and_e_connection=o.connections.map((function(e){return e.local_r_and_e_connection?"Yes":"No"})).join(", ")}}}catch(e){r.e(e)}finally{r.f()}})),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Connectivity to Remote Campuses in Other Countries",description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:Tr.ConnectedUsers,filter:c,data:l,filename:"nren_remote_campuses"},t.createElement(IE,null,t.createElement(oS,{data:u,columns:{countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},dottedBorder:!0})))},aS=function(){var e="alien_wave_third_party",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/alien-wave",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=yd(Ed(u,e),(function(e,t){if(t.nr_of_alien_wave_third_party_services)return"No. of alien wavelength services: ".concat(t.nr_of_alien_wave_third_party_services," ")})),p=["Yes","Planned","No"],d=new Map([[p[0],"yes"],[p[1],"planned"],[p[2],"no"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"NREN Use of 3rd Party Alienwave/Lightpath Services",description:"The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source (transponder) operates in the same management domain as the amplifiers. Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over box. These are indicated by a black line around the coloured marker.",category:Tr.Network,filter:h,data:u,filename:"alien_wave_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},lS=function(){var e="alien_wave_internal",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/alien-wave",o,(function(t){return null!==t[e]})),s=i.data,a=i.years,l=i.nrens,u=s.filter((function(e){return r.selectedYears.includes(e.year)&&r.selectedNrens.includes(e.nren)})),c=Ed(u,e),p=["Yes","No"],d=new Map([[p[0],"True"],[p[1],"False"]]),h=t.createElement(RE,{filterOptions:{availableYears:Kt(a),availableNrens:Kt(l.values())},filterSelection:r,setFilterSelection:o,coloredYears:!0});return t.createElement(KC,{title:"Internal NREN Use of Alien Waves",description:"The table below shows NREN usage of alien waves internally within their own networks. This includes, for example, alien waves used between two equipment vendors, eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment. In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source (transponder) operates in the same management domain as the amplifiers.",category:Tr.Network,filter:h,data:u,filename:"alien_wave_internal_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,columnLookup:d,dataLookup:c})))},uS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/network-automation",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"network_automation"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=Kt(n.selectedYears.filter((function(e){return s.has(e)}))).sort();return t.createElement(KC,{title:"Network Tasks for which NRENs Use Automation ",description:"The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate. Where NRENs indicated that they are using automation for some network tasks, but did not specify which type of tasks, a marker has been placed in the 'other' column.",category:Tr.Network,filter:c,data:l,filename:"network_automation_nrens_per_year"},t.createElement(IE,null,t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}}),t.createElement("col",{span:2,style:{width:"12%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),t.createElement("th",{colSpan:2},"Device Provisioning"),t.createElement("th",{colSpan:2},"Data Collection"),t.createElement("th",{colSpan:2},"Configuration Management"),t.createElement("th",{colSpan:2},"Compliance"),t.createElement("th",{colSpan:2},"Reporting"),t.createElement("th",{colSpan:2},"Troubleshooting"),t.createElement("th",{colSpan:2},"Other")),t.createElement("tr",null,t.createElement("th",null),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"))),t.createElement("tbody",null,Array.from(u.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map((function(e){return t.createElement(t.Fragment,null,t.createElement("td",{key:"".concat(r,"-").concat(e,"-yes")},o.has("yes")&&p.map((function(n){var r,i,s=null===(r=o.get("yes"))||void 0===r?void 0:r.get(n),a=s?s.network_automation_specifics:null;return t.createElement(FE,{key:n,year:n,active:!(null===(i=o.get("yes"))||void 0===i||!i.has(n)||!(a&&a.indexOf(e)>-1)),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(r,"-").concat(e,"-planned")},o.has("planned")&&p.map((function(n){var r,i,s=null===(r=o.get("planned"))||void 0===r?void 0:r.get(n),a=s?s.network_automation_specifics:null;return t.createElement(FE,{key:n,year:n,active:!(null===(i=o.get("planned"))||void 0===i||!i.has(n)||!(a&&a.indexOf(e)>-1)),tooltip:"",rounded:!0})}))))})),t.createElement("td",{key:"".concat(r,"-other-yes")},o.has("yes")&&p.map((function(e){var n,r,i=null===(n=o.get("yes"))||void 0===n?void 0:n.get(e),s=i?i.network_automation_specifics:null;return t.createElement(FE,{key:e,year:e,active:!(null===(r=o.get("yes"))||void 0===r||!r.has(e)||!s||0!=s.length),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(r,"-other-planned")},o.has("planned")&&p.map((function(e){var n,r,i=null===(n=o.get("planned"))||void 0===n?void 0:n.get(e),s=i?i.network_automation_specifics:null;return t.createElement(FE,{key:e,year:e,active:!(null===(r=o.get("planned"))||void 0===r||!r.has(e)||!s||0!=s.length),tooltip:"",rounded:!0})}))))}))))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const cS=function(){var e="typical_backbone_capacity",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/capacity",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Od(c,e,"Backbone IP Capacity"),d=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),h=Array.from(new Set(c.map((function(e){return e.nren})))).length,f=Math.max(h*o.selectedYears.length*1.5+5,50),m="NREN Core IP Capacity",g=NE({title:m,tooltipUnit:"Gbit/s",unit:"Gbit/s"});return t.createElement(KC,{title:m,description:"The graph below shows the typical core usable backbone IP capacity of \n NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over \n the network.",category:Tr.Network,filter:d,data:c,filename:"capacity_core_ip"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},t.createElement(hd,{data:p,options:g,plugins:[CP]}))))};pp.register(ed,rd,Ip,Lp,Xp,Np);const pS=function(){var e="largest_link_capacity",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/capacity",i,n),a=s.data,l=s.years,u=s.nrens,c=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&n(e)})),p=Od(c,e,"Link capacity"),d=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),h=Array.from(new Set(c.map((function(e){return e.nren})))).length,f=Math.max(h*o.selectedYears.length*1.5+5,50),m="Capacity of the Largest Link in an NREN Network",g=NE({title:m,tooltipUnit:"Gbit/s",unit:"Gbit/s"});return t.createElement(KC,{title:m,description:"NRENs were asked to give the capacity (in Gbits/s) of the largest link in \n their network used for internet traffic (either shared or dedicated). While they were invited to \n provide the sum of aggregated links, backup capacity was not to be included.",category:Tr.Network,filter:d,data:c,filename:"capacity_largest_link"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(f,"rem")}},t.createElement(hd,{data:p,options:g,plugins:[CP]}))))},dS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/certificate-providers",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"provider_names"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=new Map([["Sectigo (outside of TCS)","Sectigo"]]);return t.createElement(KC,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"certificate_provider_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],dataLookup:u,circle:!0,columnLookup:p})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const hS=function(e){var n=e.national,r=n?"fibre_length_in_country":"fibre_length_outside_country",o=function(e){return null!=e[r]},i=(0,t.useContext)(qt),s=i.filterSelection,a=i.setFilterSelection,l=AE("/api/dark-fibre-lease",a,o),u=l.data,c=l.nrens,p=u.filter((function(e){return s.selectedNrens.includes(e.nren)&&o(e)})),d=Sd(p,r),h=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(c.values())},filterSelection:s,setFilterSelection:a}),f=DE({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),m=t.createElement("span",null,"This graph shows the number of Kilometres of dark fibre leased by NRENs ",n?"within":"outside"," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.");return t.createElement(KC,{title:"Kilometres of Leased Dark Fibre (".concat(n?"National":"International",")"),description:m,category:Tr.Network,filter:h,data:p,filename:"dark_fibre_lease_".concat(n?"national":"international")},t.createElement(IE,null,t.createElement(dd,{data:d,options:f})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const fS=function(){var e="fibre_length_in_country",n=function(t){return null!=t[e]},r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/dark-fibre-installed",i,n),a=s.data,l=s.nrens,u=a.filter((function(e){return o.selectedNrens.includes(e.nren)&&n(e)})),c=Sd(u,e),p=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(l.values())},filterSelection:o,setFilterSelection:i}),d=DE({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),h=t.createElement("span",null,"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.");return t.createElement(KC,{title:"Kilometres of Installed Dark Fibre",description:h,category:Tr.Network,filter:p,data:u,filename:"dark_fibre_lease_installed"},t.createElement(IE,null,t.createElement(dd,{data:c,options:d})))};function mS(e){var n=e.dataLookup,r=e.columnInfo;if(!n)return t.createElement("div",{className:"matrix-border-round"});var o=Array.from(n.entries()).map((function(e){var n=Rt(e,2),o=n[0],i=n[1];return t.createElement(Er,{title:o,key:o,theme:"-table",startCollapsed:!0},t.createElement("div",{className:"scrollable-horizontal"},Array.from(i.entries()).map((function(e,n){var o=Rt(e,2),i=o[0],s=o[1],a={"--before-color":"var(--color-of-the-year-muted-".concat(i%9,")")};return t.createElement("div",{key:i},t.createElement("span",{className:"scrollable-table-year color-of-the-year-".concat(i%9," bold-caps-16pt pt-3 ps-3"),style:a},i),t.createElement("div",{className:"colored-table bg-muted-color-of-the-year-".concat(i%9)},t.createElement(jE,null,t.createElement("thead",null,t.createElement("tr",null,Object.keys(r).map((function(e){return t.createElement("th",{key:e,style:{position:"relative"}},t.createElement("span",{style:a},e))})))),t.createElement("tbody",null,s.map((function(e,n){return t.createElement("tr",{key:n},Object.entries(r).map((function(n){var r=Rt(n,2),o=r[0],i=r[1],s=e[i];return t.createElement("td",{key:o},s)})))}))))))}))))}));return t.createElement("div",{className:"matrix-border-round"},o)}const gS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/external-connections",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Cd(Kt(l)),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=t.createElement(t.Fragment,null,t.createElement("p",null,"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."),t.createElement("p",null,"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."));return t.createElement(KC,{title:"NREN External IP Connections",description:p,category:Tr.Network,filter:c,data:l,filename:"nren_external_connections"},t.createElement(IE,null,t.createElement(mS,{dataLookup:u,columnInfo:{"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"}})))},yS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/fibre-light",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"light_description"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],d=new Map([[p[0],"nren_owns_and_operates"],[p[1],"nren_owns_outsourced_operation"],[p[2],"outsourced_ownership_and_operation"]]);return t.createElement(KC,{title:"Approaches to lighting NREN fibre networks",description:"This graphic shows the different ways NRENs can light their fibre networks. The option 'Other' is given, with extra information if you hover over the icon.",category:Tr.Network,filter:c,data:l,filename:"fibre_light_of_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d,circle:!0})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const vS=function(){var e="iru_duration",n=(0,t.useContext)(qt),r=n.filterSelection,o=n.setFilterSelection,i=AE("/api/dark-fibre-lease",o,(function(t){return null!=t[e]})),s=i.data,a=i.nrens,l=s.filter((function(e){return r.selectedNrens.includes(e.nren)})),u=Sd(l,e),c=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(a.values())},filterSelection:r,setFilterSelection:o}),p=DE({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999});return t.createElement(KC,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:t.createElement("span",null,"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."),category:Tr.Network,filter:c,data:l,filename:"iru_duration_data"},t.createElement(IE,null,t.createElement(dd,{data:u,options:p})))},bS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/monitoring-tools",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=yd(Ed(l,"tool_descriptions"),(function(e,t){if("netflow_analysis"===e&&t.netflow_processing_description)return t.netflow_processing_description})),c=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[c[0],"looking_glass"],[c[1],"status_dashboard"],[c[2],"historical_traffic_volumes"],[c[3],"netflow_analysis"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",description:"The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.",category:Tr.Network,filter:d,data:l,filename:"monitoring_tools_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},CS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/nfv",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"nfv_specifics"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=Kt(n.selectedYears.filter((function(e){return s.has(e)}))).sort();return t.createElement(KC,{title:"Kinds of Network Function Virtualisation used by NRENs ",description:"The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"network_function_virtualisation_nrens_per_year"},t.createElement(IE,null,t.createElement(jE,{className:"charging-struct-table",striped:!0,bordered:!0},t.createElement("colgroup",null,t.createElement("col",{span:1,style:{width:"20%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}}),t.createElement("col",{span:2,style:{width:"16%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),t.createElement("th",{colSpan:2},"Routers/switches"),t.createElement("th",{colSpan:2},"Firewalls"),t.createElement("th",{colSpan:2},"Load balancers"),t.createElement("th",{colSpan:2},"VPN Concentrator Services"),t.createElement("th",{colSpan:2},"Other")),t.createElement("tr",null,t.createElement("th",null),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"),t.createElement("th",null,"Yes"),t.createElement("th",null,"Planned"))),t.createElement("tbody",null,Array.from(u.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",null,r),["routers","firewalls","load_balancers","vpn_concentrators"].map((function(e){return t.createElement(t.Fragment,null,t.createElement("td",{key:"".concat(e,"-yes")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"yes"!=i.nfv),tooltip:"",rounded:!0})}))),t.createElement("td",{key:"".concat(e,"-planned")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"planned"!=i.nfv),tooltip:"",rounded:!0})}))))})),t.createElement("td",{key:"".concat(r,"-other-yes")},Array.from(o.keys()).filter((function(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)})).map((function(e){return t.createElement("div",{key:"".concat(e,"-yes")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"yes"!=(null==i?void 0:i.nfv)),tooltip:e,rounded:!0})})))}))),t.createElement("td",{key:"".concat(r,"-other-planned")},Array.from(o.keys()).filter((function(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)})).map((function(e){return t.createElement("div",{key:"".concat(e,"-planned")},o.has(e)&&p.map((function(n){var r=o.get(e),i=r.get(n);return t.createElement(FE,{key:n,year:n,active:r.has(n)&&!(!i||"planned"!=(null==i?void 0:i.nfv)),tooltip:e,rounded:!0})})))}))))}))))))},wS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/network-map-urls",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:Tr.Network,filter:u,data:a,filename:"network_map_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};pp.register(ed,rd,Ip,Lp,Xp,Np);const xS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/non-re-peers",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Od(l,"nr_of_non_r_and_e_peers","Number of Peers"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=Array.from(new Set(l.map((function(e){return e.nren})))).length,d=Math.max(p*n.selectedYears.length*1.5+5,50),h=NE({title:"Number of Non-R&E Peers"});return t.createElement(KC,{title:"Number of Non-R&E Networks NRENs Peer With",description:"The graph below shows the number of non-Research and Education networks \n NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google",category:Tr.Network,filter:c,data:l,filename:"non_r_and_e_peering"},t.createElement(IE,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:h,plugins:[CP]}))))},ES=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/ops-automation",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=yd(Ed(l,"ops_automation"),(function(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics})),c=["Yes","Planned","No"],p=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Automation of Operational Processes",description:"The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate.",category:Tr.Network,filter:d,data:l,filename:"ops_automation_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},PS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/passive-monitoring",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"method",!0),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0}),p=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],d=new Map([[p[0],"null"],[p[1],"span_ports"],[p[2],"taps"],[p[3],"both"]]);return t.createElement(KC,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:Tr.Network,filter:c,data:l,filename:"passive_monitoring_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:p,dataLookup:u,columnLookup:d})))},SS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/pert-team",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"pert_team"),c=["Yes","Planned","No"],p=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),d=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NRENs with Performance Enhancement Response Teams",description:"Some NRENs have an in-house Performance Enhancement Response Team, or PERT, to investigate network performance issues.",category:Tr.Network,filter:d,data:l,filename:"pert_team_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:c,columnLookup:p,dataLookup:u})))},OS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/siem-vendors",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=Ed(l,"vendor_names"),c=t.createElement(RE,{filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Vendors of SIEM/SOC systems used by NRENs",description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:Tr.Network,filter:c,data:l,filename:"siem_vendor_nrens_per_year"},t.createElement(IE,null,t.createElement(BE,{columns:["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],dataLookup:u,circle:!0})))};pp.register(ed,rd,Ip,Lp,Xp,Np);var TS={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){var t=e.dataset.label||"";return null!==e.parsed.x&&(t+=": ".concat(e.parsed.x,"%")),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:function(e,t){return"".concat(10*t,"%")}}},x2:{ticks:{callback:function(e){return"number"==typeof e?"".concat(e,"%"):e}},grid:{drawOnChartArea:!1},afterDataLimits:function(e){for(var t=-999999,n=999999,r=0,o=Object.keys(pp.instances);r<o.length;r++){var i=o[r];pp.instances[i]&&e.chart.scales.x2&&(n=Math.min(pp.instances[i].scales.x.min,n),t=Math.max(pp.instances[i].scales.x.max,t))}e.chart.scales.x2.options.min=n,e.chart.scales.x2.options.max=t,e.chart.scales.x2.min=n,e.chart.scales.x2.max=t}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};const _S=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-ratio",r),i=o.data,s=o.years,a=o.nrens,l=i.filter((function(e){return n.selectedYears.includes(e.year)&&n.selectedNrens.includes(e.nren)})),u=function(e,t){var n={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},r=wd(e),o=[t].sort(),i=Kt(new Set(e.map((function(e){return e.nren})))).sort((function(e,t){return e.localeCompare(t)})),s=(0,fd.o1)(["Research & Education","Commodity"],o).map((function(e){var t=Rt(e,2),o=t[0],s=t[1],a="";return"Research & Education"===o?a="rgba(40, 40, 250, 0.8)":"Commodity"===o&&(a="rgba(116, 216, 242, 0.54)"),{backgroundColor:a,label:"".concat(o," (").concat(s,")"),data:i.map((function(e){var t=r.get(e).get(s);return t?t[n[o]]:0})),stack:s,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}));return{datasets:s,labels:i}}(l,n.selectedYears[0]),c=t.createElement(RE,{max1year:!0,filterOptions:{availableYears:Kt(s),availableNrens:Kt(a.values())},filterSelection:n,setFilterSelection:r}),p=Array.from(new Set(l.map((function(e){return e.nren})))).map((function(e){return a.get(e)})).filter((function(e){return!!e})).length,d=Math.max(1.5*p,20);return t.createElement(KC,{title:"Types of traffic in NREN networks (Commodity v. Research & Education)",description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:Tr.Network,filter:c,data:l,filename:"types_of_traffic_in_nren_networks"},t.createElement(OP,null,t.createElement("div",{className:"chart-container",style:{height:"".concat(d,"rem")}},t.createElement(hd,{data:u,options:TS,plugins:[VP]}))))},VS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-stats",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){var n=bd(t);if(null!=n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i=Rt(o[r],2),s=i[0],a=i[1];e[s]=a}})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:Tr.Network,filter:u,data:a,filename:"traffic_stats_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};pp.register(ed,rd,Sp,Ep,Lp,Xp,Np);const RS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/traffic-volume",r),i=o.data,s=(o.years,o.nrens),a=i.filter((function(e){return n.selectedNrens.includes(e.nren)})),l=Sd(a,"from_customers"),u=Sd(a,"to_customers"),c=Sd(a,"from_external"),p=Sd(a,"to_external"),d=DE({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform:function(e){return e?e/1e3:0}}),h=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r});return t.createElement(KC,{title:"NREN Traffic - NREN Customers & External Networks",description:t.createElement("span",null,"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."),category:Tr.Network,filter:h,data:a,filename:"NREN_traffic_estimates_data"},t.createElement(IE,null,t.createElement(Tn,{style:{marginBottom:"30px"}},t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"}},"Traffic from NREN customer"),t.createElement(dd,{data:l,options:d})),t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"}},"Traffic to NREN customer"),t.createElement(dd,{data:u,options:d}))),t.createElement(Tn,{style:{marginTop:"30px"}},t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"}},"Traffic from external network"),t.createElement(dd,{data:c,options:d})),t.createElement(Vn,null,t.createElement("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"}},"Traffic to external network"),t.createElement(dd,{data:p,options:d})))))},IS=function(){var e=(0,t.useContext)(qt),n=e.filterSelection,r=e.setFilterSelection,o=AE("/api/weather-map",r),i=o.data,s=(o.years,o.nrens),a=(i?vd(i):[]).filter((function(e){return n.selectedNrens.includes(e.nren)})),l=xd(wd(a),(function(e,t){t.url&&(e[t.url]=t.url)})),u=t.createElement(RE,{filterOptions:{availableYears:[],availableNrens:Kt(s.values())},filterSelection:n,setFilterSelection:r,coloredYears:!0});return t.createElement(KC,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:Tr.Network,filter:u,data:a,filename:"weather_map_nrens_per_year"},t.createElement(IE,null,t.createElement(HE,{data:l,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})))};function kS(e){return yr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(e)}const AS=function(e){var n=e.year,r=e.active,o=e.serviceInfo,i=e.tickServiceIndex,s=e.current,a="No additional information available";if(void 0!==o){var l=o.service_name,u=o.year,c=o.product_name,p=o.official_description,d=o.additional_information;""==c&&""==p&&""==d||(a=l+" ("+u+")\n"+(c=c||"N/A")+"\n\nDescription: "+(p=p||"N/A")+"\nInformation: "+(d=d||"N/A"))}var h="";return"No additional information available"!==a&&(h="pill-shadow"),t.createElement("div",{className:"d-inline-block",key:n},r&&s?t.createElement("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"}},t.createElement(kS,{className:"rounded-pill color-of-the-current-service-".concat(i%13," bottom-tooltip ").concat(h)})):r&&!s?t.createElement("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"}},t.createElement(kS,{className:"rounded-pill color-of-the-previous-service-".concat(i%13," bottom-tooltip ").concat(h)})):t.createElement("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"}}," "))};var DS={};DS[hn.network_services]="network",DS[hn.isp_support]="ISP support",DS[hn.security]="security",DS[hn.identity]="identity",DS[hn.collaboration]="collaboration",DS[hn.multimedia]="multimedia",DS[hn.storage_and_hosting]="storage and hosting",DS[hn.professional_services]="professional";const NS=function(e){var n=e.category,r=(0,t.useContext)(qt),o=r.filterSelection,i=r.setFilterSelection,s=AE("/api/nren-services",i),a=s.data,l=s.years,u=s.nrens,c=Math.max.apply(Math,Kt(o.selectedYears)),p=a.filter((function(e){return o.selectedYears.includes(e.year)&&o.selectedNrens.includes(e.nren)&&e.service_category==n})),d={};p.forEach((function(e){d[e.service_name]=e.service_description}));var h=Object.entries(d).sort((function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1})),f=Ed(p,"service_name"),m=t.createElement(RE,{filterOptions:{availableYears:Kt(l),availableNrens:Kt(u.values())},filterSelection:o,setFilterSelection:i}),g=Kt(o.selectedYears.filter((function(e){return l.has(e)}))).sort();return t.createElement(KC,{title:"NREN "+DS[n]+" services matrix",description:"The service matrix shows the services NRENs offer to their users. These services are grouped thematically, with navigation possible via. the side menu. NRENs are invited to give extra information about their services; where this is provided, you will see a black circle around the marker. Hover over the marker to read more.",category:Tr.Services,filter:m,data:p,filename:"nren_services"},t.createElement(IE,null,t.createElement(jE,{className:"service-table",bordered:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null),h.map((function(e,n){var r=Rt(e,2),o=r[0],i=r[1];return t.createElement("th",{key:o,"data-description":i,className:"bottom-tooltip color-of-the-service-header-".concat(n%13)},o)})))),t.createElement("tbody",null,Array.from(f.entries()).map((function(e){var n=Rt(e,2),r=n[0],o=n[1];return t.createElement("tr",{key:r},t.createElement("td",{className:"bold-text"},r),h.map((function(e,n){var r=Rt(e,2),i=r[0];return r[1],t.createElement("td",{key:i},o.has(i)&&g.map((function(e){var r=o.get(i),s=r.get(e);return t.createElement(AS,{key:e,year:e,active:r.has(e),serviceInfo:s,tickServiceIndex:n,current:e==c})})))})))}))))))};function MS(){return LS.apply(this,arguments)}function LS(){return(LS=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function jS(){return FS.apply(this,arguments)}function FS(){return(FS=Dt(Mt().mark((function e(){var t,n,r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/active/year");case 3:return t=e.sent,e.next=6,t.json();case 6:if(!("year"in(n=e.sent))){e.next=12;break}return r=n.year,e.abrupt("return",r.toString());case 12:return console.log("Invalid response format: Failed fetching active survey year."),e.abrupt("return","");case 14:e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(0),console.error("Failed fetching active survey year:",e.t0),e.abrupt("return","");case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}const BS=function(){var e=lr().trackPageView,n=(0,t.useContext)(Ft).user,r=We(),o=!!n.id,i=!!o&&!!n.nrens.length,s=i?n.nrens[0]:"",a=!!o&&n.permissions.admin,l=!!o&&"observer"===n.role,u=Rt((0,t.useState)(null),2),c=u[0],p=u[1];(0,t.useEffect)((function(){var t=function(){var e=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jS();case 2:t=e.sent,p(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t(),e({documentTitle:"GEANT Survey Landing Page"})}),[e]);var d=function(){var e=Rt((0,t.useState)(),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){MS().then((function(e){r(e[0])}))}),[]),t.createElement(jE,{striped:!0,bordered:!0,responsive:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"(N)REN"),t.createElement("th",null,"Link"),t.createElement("th",null,"Survey Status"))),t.createElement("tbody",null,n&&n.responses.map((function(e){return t.createElement("tr",{key:e.nren.id},t.createElement("td",null,e.nren.name),t.createElement("td",null,t.createElement(St,{to:"/survey/response/".concat(n.year,"/").concat(e.nren.name)},t.createElement("span",null,"Navigate to survey"))),t.createElement("td",null,e.status))}))))};return t.createElement(Sn,{className:"py-5 grey-container"},t.createElement(Tn,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS SURVEY"),t.createElement("div",{className:"wordwrap pt-4",style:{maxWidth:"75rem"}},t.createElement("p",{style:{textAlign:"left"}},"Hello,",t.createElement("br",null),"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",t.createElement("a",{href:"/login"},"here"),", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",t.createElement("br",null),"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",t.createElement("br",null),"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.createElement("br",null),"Thank you."),t.createElement("span",null,"Current registration status:"),t.createElement("br",null),t.createElement("br",null),a?t.createElement("ul",null,t.createElement("li",null,t.createElement("span",null,"You are logged in as a Compendium Administrator")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(St,{to:"/survey/admin/surveys"},"here")," to access the survey management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(St,{to:"/survey/admin/users"},"here")," to access the user management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement("a",{href:"#",onClick:function(){fetch("/api/data-download").then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){var t=function(e){var t=pC.book_new();e.forEach((function(e){var n=pC.json_to_sheet(e.data);e.meta&&function(e,t,n){for(var r,o=pC.decode_range(null!==(r=e["!ref"])&&void 0!==r?r:""),i=-1,s=o.s.c;s<=o.e.c;s++){var a=e[pC.encode_cell({r:o.s.r,c:s})];if(a&&"string"==typeof a.v&&a.v===t){i=s;break}}if(-1!==i)for(var l=o.s.r+1;l<=o.e.r;++l){var u=pC.encode_cell({r:l,c:i});e[u]&&"n"===e[u].t&&(e[u].z=n)}else console.error("Column '".concat(t,"' not found."))}(n,e.meta.columnName,e.meta.format),pC.book_append_sheet(t,n,e.name)}));for(var n=tC(t,{bookType:"xlsx",type:"binary"}),r=new ArrayBuffer(n.length),o=new Uint8Array(r),i=0;i<n.length;i++)o[i]=255&n.charCodeAt(i);return new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}(e),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download="data.xlsx",document.body.appendChild(n),n.click(),document.body.removeChild(n)})).catch((function(e){console.error("Error fetching data:",e)}))}},"here")," to do the full data download."))):t.createElement("ul",null,c&&!a&&!l&&i&&function(){try{return r("/survey/response/".concat(c,"/").concat(s)),t.createElement("li",null,"Redirecting to survey...")}catch(e){return console.error("Error navigating:",e),null}}(),o?t.createElement("li",null,t.createElement("span",null,"You are logged in")):t.createElement("li",null,t.createElement("span",null,"You are not logged in")),o&&!l&&!i&&t.createElement("li",null,t.createElement("span",null,"Your access to the survey has not yet been approved")),o&&!l&&!i&&t.createElement("li",null,t.createElement("span",null,"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page")),o&&l&&t.createElement("li",null,t.createElement("span",null,"You have read-only access to the following surveys:"))),o&&l&&t.createElement(d,null)))))};let qS={data:""},HS=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||qS,zS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,QS=/\/\*[^]*?\*\/| +/g,US=/\n+/g,WS=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?WS(s,i):i+"{"+WS(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=WS(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=WS.p?WS.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},$S={},GS=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+GS(e[n]);return t}return e},JS=(e,t,n,r,o)=>{let i=GS(e),s=$S[i]||($S[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!$S[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=zS.exec(e.replace(QS,""));)t[4]?r.shift():t[3]?(n=t[3].replace(US," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(US," ").trim();return r[0]})(e);$S[s]=WS(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&$S.g?$S.g:null;return n&&($S.g=$S[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})($S[s],t,r,a),s},YS=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":WS(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function KS(e){let t=this||{},n=e.call?e(t.p):e;return JS(n.unshift?n.raw?YS(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,HS(t.target),t.g,t.o,t.k)}KS.bind({g:1});let XS,ZS,eO,tO=KS.bind({k:1});function nO(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:ZS&&ZS()},a),n.o=/ *go\d+/.test(l),a.className=KS.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let u=e;return e[0]&&(u=a.as||e,delete a.as),eO&&u[0]&&eO(a),XS(u,a)}return t?t(o):o}}var rO=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,oO=(()=>{let e=0;return()=>(++e).toString()})(),iO=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),sO=new Map,aO=e=>{if(sO.has(e))return;let t=setTimeout((()=>{sO.delete(e),pO({type:4,toastId:e})}),1e3);sO.set(e,t)},lO=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=sO.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?lO(e,{type:1,toast:n}):lO(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?aO(r):e.toasts.forEach((e=>{aO(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},uO=[],cO={toasts:[],pausedAt:void 0},pO=e=>{cO=lO(cO,e),uO.forEach((e=>{e(cO)}))},dO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},hO=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||oO()}))(t,e,n);return pO({type:2,toast:r}),r.id},fO=(e,t)=>hO("blank")(e,t);fO.error=hO("error"),fO.success=hO("success"),fO.loading=hO("loading"),fO.custom=hO("custom"),fO.dismiss=e=>{pO({type:3,toastId:e})},fO.remove=e=>pO({type:4,toastId:e}),fO.promise=(e,t,n)=>{let r=fO.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(fO.success(rO(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{fO.error(rO(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var mO=(e,t)=>{pO({type:1,toast:{id:e,height:t}})},gO=()=>{pO({type:5,time:Date.now()})},yO=tO` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -7,7 +7,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,mO=XS` +}`,vO=tO` from { transform: scale(0); opacity: 0; @@ -15,7 +15,7 @@ from { to { transform: scale(1); opacity: 1; -}`,gO=XS` +}`,bO=tO` from { transform: scale(0) rotate(90deg); opacity: 0; @@ -23,7 +23,7 @@ from { to { transform: scale(1) rotate(90deg); opacity: 1; -}`,yO=ZS("div")` +}`,CO=nO("div")` width: 20px; opacity: 0; height: 20px; @@ -32,14 +32,14 @@ to { position: relative; transform: rotate(45deg); - animation: ${fO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${yO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; - animation: ${mO} 0.15s ease-out forwards; + animation: ${vO} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; @@ -52,18 +52,18 @@ to { } &:before { - animation: ${gO} 0.15s ease-out forwards; + animation: ${bO} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } -`,vO=XS` +`,wO=tO` from { transform: rotate(0deg); } to { transform: rotate(360deg); } -`,bO=ZS("div")` +`,xO=nO("div")` width: 12px; height: 12px; box-sizing: border-box; @@ -71,8 +71,8 @@ to { border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; - animation: ${vO} 1s linear infinite; -`,CO=XS` + animation: ${wO} 1s linear infinite; +`,EO=tO` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -80,7 +80,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,wO=XS` +}`,PO=tO` 0% { height: 0; width: 0; @@ -94,7 +94,7 @@ to { 100% { opacity: 1; height: 10px; -}`,xO=ZS("div")` +}`,SO=nO("div")` width: 20px; opacity: 0; height: 20px; @@ -103,13 +103,13 @@ to { position: relative; transform: rotate(45deg); - animation: ${CO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${EO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; - animation: ${wO} 0.2s ease-out forwards; + animation: ${PO} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; @@ -121,16 +121,16 @@ to { height: 10px; width: 6px; } -`,EO=ZS("div")` +`,OO=nO("div")` position: absolute; -`,PO=ZS("div")` +`,TO=nO("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; -`,SO=XS` +`,_O=tO` from { transform: scale(0.6); opacity: 0.4; @@ -138,14 +138,14 @@ from { to { transform: scale(1); opacity: 1; -}`,OO=ZS("div")` +}`,VO=nO("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; - animation: ${SO} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${_O} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; -`,TO=({toast:e})=>{let{icon:n,type:r,iconTheme:o}=e;return void 0!==n?"string"==typeof n?t.createElement(OO,null,n):n:"blank"===r?null:t.createElement(PO,null,t.createElement(bO,{...o}),"loading"!==r&&t.createElement(EO,null,"error"===r?t.createElement(yO,{...o}):t.createElement(xO,{...o})))},_O=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,VO=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,RO=ZS("div")` +`,RO=({toast:e})=>{let{icon:n,type:r,iconTheme:o}=e;return void 0!==n?"string"==typeof n?t.createElement(VO,null,n):n:"blank"===r?null:t.createElement(TO,null,t.createElement(xO,{...o}),"loading"!==r&&t.createElement(OO,null,"error"===r?t.createElement(CO,{...o}):t.createElement(SO,{...o})))},IO=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,kO=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,AO=nO("div")` display: flex; align-items: center; background: #fff; @@ -157,16 +157,16 @@ to { pointer-events: auto; padding: 8px 10px; border-radius: 8px; -`,IO=ZS("div")` +`,DO=nO("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; -`,kO=t.memo((({toast:e,position:n,style:r,children:o})=>{let i=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=nO()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[_O(n),VO(n)];return{animation:t?`${XS(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${XS(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||n||"top-center",e.visible):{opacity:0},s=t.createElement(TO,{toast:e}),a=t.createElement(IO,{...e.ariaProps},eO(e.message,e));return t.createElement(RO,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof o?o({icon:s,message:a}):t.createElement(t.Fragment,null,s,a))}));!function(e,t,n,r){zS.p=void 0,JS=e,YS=void 0,KS=void 0}(t.createElement);var AO=({id:e,className:n,style:r,onHeightUpdate:o,children:i})=>{let s=t.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;o(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return t.createElement("div",{ref:s,className:n,style:r},i)},DO=GS` +`,NO=t.memo((({toast:e,position:n,style:r,children:o})=>{let i=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=iO()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[IO(n),kO(n)];return{animation:t?`${tO(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${tO(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||n||"top-center",e.visible):{opacity:0},s=t.createElement(RO,{toast:e}),a=t.createElement(DO,{...e.ariaProps},rO(e.message,e));return t.createElement(AO,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof o?o({icon:s,message:a}):t.createElement(t.Fragment,null,s,a))}));!function(e,t,n,r){WS.p=void 0,XS=e,ZS=void 0,eO=void 0}(t.createElement);var MO=({id:e,className:n,style:r,onHeightUpdate:o,children:i})=>{let s=t.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;o(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return t.createElement("div",{ref:s,className:n,style:r},i)},LO=KS` z-index: 9999; > * { pointer-events: auto; } -`,NO=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:o,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:n,pausedAt:r}=((e={})=>{let[n,r]=(0,t.useState)(aO);(0,t.useEffect)((()=>(sO.push(r),()=>{let e=sO.indexOf(r);e>-1&&sO.splice(e,1)})),[n]);let o=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||uO[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:o}})(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>pO.dismiss(t.id)),n);t.visible&&pO.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let o=(0,t.useCallback)((()=>{r&&lO({type:6,time:Date.now()})}),[r]),i=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=t||{},s=n.filter((t=>(t.position||i)===(e.position||i)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<a&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[n]);return{toasts:n,handlers:{updateHeight:dO,startPause:hO,endPause:o,calculateOffset:i}}})(r);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((r=>{let s=r.position||n,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:nO()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:n}));return t.createElement(AO,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?DO:"",style:a},"custom"===r.type?eO(r.message,r):i?i(r):t.createElement(kO,{toast:r,position:s}))})))},MO=pO,LO=o(522),jO=o(755),FO=function(e){return e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}({}),BO=function(e){return e.closed="closed",e.open="open",e.preview="preview",e.published="published",e}({});function qO(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return HO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HO(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function HO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zO(e,t){if(0==t.column.indexValue&&"item"in t.row){var n,r,o=t.row.item;void 0!==o.customDescription&&(null===(n=t.htmlElement.parentElement)||void 0===n||n.children[0].children[0].setAttribute("description",o.customDescription),null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].children[0].classList.add("survey-tooltip"))}}function QO(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")}function UO(e,t){var n,r='[data-name="'+t.question.name+'"]',o=null===(n=document.querySelector(r))||void 0===n?void 0:n.querySelector("h5");o&&!o.classList.contains("sv-header-flex")&&t.question.updateElementCss()}function WO(e,t){if("description"===t.name){var n=t.text;if(n.length){for(var r=["e.g.","i.e.","etc.","vs."],o=0,i=r;o<i.length;o++){var s=i[o];n.includes(s)&&(n=n.replace(s,s.slice(0,-1)))}for(var a=n.split(". "),l=0;l<a.length;l++)if(0!=a[l].length){var u,c=qO(r);try{for(c.s();!(u=c.n()).done;){var p=u.value;a[l].includes(p.slice(0,-1))&&(a[l]=a[l].replace(p.slice(0,-1),p))}}catch(e){c.e(e)}finally{c.f()}}var d=a.map((function(e){return e.length?"<p>".concat((t=e).includes("*")?t.split("*").map((function(e,t){return 0==t?e:1==t?"<ul><li>".concat(e,"</li>"):"<li>".concat(e,"</li>")})).join("")+"</ul>":t.endsWith(".")?t:t+".","</p>"):null;var t})).join("");t.html=d}}}function $O(e,t,n){var r;n.verificationStatus.set(e.name,t);var o=document.createElement("button");o.type="button",o.className="sv-action-bar-item verification",o.innerHTML=t,t==FO.Unverified?(o.innerHTML="No change from previous year",o.className+=" verification-required",o.onclick=function(){"display"!=n.mode&&(e.validate(),$O(e,FO.Verified,n))}):(o.innerHTML="Answer updated",o.className+=" verification-ok");var i='[data-name="'+e.name+'"]',s=null===(r=document.querySelector(i))||void 0===r?void 0:r.querySelector("h5"),a=null==s?void 0:s.querySelector(".verification");a?a.replaceWith(o):null==s||s.appendChild(o)}const GO=function(e){var n=e.surveyModel,r=(0,t.useCallback)((function(e,t){var r,o=n.verificationStatus.get(t.question.name),i=null===(r=t.question)||void 0===r?void 0:r.readOnly;o&&!i?$O(t.question,o,n):i&&function(e){var t,n=!!e.visibleIf,r='[data-name="'+e.name+'"]',o=document.querySelector(r),i=null==o?void 0:o.querySelector("h5");if(n)o.style.display="none";else{i&&(i.style.textDecoration="line-through");var s=null===(t=document.querySelector(r))||void 0===t?void 0:t.querySelector(".sv-question__content");s&&(s.style.display="none")}}(t.question)}),[n]),o=(0,t.useCallback)((function(e,t){n.verificationStatus.get(t.question.name)==FO.Unverified&&$O(t.question,FO.Edited,n)}),[n]);return n.css.question.title.includes("sv-header-flex")||(n.css.question.title="sv-title sv-question__title sv-header-flex",n.css.question.titleOnError="sv-question__title--error sv-error-color-fix"),n.onAfterRenderQuestion.hasFunc(r)||(n.onAfterRenderQuestion.add(r),n.onAfterRenderQuestion.add(UO)),n.onValueChanged.hasFunc(o)||n.onValueChanged.add(o),n.onUpdateQuestionCssClasses.hasFunc(QO)||n.onUpdateQuestionCssClasses.add(QO),n.onMatrixAfterCellRender.hasFunc(zO)||n.onMatrixAfterCellRender.add(zO),n.onTextMarkdown.hasFunc(WO)||n.onTextMarkdown.add(WO),t.createElement(jO.Survey,{model:n})};function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JO(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const KO=function(e){var n=e.surveyModel,r=e.pageNoSetter,o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=function(e){return!(null===e.value||void 0===e.value||""===e.value||"checkbox"===e.getType()&&0==e.value.length||"multipletext"===e.getType()&&(1===Object.keys(e.value).length&&void 0===Object.values(e.value)[0]||0===Object.keys(e.value).length))};(0,t.useEffect)((function(){var e=function(e){if(e&&e.pages){var t=[];e.pages.forEach((function(n){var r=n.questions.filter((function(e){return e.startWithNewLine})),o=r.length,i=r.filter(a).length,s=o-i,l=i/o;t.push({completionPercentage:100*l,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:n.title})})),s(t)}};n.onValueChanged.add((function(t){e(t)})),e(n)}),[n]);var l={height:"0.5rem",transition:"width 0.3s ease"};return t.createElement(Sn,{className:"survey-progress"},t.createElement(Tn,null,i.map((function(e,o){return t.createElement(Vn,{xs:12,md:!0,key:o,onClick:function(){return r(o)},style:{cursor:"pointer",margin:"0.5rem"}},t.createElement("div",null,t.createElement("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"}},o+1),t.createElement("span",{style:YO({whiteSpace:"nowrap"},n.currentPageNo==o&&{fontWeight:"bold"})},e.pageTitle),t.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},t.createElement("div",{style:YO(YO({},l),{},{width:"".concat(e.completionPercentage,"%"),backgroundColor:"#262261"})}),t.createElement("div",{style:YO(YO({},l),{},{width:"".concat(e.unansweredPercentage,"%"),backgroundColor:"#cdcdcd"})}))))}))))},XO=function(e){var n=e.surveyModel,r=e.surveyActions,o=e.year,i=e.nren,s=e.children,a=Rt((0,t.useState)(0),2),l=a[0],u=a[1],c=Rt((0,t.useState)(!1),2),p=c[0],d=c[1],h=Rt((0,t.useState)(""),2),f=h[0],m=h[1],g=Rt((0,t.useState)(""),2),y=g[0],v=g[1],b=(0,t.useContext)(Ft).user,C=(0,t.useCallback)((function(){d("edit"==n.mode),m(n.lockedBy),u(n.currentPageNo),v(n.status)}),[n]);(0,t.useEffect)((function(){C()}),[C]);var w=function(e){u(e),n.currentPageNo=e},x=function(){w(n.currentPageNo+1)},E=function(){var e=Dt(Mt().mark((function e(t){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r[t]();case 2:C();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(e,t){return S(e,(function(){return E(t)}))},S=function(e,n){return t.createElement("button",{className:"sv-btn sv-btn--navigation",onClick:n},e)},O="Save and stop editing",T="Save progress",_="Start editing",V="Complete Survey",R=function(){return t.createElement("div",{className:"survey-edit-buttons-block"},!p&&!f&&n.editAllowed&&P(_,"startEdit"),!p&&f&&f==b.name&&P("Discard any unsaved changes and release your lock","releaseLock"),p&&P(T,"save"),p&&P(O,"saveAndStopEdit"),p&&P(V,"complete"),l!==n.visiblePages.length-1&&S("Next Section",x))};return t.createElement(Sn,null,t.createElement(Tn,{className:"survey-content"},t.createElement("h2",null,t.createElement("span",{className:"survey-title"},o," Compendium Survey "),t.createElement("span",{className:"survey-title-nren"}," ",i," "),t.createElement("span",null," - ",y)),t.createElement("div",{style:{marginTop:"1rem",textAlign:"justify"}},t.createElement("p",null,"To get started, click “",_,"” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."),t.createElement("p",null,t.createElement("b",null,"In a small change, the survey now asks about this calendar year, i.e. ",o)," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."),t.createElement("p",null,"Press the “",T,"“ or “",O,"“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “",V,"“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “",V,"“ button."),t.createElement("p",null,"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those.")),t.createElement("p",null,"Thank you for taking the time to fill in the ",o," Compendium Survey. Any questions or requests can be sent to ",t.createElement("a",{href:"mailto:Partner-Relations@geant.org"},t.createElement("span",null,"Partner-Relations@geant.org"))),p&&t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("b",null,"Remember to click “",O,"” before leaving the page."))),t.createElement(Tn,null,R()),t.createElement(Tn,{className:"survey-content"},!p&&t.createElement("div",{className:"survey-edit-explainer"},!f&&n.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!f&&!n.editAllowed&&"The survey is in read-only mode and can not be edited by you.",f&&f!=b.name&&"The survey is in read-only mode and currently being edited by: "+f+". To start editing the survey, ask them to complete their edits.",f&&f==b.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.')),t.createElement(Tn,null,t.createElement(KO,{surveyModel:n,pageNoSetter:w}),s),t.createElement(Tn,null,R()))},ZO=function(e){var n=e.when,r=e.onPageExit;return function(e){let{router:n,basename:r}=nt(et.UseBlocker),o=rt(tt.UseBlocker),[i,s]=t.useState(""),a=t.useCallback((t=>{if("/"===r)return e();let{currentLocation:n,nextLocation:o,historyAction:i}=t;return e((Me({},n,{pathname:I(n.pathname,r)||n.pathname}),Me({},o,{pathname:I(o.pathname,r)||o.pathname})))}),[r,e]);t.useEffect((()=>{let e=String(++it);return s(e),()=>n.deleteBlocker(e)}),[n]),t.useEffect((()=>{""!==i&&n.getBlocker(i,a)}),[n,i,a]),i&&o.blockers.has(i)&&o.blockers.get(i)}((function(){if(n()){var t=window.confirm(e.message);return t&&r(),!t}return!1})),t.createElement("div",null)};var eT={validateWebsiteUrl:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||null!=e&&null!=e&&""!=e))return!0;try{return!(e=e.trim()).includes(" ")&&!!new URL(e)}catch(e){return!1}}},tT={data_protection_contact:function(){return!0}};function nT(e){try{var t,n=this.question,r=e[0]||void 0;t=n.data&&"name"in n.data?n.data.name:n.name;var o=n.value,i=tT[t];if(i)return i.apply(void 0,[o].concat(Kt(e.slice(1))));var s=eT[r];if(!s)throw new Error("Validation function ".concat(r," not found for question ").concat(t));return s.apply(void 0,[o].concat(Kt(e.slice(1))))}catch(e){return console.error(e),!1}}LO.Serializer.addProperty("itemvalue","customDescription:text"),LO.Serializer.addProperty("question","hideCheckboxLabels:boolean");const rT=function(e){var n=e.loadFrom,r=Rt((0,t.useState)(),2),o=r[0],i=r[1],s=function(){let{matches:e}=t.useContext(qe),n=e[e.length-1];return n?n.params:{}}(),a=s.year,l=s.nren,u=Rt((0,t.useState)("loading survey..."),2),c=u[0],p=u[1];LO.FunctionFactory.Instance.hasFunction("validateQuestion")||LO.FunctionFactory.Instance.register("validateQuestion",nT);var d=lr().trackPageView,h=(0,t.useCallback)((function(e){return e.preventDefault(),e.returnValue=""}),[]),f=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l)}),[]),m=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f)}),[]);if((0,t.useEffect)((function(){function e(){return(e=Dt(Mt().mark((function e(){var t,r,o,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n+a+(l?"/"+l:""));case 2:return t=e.sent,e.next=5,t.json();case 5:if(r=e.sent,t.ok){e.next=12;break}if(!("message"in r)){e.next=11;break}throw new Error(r.message);case 11:throw new Error("Request failed with status ".concat(t.status));case 12:for(s in(o=new LO.Model(r.model)).setVariable("surveyyear",a),o.setVariable("previousyear",parseInt(a)-1),o.showNavigationButtons=!1,o.requiredText="",o.verificationStatus=new Map,r.verification_status)o.verificationStatus.set(s,r.verification_status[s]);o.data=r.data,o.clearIncorrectValues(!0),o.currentPageNo=r.page,o.mode=r.mode,o.lockedBy=r.locked_by,o.status=r.status,o.editAllowed=r.edit_allowed,i(o);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(function(){return e.apply(this,arguments)})().catch((function(e){return p("Error when loading survey: "+e.message)})).then((function(){d({documentTitle:"Survey for ".concat(l," (").concat(a,")")})}))}),[]),!o)return c;var g,y,v,b,C,w=function(){var e=Dt(Mt().mark((function e(t,n){var r,i,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return","Saving not available in inpect/try mode");case 2:return r={lock_uuid:t.lockUUID,new_state:n,data:t.data,page:t.currentPageNo,verification_status:Object.fromEntries(t.verificationStatus)},e.prev=3,e.next=6,fetch("/api/response/save/"+a+"/"+l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(r)});case 6:return i=e.sent,e.next=9,i.json();case 9:if(s=e.sent,i.ok){e.next=12;break}return e.abrupt("return",s.message);case 12:o.mode=s.mode,o.lockedBy=s.locked_by,o.status=s.status,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(3),e.abrupt("return","Unknown Error: "+e.t0.message);case 20:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t,n){return e.apply(this,arguments)}}(),x=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",r=function(e,t){e.verificationStatus.get(t.name)==FO.Unverified&&(""==n&&(n=t.name),t.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};t&&o.onValidateQuestion.add(r);var i=e();return t&&o.onValidateQuestion.remove(r),i||MO("Validation failed!"),i},E={save:(C=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(o.validate.bind(o,!0,!0),!1)){e.next=4;break}return MO("Please correct the invalid fields before saving!"),e.abrupt("return");case 4:return e.next=6,w(o,"editing");case 6:t=e.sent,MO(t?"Failed saving survey: "+t:"Survey saved!");case 8:case"end":return e.stop()}}),e)}))),function(){return C.apply(this,arguments)}),complete:(b=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x(o.validate.bind(o,!0,!0))){e.next=6;break}return e.next=4,w(o,"completed");case 4:(t=e.sent)?MO("Failed completing survey: "+t):(MO("Survey completed!"),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f));case 6:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)}),saveAndStopEdit:(v=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(o.validate.bind(o,!0,!0),!1)){e.next=4;break}return MO("Please correct the invalid fields before saving."),e.abrupt("return");case 4:return e.next=6,w(o,"readonly");case 6:(t=e.sent)?MO("Failed saving survey: "+t):(MO("Survey saved!"),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f));case 8:case"end":return e.stop()}}),e)}))),function(){return v.apply(this,arguments)}),startEdit:(y=Dt(Mt().mark((function e(){var t,n,r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/lock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return MO("Failed starting edit: "+n.message),e.abrupt("return");case 9:for(r in addEventListener("pagehide",f),addEventListener("beforeunload",h,{capture:!0}),n.verification_status)o.verificationStatus.set(r,n.verification_status[r]);if(o.data=n.data,o.clearIncorrectValues(!0),o.mode=n.mode,o.lockedBy=n.locked_by,o.lockUUID=n.lock_uuid,o.status=n.status,x(o.validate.bind(o,!0,!0),!1)){e.next=22;break}return MO("Some fields are invalid, please correct them."),e.abrupt("return");case 22:case"end":return e.stop()}}),e)}))),function(){return y.apply(this,arguments)}),releaseLock:(g=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/unlock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return MO("Failed releasing lock: "+n.message),e.abrupt("return");case 9:o.mode=n.mode,o.lockedBy=n.locked_by,o.status=n.status;case 12:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)}),validatePage:function(){x(o.validatePage.bind(o))&&MO("Page validation successful!")}};return t.createElement(Sn,{className:"survey-container"},t.createElement(NO,null),t.createElement(ZO,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:function(){return"edit"==o.mode&&!!l},onPageExit:m}),t.createElement(XO,{surveyModel:o,surveyActions:E,year:a,nren:l},t.createElement(GO,{surveyModel:o})))},oT=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},iT={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function sT(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=iT[e];return n+parseInt(eo(t,r[0]),10)+parseInt(eo(t,r[1]),10)}const aT={[Fo]:"collapse",[Ho]:"collapsing",[Bo]:"collapsing",[qo]:"collapse show"},lT=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=sT,...m},g)=>{const y="function"==typeof l?l():l,v=(0,t.useMemo)((()=>oT((e=>{e.style[y]="0"}),e)),[y,e]),b=(0,t.useMemo)((()=>oT((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),C=(0,t.useMemo)((()=>oT((e=>{e.style[y]=null}),r)),[y,r]),w=(0,t.useMemo)((()=>oT((e=>{e.style[y]=`${f(y,e)}px`,Go(e)}),o)),[o,f,y]),x=(0,t.useMemo)((()=>oT((e=>{e.style[y]=null}),i)),[y,i]);return(0,gn.jsx)(Yo,{ref:g,addEndListener:$o,...m,"aria-expanded":m.role?u:null,onEnter:v,onEntering:b,onEntered:C,onExit:w,onExiting:x,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,n)=>t.cloneElement(a,{...n,className:mn()(s,a.props.className,aT[e],"width"===y&&"collapse-horizontal")})})}));function uT(e,t){return Array.isArray(e)?e.includes(t):e===t}const cT=t.createContext({});cT.displayName="AccordionContext";const pT=cT,dT=t.forwardRef((({as:e="div",bsPrefix:n,className:r,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(pT);return n=Cn(n,"accordion-collapse"),(0,gn.jsx)(lT,{ref:a,in:uT(l,i),...s,className:mn()(r,n),children:(0,gn.jsx)(e,{children:t.Children.only(o)})})}));dT.displayName="AccordionCollapse";const hT=dT,fT=t.createContext({eventKey:""});fT.displayName="AccordionItemContext";const mT=fT,gT=t.forwardRef((({as:e="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{n=Cn(n,"accordion-body");const{eventKey:d}=(0,t.useContext)(mT);return(0,gn.jsx)(hT,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,gn.jsx)(e,{ref:p,...c,className:mn()(r,n)})})}));gT.displayName="AccordionBody";const yT=gT,vT=t.forwardRef((({as:e="button",bsPrefix:n,className:r,onClick:o,...i},s)=>{n=Cn(n,"accordion-button");const{eventKey:a}=(0,t.useContext)(mT),l=function(e,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,t.useContext)(pT);return t=>{let s=e===r?null:e;i&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,t),null==n||n(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(pT);return"button"===e&&(i.type="button"),(0,gn.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:mn()(r,n,!uT(u,a)&&"collapsed")})}));vT.displayName="AccordionButton";const bT=vT,CT=t.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},s)=>(t=Cn(t,"accordion-header"),(0,gn.jsx)(e,{ref:s,...i,className:mn()(n,t),children:(0,gn.jsx)(bT,{onClick:o,children:r})}))));CT.displayName="AccordionHeader";const wT=CT,xT=t.forwardRef((({as:e="div",bsPrefix:n,className:r,eventKey:o,...i},s)=>{n=Cn(n,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,gn.jsx)(mT.Provider,{value:a,children:(0,gn.jsx)(e,{ref:s,...i,className:mn()(r,n)})})}));xT.displayName="AccordionItem";const ET=xT,PT=t.forwardRef(((e,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=oE(e,{activeKey:"onSelect"}),p=Cn(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,gn.jsx)(pT.Provider,{value:d,children:(0,gn.jsx)(r,{ref:n,...c,className:mn()(s,p,l&&`${p}-flush`)})})}));PT.displayName="Accordion";const ST=Object.assign(PT,{Button:bT,Collapse:hT,Item:ET,Header:wT,Body:yT}),OT=t.forwardRef((({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{const l=`${e=Cn(e,"spinner")}-${n}`;return(0,gn.jsx)(o,{ref:a,...s,className:mn()(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})}));OT.displayName="Spinner";const TT=OT;function _T(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function VT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function RT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M331.3 308.7L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-15.6-7.1-22.6 0-7.1 7.1-6 16.6 0 22.6l52.7 52.7-52.7 52.7c-6.7 6.7-6.4 16.3 0 22.6 6.4 6.4 16.4 6.2 22.6 0l52.7-52.7 52.7 52.7c6.2 6.2 16.4 6.2 22.6 0 6.3-6.2 6.3-16.4 0-22.6z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function IT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}const kT=function(e){var n=e.status;return{completed:t.createElement(VT,{title:n,size:24,color:"green"}),started:t.createElement(_T,{title:n,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.createElement(IT,{title:n,size:24,color:"red"}),"not started":t.createElement(RT,{title:n,size:24})}[n]||n};function AT(e){var n=e.text,r=e.helpText,o=e.onClick,i=e.enabled,s=Rt((0,t.useState)(!1),2),a=s[0],l=s[1],u=function(){var e=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}return e.abrupt("return");case 2:return l(!0),e.prev=3,e.next=6,o();case 6:return e.prev=6,l(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[3,,6,9]])})));return function(){return e.apply(this,arguments)}}();return t.createElement(as,{onClick:u,disabled:!i,style:{pointerEvents:"auto",marginLeft:".5rem"},title:r},a&&t.createElement(TT,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),n)}const DT=function(){var e=Rt((0,t.useState)([]),2),n=e[0],r=e[1],o=(0,t.useRef)(!1);function i(e,t,n){return s.apply(this,arguments)}function s(){return(s=Dt(Mt().mark((function e(t,n,o){var i,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{method:"POST"});case 3:return i=e.sent,e.next=6,i.json();case 6:s=e.sent,i.ok?(MO(o),AS().then((function(e){r(e)}))):MO(n+s.message),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),MO(n+e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function a(){return(a=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/survey/new","Failed creating new survey: ","Created new survey");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){return u.apply(this,arguments)}function u(){return(u=Dt(Mt().mark((function e(t,n){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.current){e.next=3;break}return MO("Wait for status update to be finished..."),e.abrupt("return");case 3:return o.current=!0,e.next=6,i("/api/survey/"+n+"/"+t,"Error while updating "+t+" survey status to "+n+": ",t+" survey status updated to "+n);case 6:o.current=!1;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(){return(c=Dt(Mt().mark((function e(t,n){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/response/unlock/"+t+"/"+n,"Error while unlocking "+n+" "+t+" survey response: ",n+" "+t+" survey response unlocked");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){AS().then((function(e){r(e)}))}),[]);var p=n.length>0&&n.every((function(e){return e.status==BO.published})),d=We(),h=window.location.origin+"/data?preview";return t.createElement("div",{className:"py-5 grey-container"},t.createElement(Sn,{style:{maxWidth:"100rem"}},t.createElement(Tn,null,t.createElement(NO,null),t.createElement(as,{onClick:function(){return a.apply(this,arguments)},disabled:!p,style:{pointerEvents:"auto",width:"10rem",margin:"1rem"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(ST,{defaultActiveKey:"0"},n.map((function(e,n){return t.createElement(ST.Item,{eventKey:n.toString(),key:e.year},t.createElement(ST.Header,null,e.year," - ",e.status),t.createElement(ST.Body,null,t.createElement("div",{style:{marginLeft:".5rem",marginBottom:"1rem"}},t.createElement(as,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/inspect/".concat(e.year))},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"Inspect Survey"),t.createElement(as,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/try/".concat(e.year))},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"Try Survey"),t.createElement(AT,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:e.status==BO.closed,onClick:function(){return l(e.year,"open")}}),t.createElement(AT,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:e.status==BO.open,onClick:function(){return l(e.year,"close")}}),t.createElement(AT,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:e.status==BO.closed||e.status==BO.preview,onClick:function(){return l(e.year,"preview")}}),t.createElement(AT,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:e.status==BO.preview||e.status==BO.published,onClick:function(){return l(e.year,"publish")}}),e.status==BO.preview&&t.createElement("span",null," Preview link: ",t.createElement("a",{href:h},h))),t.createElement(jE,null,t.createElement("colgroup",null,t.createElement("col",{style:{width:"10%"}}),t.createElement("col",{style:{width:"20%"}}),t.createElement("col",{style:{width:"20%"}}),t.createElement("col",{style:{width:"30%"}}),t.createElement("col",{style:{width:"20%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"NREN"),t.createElement("th",null,"Status"),t.createElement("th",null,"Lock"),t.createElement("th",null,"Management Notes"),t.createElement("th",null,"Actions"))),t.createElement("tbody",null,e.responses.map((function(n){return t.createElement("tr",{key:n.nren.id},t.createElement("td",null,n.nren.name),t.createElement("td",null,t.createElement(kT,{status:n.status})),t.createElement("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"}},n.lock_description),t.createElement("td",null,"notes"in n&&t.createElement("textarea",{onInput:(r=function(t){return r=e.year,o=n.nren.id,i=t.target.value,void fetch("/api/survey/"+r+"/"+o+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:i||""})}).then(function(){var e=Dt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:n=e.sent,t.ok?MO.success("Notes saved"):MO.error("Failed saving notes: "+n.message||0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){MO.error("Failed saving notes: "+e)}));var r,o,i},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout(o),o=setTimeout((function(){r.apply(void 0,t),clearTimeout(o)}),1e3)}),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:n.notes||""})),t.createElement("td",null,t.createElement(as,{onClick:function(){return d("/survey/response/".concat(e.year,"/").concat(n.nren.name))},style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN."},"open"),t.createElement(as,{onClick:function(){return function(e,t){return c.apply(this,arguments)}(e.year,n.nren.name)},disabled:""==n.lock_description,style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!"},"remove lock")));var r,o}))))))}))))))};function NT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NT(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LT(){return(LT=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function jT(){return(jT=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var FT=function(){var e=Dt(Mt().mark((function e(t,n){var r,o,i,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=MT({id:t},n),o={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},e.next=4,fetch("/api/user/".concat(t),o);case 4:return i=e.sent,e.next=7,i.json();case 7:if(s=e.sent,i.ok){e.next=10;break}throw new Error(s.message);case 10:return e.abrupt("return",s.user);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),BT=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:e.permissions.active&&t.permissions.active?"admin"===e.role&&"admin"!==t.role?1:"admin"!==e.role&&"admin"===t.role?-1:e.name.localeCompare(t.name):e.name.localeCompare(t.name)};const qT=function(){var e=Rt((0,t.useState)([]),2),n=e[0],r=e[1],o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=(0,t.useContext)(Ft).user,l=Rt((0,t.useState)({idx:-1,asc:!0}),2),u=l[0],c=l[1],p=Rt((0,t.useState)([]),2),d=p[0],h=p[1];(0,t.useEffect)((function(){(function(){return LT.apply(this,arguments)})().then((function(e){r(e),h(e.sort(BT))})),function(){return jT.apply(this,arguments)}().then((function(e){s(e.sort((function(e,t){return e.name.localeCompare(t.name)})))}))}),[]),(0,t.useEffect)((function(){h(Kt(n.sort(BT)))}),[n]);for(var f=function(e,t){var o=n.findIndex((function(e){return e.id===t.id})),i=Kt(n),s=e.target.name,a={};a[s]="active"===s?e.target.checked:e.target.value,FT(t.id,a).then((function(e){i[o]=e,r(i)})).catch((function(e){alert(e.message)}))},m=function(e){var t;if(e===u.idx||(5===e||0===e)&&-1===u.idx)return 5!==e&&0!==e||(e=-1),c({idx:e,asc:!u.asc}),void h(Kt(d.reverse()));0===e?(t=BT,c({idx:-1,asc:!0})):1===e?(t=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:0},c({idx:e,asc:!0})):2===e?(t=function(e,t){return e.role.localeCompare(t.role)},c({idx:e,asc:!0})):3===e?(t=function(e,t){return e.email.localeCompare(t.email)},c({idx:e,asc:!0})):4===e?(t=function(e,t){return e.name.localeCompare(t.name)},c({idx:e,asc:!0})):5===e?(t=BT,c({idx:-1,asc:!0})):6===e?(t=function(e,t){return 0===e.nrens.length&&0===t.nrens.length?0:0===e.nrens.length?-1:0===t.nrens.length?1:e.nrens[0].localeCompare(t.nrens[0])},c({idx:e,asc:!0})):(t=BT,c({idx:e,asc:!0})),h(n.sort(t))},g={},y=0;y<=6;y++)g[y]=u.idx===y?{"aria-sort":u.asc?"ascending":"descending"}:null;return t.createElement(Sn,{style:{maxWidth:"90vw"}},t.createElement(Tn,null,t.createElement("h1",null," User Management Page"),t.createElement(jE,null,t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",tE({},g[0],{onClick:function(){return m(0)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Id"),t.createElement("th",tE({},g[1],{onClick:function(){return m(1)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Active"),t.createElement("th",tE({},g[2],{onClick:function(){return m(2)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Role"),t.createElement("th",tE({},g[3],{onClick:function(){return m(3)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Email"),t.createElement("th",tE({},g[4],{onClick:function(){return m(4)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Full Name"),t.createElement("th",tE({},g[5],{onClick:function(){return m(5)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"OIDC Sub"),t.createElement("th",tE({},g[6],{onClick:function(){return m(6)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"NREN"))),t.createElement("tbody",null,d.map((function(e){return t.createElement("tr",{key:e.id},t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?"Active":t.createElement("input",{type:"checkbox",name:"active",checked:e.permissions.active,onChange:function(t){return f(t,e)}})),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?e.role.charAt(0).toUpperCase()+e.role.slice(1):t.createElement("select",{name:"role",defaultValue:e.role,onChange:function(t){return f(t,e)}},t.createElement("option",{value:"admin"},"Admin"),t.createElement("option",{value:"user"},"User"),t.createElement("option",{value:"observer"},"Observer"))),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.email),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.name),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.oidc_sub),t.createElement("td",{style:{border:"1px dotted #ddd"}},t.createElement("select",{name:"nren",multiple:!1,value:e.nrens.length>0?(n=e.nrens[0],null===(r=i.find((function(e){return e.id==n||e.name==n})))||void 0===r?void 0:r.id):"",onChange:function(t){return f(t,e)}},t.createElement("option",{value:""},"Select NREN"),i.map((function(e){return t.createElement("option",{key:"nren_"+e.id,value:e.id},e.name)})))));var n,r}))))))};var HT,zT=function(){var e="/"!==Qe().pathname;return t.createElement(t.Fragment,null,t.createElement(pn,null,t.createElement(In,null),e?t.createElement(at,null):t.createElement(ur,null),t.createElement(ls,null)),t.createElement(Dn,null))},QT=(HT=[{path:"",element:t.createElement(zT,null),children:[{path:"/budget",element:t.createElement(ME,null)},{path:"/funding",element:t.createElement(PP,null)},{path:"/employment",element:t.createElement(IP,{key:"staffgraph"})},{path:"/traffic-ratio",element:t.createElement(SS,null)},{path:"/roles",element:t.createElement(IP,{roles:!0,key:"staffgraphroles"})},{path:"/employee-count",element:t.createElement(kP,null)},{path:"/charging",element:t.createElement(qE,null)},{path:"/suborganisations",element:t.createElement(DP,null)},{path:"/parentorganisation",element:t.createElement(SP,null)},{path:"/ec-projects",element:t.createElement(zE,null)},{path:"/policy",element:t.createElement(qP,null)},{path:"/traffic-volume",element:t.createElement(TS,null)},{path:"/data",element:t.createElement(Dr,null)},{path:"/institutions-urls",element:t.createElement(YP,null)},{path:"/connected-proportion",element:t.createElement(eS,{page:dn.ConnectedProportion,key:dn.ConnectedProportion})},{path:"/connectivity-level",element:t.createElement(eS,{page:dn.ConnectivityLevel,key:dn.ConnectivityLevel})},{path:"/connectivity-growth",element:t.createElement(eS,{page:dn.ConnectivityGrowth,key:dn.ConnectivityGrowth})},{path:"/connection-carrier",element:t.createElement(eS,{page:dn.ConnectionCarrier,key:dn.ConnectionCarrier})},{path:"/connectivity-load",element:t.createElement(eS,{page:dn.ConnectivityLoad,key:dn.ConnectivityLoad})},{path:"/commercial-charging-level",element:t.createElement(eS,{page:dn.CommercialChargingLevel,key:dn.CommercialChargingLevel})},{path:"/commercial-connectivity",element:t.createElement(eS,{page:dn.CommercialConnectivity,key:dn.CommercialConnectivity})},{path:"/network-services",element:t.createElement(kS,{category:hn.network_services,key:hn.network_services})},{path:"/isp-support-services",element:t.createElement(kS,{category:hn.isp_support,key:hn.isp_support})},{path:"/security-services",element:t.createElement(kS,{category:hn.security,key:hn.security})},{path:"/identity-services",element:t.createElement(kS,{category:hn.identity,key:hn.identity})},{path:"/collaboration-services",element:t.createElement(kS,{category:hn.collaboration,key:hn.collaboration})},{path:"/multimedia-services",element:t.createElement(kS,{category:hn.multimedia,key:hn.multimedia})},{path:"/storage-and-hosting-services",element:t.createElement(kS,{category:hn.storage_and_hosting,key:hn.storage_and_hosting})},{path:"/professional-services",element:t.createElement(kS,{category:hn.professional_services,key:hn.professional_services})},{path:"/dark-fibre-lease",element:t.createElement(cS,{national:!0,key:"darkfibrenational"})},{path:"/dark-fibre-lease-international",element:t.createElement(cS,{key:"darkfibreinternational"})},{path:"/dark-fibre-installed",element:t.createElement(pS,null)},{path:"/remote-campuses",element:t.createElement(rS,null)},{path:"/fibre-light",element:t.createElement(fS,null)},{path:"/monitoring-tools",element:t.createElement(gS,null)},{path:"/pert-team",element:t.createElement(xS,null)},{path:"/passive-monitoring",element:t.createElement(wS,null)},{path:"/alien-wave",element:t.createElement(oS,null)},{path:"/alien-wave-internal",element:t.createElement(iS,null)},{path:"/external-connections",element:t.createElement(hS,null)},{path:"/ops-automation",element:t.createElement(CS,null)},{path:"/network-automation",element:t.createElement(sS,null)},{path:"/traffic-stats",element:t.createElement(OS,null)},{path:"/weather-map",element:t.createElement(_S,null)},{path:"/network-map",element:t.createElement(vS,null)},{path:"/nfv",element:t.createElement(yS,null)},{path:"/certificate-providers",element:t.createElement(uS,null)},{path:"/siem-vendors",element:t.createElement(ES,null)},{path:"/capacity-largest-link",element:t.createElement(lS,null)},{path:"/capacity-core-ip",element:t.createElement(aS,null)},{path:"/non-rne-peers",element:t.createElement(bS,null)},{path:"/iru-duration",element:t.createElement(mS,null)},{path:"/audits",element:t.createElement(NP,null)},{path:"/business-continuity",element:t.createElement(MP,null)},{path:"/crisis-management",element:t.createElement(BP,null)},{path:"/crisis-exercise",element:t.createElement(FP,null)},{path:"/central-procurement",element:t.createElement(LP,null)},{path:"/security-control",element:t.createElement(HP,null)},{path:"/services-offered",element:t.createElement($P,null)},{path:"/service-management-framework",element:t.createElement(QP,null)},{path:"/service-level-targets",element:t.createElement(zP,null)},{path:"/corporate-strategy",element:t.createElement(jP,null)},{path:"survey/admin/surveys",element:t.createElement(DT,null)},{path:"survey/admin/users",element:t.createElement(qT,null)},{path:"survey/admin/inspect/:year",element:t.createElement(rT,{loadFrom:"/api/response/inspect/"})},{path:"survey/admin/try/:year",element:t.createElement(rT,{loadFrom:"/api/response/try/"})},{path:"survey/response/:year/:nren",element:t.createElement(rT,{loadFrom:"/api/response/load/"})},{path:"survey/*",element:t.createElement(LS,null)},{path:"*",element:t.createElement(ur,null)}]}],function(t){const n=t.window?t.window:"undefined"!=typeof window?window:void 0,r=void 0!==n&&void 0!==n.document&&void 0!==n.document.createElement,o=!r;let s;if(a(t.routes.length>0,"You must provide a non-empty routes array to createRouter"),t.mapRouteProperties)s=t.mapRouteProperties;else if(t.detectErrorBoundary){let e=t.detectErrorBoundary;s=t=>({hasErrorBoundary:e(t)})}else s=Z;let u,p,d,f={},v=m(t.routes,s,void 0,f),b=t.basename||"/",C=t.unstable_dataStrategy||ue,w=t.unstable_patchRoutesOnMiss,x=i({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),E=null,P=new Set,S=null,O=null,T=null,_=null!=t.hydrationData,V=g(v,t.history.location,b),R=null;if(null==V&&!w){let e=Ce(404,{pathname:t.history.location.pathname}),{matches:n,route:r}=be(v);V=n,R={[r.id]:e}}if(V&&w&&ct(V,v,t.history.location.pathname).active&&(V=null),V)if(V.some((e=>e.route.lazy)))p=!1;else if(V.some((e=>e.route.loader)))if(x.v7_partialHydration){let e=t.hydrationData?t.hydrationData.loaderData:null,n=t.hydrationData?t.hydrationData.errors:null,r=t=>!t.route.loader||("function"!=typeof t.route.loader||!0!==t.route.loader.hydrate)&&(e&&void 0!==e[t.route.id]||n&&void 0!==n[t.route.id]);if(n){let e=V.findIndex((e=>void 0!==n[e.route.id]));p=V.slice(0,e+1).every(r)}else p=V.every(r)}else p=null!=t.hydrationData;else p=!0;else p=!1,V=[];let k,A={historyAction:t.history.action,location:t.history.location,matches:V,initialized:p,navigation:J,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||R,fetchers:new Map,blockers:new Map},D=e.Pop,N=!1,M=!1,L=new Map,j=null,F=!1,H=!1,z=[],Q=[],U=new Map,$=0,oe=-1,ie=new Map,he=new Set,fe=new Map,xe=new Map,Re=new Set,Me=new Map,Le=new Map,je=new Map,Fe=!1;function Be(e,t){void 0===t&&(t={}),A=i({},A,e);let n=[],r=[];x.v7_fetcherPersist&&A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Re.has(t)?r.push(t):n.push(t))})),[...P].forEach((e=>e(A,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),x.v7_fetcherPersist&&(n.forEach((e=>A.fetchers.delete(e))),r.forEach((e=>Ke(e))))}function qe(n,r,o){var s,a;let l,{flushSync:c}=void 0===o?{}:o,p=null!=A.actionData&&null!=A.navigation.formMethod&&Te(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(s=n.state)?void 0:s._isRedirect);l=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:p?A.actionData:null;let d=r.loaderData?ge(A.loaderData,r.loaderData,r.matches||[],r.errors):A.loaderData,h=A.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,K))));let f,m=!0===N||null!=A.navigation.formMethod&&Te(A.navigation.formMethod)&&!0!==(null==(a=n.state)?void 0:a._isRedirect);if(u&&(v=u,u=void 0),F||D===e.Pop||(D===e.Push?t.history.push(n,n.state):D===e.Replace&&t.history.replace(n,n.state)),D===e.Pop){let e=L.get(A.location.pathname);e&&e.has(n.pathname)?f={currentLocation:A.location,nextLocation:n}:L.has(n.pathname)&&(f={currentLocation:n,nextLocation:A.location})}else if(M){let e=L.get(A.location.pathname);e?e.add(n.pathname):(e=new Set([n.pathname]),L.set(A.location.pathname,e)),f={currentLocation:A.location,nextLocation:n}}Be(i({},r,{actionData:l,loaderData:d,historyAction:D,location:n,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:ut(n,r.matches||A.matches),preventScrollReset:m,blockers:h}),{viewTransitionOpts:f,flushSync:!0===c}),D=e.Pop,N=!1,M=!1,F=!1,H=!1,z=[],Q=[]}async function He(n,r,o){k&&k.abort(),k=null,D=n,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&T){let n=lt(e,t);S[n]=T()}}(A.location,A.matches),N=!0===(o&&o.preventScrollReset),M=!0===(o&&o.enableViewTransition);let s=u||v,a=o&&o.overrideNavigation,l=g(s,r,b),c=!0===(o&&o.flushSync),p=ct(l,s,r.pathname);if(p.active&&p.matches&&(l=p.matches),!l){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void qe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}if(A.initialized&&!H&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&(""===e.hash?""!==t.hash:e.hash===t.hash||""!==t.hash)}(A.location,r)&&!(o&&o.submission&&Te(o.submission.formMethod)))return void qe(r,{matches:l},{flushSync:c});k=new AbortController;let d,f=de(t.history,r,k.signal,o&&o.submission);if(o&&o.pendingError)d=[ve(l).route.id,{type:h.error,error:o.pendingError}];else if(o&&o.submission&&Te(o.submission.formMethod)){let n=await async function(t,n,r,o,i,s){void 0===s&&(s={}),$e();let a,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(n,r);if(Be({navigation:l},{flushSync:!0===s.flushSync}),i){let e=await pt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{error:t,notFoundMatches:r,route:o}=st(n.pathname,e);return{matches:r,pendingActionResult:[o.id,{type:h.error,error:t}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:h.error,error:t}]}}o=e.matches}let u=Ie(o,n);if(u.route.action||u.route.lazy){if(a=(await Ue("action",t,[u],o))[0],t.signal.aborted)return{shortCircuited:!0}}else a={type:h.error,error:Ce(405,{method:t.method,pathname:n.pathname,routeId:u.route.id})};if(Se(a)){let e;return e=s&&null!=s.replace?s.replace:pe(a.response.headers.get("Location"),new URL(t.url),b)===A.location.pathname+A.location.search,await Qe(t,a,{submission:r,replace:e}),{shortCircuited:!0}}if(Ee(a))throw Ce(400,{type:"defer-action"});if(Pe(a)){let t=ve(o,u.route.id);return!0!==(s&&s.replace)&&(D=e.Push),{matches:o,pendingActionResult:[t.route.id,a]}}return{matches:o,pendingActionResult:[u.route.id,a]}}(f,r,o.submission,l,p.active,{replace:o.replace,flushSync:c});if(n.shortCircuited)return;if(n.pendingActionResult){let[e,t]=n.pendingActionResult;if(Pe(t)&&q(t.error)&&404===t.error.status)return k=null,void qe(r,{matches:n.matches,loaderData:{},errors:{[e]:t.error}})}l=n.matches||l,d=n.pendingActionResult,a=Ae(r,o.submission),c=!1,p.active=!1,f=de(t.history,f.url,f.signal)}let{shortCircuited:m,matches:y,loaderData:C,errors:w}=await async function(e,n,r,o,s,a,l,c,p,d,h){let f=s||Ae(n,a),m=a||l||ke(f),g=!(F||x.v7_partialHydration&&p);if(o){if(g){let e=ze(h);Be(i({navigation:f},void 0!==e?{actionData:e}:{}),{flushSync:d})}let t=await pt(r,n.pathname,e.signal);if("aborted"===t.type)return{shortCircuited:!0};if("error"===t.type){let{error:e,notFoundMatches:r,route:o}=st(n.pathname,t);return{matches:r,loaderData:{},errors:{[o.id]:e}}}if(!t.matches){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=t.matches}let y=u||v,[C,w]=re(t.history,A,r,m,n,x.v7_partialHydration&&!0===p,x.unstable_skipActionErrorRevalidation,H,z,Q,Re,fe,he,y,b,h);if(at((e=>!(r&&r.some((t=>t.route.id===e)))||C&&C.some((t=>t.route.id===e)))),oe=++$,0===C.length&&0===w.length){let e=et();return qe(n,i({matches:r,loaderData:{},errors:h&&Pe(h[1])?{[h[0]]:h[1].error}:null},ye(h),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(g){let e={};if(!o){e.navigation=f;let t=ze(h);void 0!==t&&(e.actionData=t)}w.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=A.fetchers.get(e.key),n=De(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)})),new Map(A.fetchers)}(w)),Be(e,{flushSync:d})}w.forEach((e=>{U.has(e.key)&&Xe(e.key),e.controller&&U.set(e.key,e.controller)}));let E=()=>w.forEach((e=>Xe(e.key)));k&&k.signal.addEventListener("abort",E);let{loaderResults:P,fetcherResults:S}=await We(A.matches,r,C,w,e);if(e.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",E),w.forEach((e=>U.delete(e.key)));let O=we([...P,...S]);if(O){if(O.idx>=C.length){let e=w[O.idx-C.length].key;he.add(e)}return await Qe(e,O.result,{replace:c}),{shortCircuited:!0}}let{loaderData:T,errors:_}=me(A,r,C,P,h,w,S,Me);Me.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&Me.delete(t)}))})),x.v7_partialHydration&&p&&A.errors&&Object.entries(A.errors).filter((e=>{let[t]=e;return!C.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;_=Object.assign(_||{},{[t]:n})}));let V=et(),R=tt(oe),I=V||R||w.length>0;return i({matches:r,loaderData:T,errors:_},I?{fetchers:new Map(A.fetchers)}:{})}(f,r,l,p.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,c,d);m||(k=null,qe(r,i({matches:y||l},ye(d),{loaderData:C,errors:w})))}function ze(e){return e&&!Pe(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function Qe(o,s,l){let{submission:u,fetcherSubmission:p,replace:d}=void 0===l?{}:l;s.response.headers.has("X-Remix-Revalidate")&&(H=!0);let h=s.response.headers.get("Location");a(h,"Expected a Location header on the redirect Response"),h=pe(h,new URL(o.url),b);let f=c(A.location,h,{_isRedirect:!0});if(r){let e=!1;if(s.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(X.test(h)){const r=t.history.createURL(h);e=r.origin!==n.location.origin||null==I(r.pathname,b)}if(e)return void(d?n.location.replace(h):n.location.assign(h))}k=null;let m=!0===d?e.Replace:e.Push,{formMethod:g,formAction:y,formEncType:v}=A.navigation;!u&&!p&&g&&y&&v&&(u=ke(A.navigation));let C=u||p;if(G.has(s.response.status)&&C&&Te(C.formMethod))await He(m,f,{submission:i({},C,{formAction:h}),preventScrollReset:N});else{let e=Ae(f,u);await He(m,f,{overrideNavigation:e,fetcherSubmission:p,preventScrollReset:N})}}async function Ue(e,t,n,r){try{let o=await async function(e,t,n,r,o,s,l,u){let c=r.reduce(((e,t)=>e.add(t.route.id)),new Set),p=new Set,d=await e({matches:o.map((e=>{let r=c.has(e.route.id);return i({},e,{shouldLoad:r,resolve:o=>(p.add(e.route.id),r?async function(e,t,n,r,o,i,s){let l,u,c=r=>{let o,a=new Promise(((e,t)=>o=t));u=()=>o(),t.signal.addEventListener("abort",u);let l,c=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:s},...void 0!==o?[o]:[]);return l=i?i((e=>c(e))):(async()=>{try{return{type:"data",result:await c()}}catch(e){return{type:"error",result:e}}})(),Promise.race([l,a])};try{let i=n.route[e];if(n.route.lazy)if(i){let e,[t]=await Promise.all([c(i).catch((t=>{e=t})),le(n.route,o,r)]);if(void 0!==e)throw e;l=t}else{if(await le(n.route,o,r),i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ce(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:h.data,result:void 0}}l=await c(i)}else{if(!i){let e=new URL(t.url);throw Ce(404,{pathname:e.pathname+e.search})}l=await c(i)}a(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:h.error,result:e}}finally{u&&t.signal.removeEventListener("abort",u)}return l}(t,n,e,s,l,o,u):Promise.resolve({type:h.data,result:void 0}))})})),request:n,params:o[0].params,context:u});return o.forEach((e=>a(p.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),d.filter(((e,t)=>c.has(o[t].route.id)))}(C,e,t,n,r,f,s);return await Promise.all(o.map(((e,o)=>{if(function(e){return Oe(e.result)&&W.has(e.result.status)}(e)){let i=e.result;return{type:h.redirect,response:ce(i,t,n[o].route.id,r,b,x.v7_relativeSplatPath)}}return async function(e){let{result:t,type:n,status:r}=e;if(Oe(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:h.error,error:e}}return n===h.error?{type:h.error,error:new B(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:h.data,data:e,statusCode:t.status,headers:t.headers}}return n===h.error?{type:h.error,error:t,statusCode:q(t)?t.status:r}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:h.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:h.data,data:t,statusCode:r};var o,i}(e)})))}catch(e){return n.map((()=>({type:h.error,error:e})))}}async function We(e,n,r,o,i){let[s,...a]=await Promise.all([r.length?Ue("loader",i,r,n):[],...o.map((e=>e.matches&&e.match&&e.controller?Ue("loader",de(t.history,e.path,e.controller.signal),[e.match],e.matches).then((e=>e[0])):Promise.resolve({type:h.error,error:Ce(404,{pathname:e.path})})))]);return await Promise.all([_e(e,r,s,s.map((()=>i.signal)),!1,A.loaderData),_e(e,o.map((e=>e.match)),a,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:s,fetcherResults:a}}function $e(){H=!0,z.push(...at()),fe.forEach(((e,t)=>{U.has(t)&&(Q.push(t),Xe(t))}))}function Ge(e,t,n){void 0===n&&(n={}),A.fetchers.set(e,t),Be({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Je(e,t,n,r){void 0===r&&(r={});let o=ve(A.matches,t);Ke(e),Be({errors:{[o.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ye(e){return x.v7_fetcherPersist&&(xe.set(e,(xe.get(e)||0)+1),Re.has(e)&&Re.delete(e)),A.fetchers.get(e)||Y}function Ke(e){let t=A.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&ie.has(e)||Xe(e),fe.delete(e),ie.delete(e),he.delete(e),Re.delete(e),A.fetchers.delete(e)}function Xe(e){let t=U.get(e);a(t,"Expected fetch controller: "+e),t.abort(),U.delete(e)}function Ze(e){for(let t of e){let e=Ne(Ye(t).data);A.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let n of he){let r=A.fetchers.get(n);a(r,"Expected fetcher: "+n),"loading"===r.state&&(he.delete(n),e.push(n),t=!0)}return Ze(e),t}function tt(e){let t=[];for(let[n,r]of ie)if(r<e){let e=A.fetchers.get(n);a(e,"Expected fetcher: "+n),"loading"===e.state&&(Xe(n),ie.delete(n),t.push(n))}return Ze(t),t.length>0}function nt(e){A.blockers.delete(e),Le.delete(e)}function rt(e,t){let n=A.blockers.get(e)||K;a("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(A.blockers);r.set(e,t),Be({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===Le.size)return;Le.size>1&&l(!1,"A router only supports one blocker at a time");let o=Array.from(Le.entries()),[i,s]=o[o.length-1],a=A.blockers.get(i);return a&&"proceeding"===a.state?void 0:s({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function it(e){let t=Ce(404,{pathname:e}),n=u||v,{matches:r,route:o}=be(n);return at(),{notFoundMatches:r,route:o,error:t}}function st(e,t){let n=t.partialMatches,r=n[n.length-1].route;return{notFoundMatches:n,route:r,error:Ce(400,{type:"route-discovery",routeId:r.id,pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function at(e){let t=[];return Me.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),Me.delete(r))})),t}function lt(e,t){if(O){return O(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}(e,A.loaderData))))||e.key}return e.key}function ut(e,t){if(S){let n=lt(e,t),r=S[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(w){if(!e)return{active:!0,matches:y(t,n,b,!0)||[]};{let r=e[e.length-1].route;if(r.path&&("*"===r.path||r.path.endsWith("/*")))return{active:!0,matches:y(t,n,b,!0)}}}return{active:!1,matches:null}}async function pt(e,t,n){let r=e,o=r.length>0?r[r.length-1].route:null;for(;;){let e=null==u,i=u||v;try{await se(w,t,r,i,f,s,je,n)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(v=[...v])}if(n.aborted)return{type:"aborted"};let a=g(i,t,b),l=!1;if(a){let e=a[a.length-1].route;if(e.index)return{type:"success",matches:a};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:a};l=!0}}let c=y(i,t,b,!0);if(!c||r.map((e=>e.route.id)).join("-")===c.map((e=>e.route.id)).join("-"))return{type:"success",matches:l?a:null};if(r=c,o=r[r.length-1].route,"*"===o.path)return{type:"success",matches:r}}}return d={get basename(){return b},get future(){return x},get state(){return A},get routes(){return v},get window(){return n},initialize:function(){if(E=t.history.listen((e=>{let{action:n,location:r,delta:o}=e;if(Fe)return void(Fe=!1);l(0===Le.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=ot({currentLocation:A.location,nextLocation:r,historyAction:n});return i&&null!=o?(Fe=!0,t.history.go(-1*o),void rt(i,{state:"blocked",location:r,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.history.go(o)},reset(){let e=new Map(A.blockers);e.set(i,K),Be({blockers:e})}})):He(n,r)})),r){!function(e,t){try{let n=e.sessionStorage.getItem(ee);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(n,L);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ee,JSON.stringify(n))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(n,L);n.addEventListener("pagehide",e),j=()=>n.removeEventListener("pagehide",e)}return A.initialized||He(e.Pop,A.location,{initialHydration:!0}),d},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,T=t,O=n||null,!_&&A.navigation===J){_=!0;let e=ut(A.location,A.matches);null!=e&&Be({restoreScrollPosition:e})}return()=>{S=null,T=null,O=null}},navigate:async function n(r,o){if("number"==typeof r)return void t.history.go(r);let s=te(A.location,A.matches,b,x.v7_prependBasename,r,x.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:a,submission:l,error:u}=ne(x.v7_normalizeFormMethod,!1,s,o),p=A.location,d=c(A.location,a,o&&o.state);d=i({},d,t.history.encodeLocation(d));let h=o&&null!=o.replace?o.replace:void 0,f=e.Push;!0===h?f=e.Replace:!1===h||null!=l&&Te(l.formMethod)&&l.formAction===A.location.pathname+A.location.search&&(f=e.Replace);let m=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,g=!0===(o&&o.unstable_flushSync),y=ot({currentLocation:p,nextLocation:d,historyAction:f});if(!y)return await He(f,d,{submission:l,pendingError:u,preventScrollReset:m,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:g});rt(y,{state:"blocked",location:d,proceed(){rt(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),n(r,o)},reset(){let e=new Map(A.blockers);e.set(y,K),Be({blockers:e})}})},fetch:function(e,n,r,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(e)&&Xe(e);let s=!0===(i&&i.unstable_flushSync),l=u||v,c=te(A.location,A.matches,b,x.v7_prependBasename,r,x.v7_relativeSplatPath,n,null==i?void 0:i.relative),p=g(l,c,b),d=ct(p,l,c);if(d.active&&d.matches&&(p=d.matches),!p)return void Je(e,n,Ce(404,{pathname:c}),{flushSync:s});let{path:h,submission:f,error:m}=ne(x.v7_normalizeFormMethod,!0,c,i);if(m)return void Je(e,n,m,{flushSync:s});let y=Ie(p,h);N=!0===(i&&i.preventScrollReset),f&&Te(f.formMethod)?async function(e,n,r,o,i,s,l,c){function p(t){if(!t.route.action&&!t.route.lazy){let t=Ce(405,{method:c.formMethod,pathname:r,routeId:n});return Je(e,n,t,{flushSync:l}),!0}return!1}if($e(),fe.delete(e),!s&&p(o))return;let d=A.fetchers.get(e);Ge(e,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,d),{flushSync:l});let h=new AbortController,f=de(t.history,r,h.signal,c);if(s){let t=await pt(i,r,f.signal);if("aborted"===t.type)return;if("error"===t.type){let{error:o}=st(r,t);return void Je(e,n,o,{flushSync:l})}if(!t.matches)return void Je(e,n,Ce(404,{pathname:r}),{flushSync:l});if(p(o=Ie(i=t.matches,r)))return}U.set(e,h);let m=$,y=(await Ue("action",f,[o],i))[0];if(f.signal.aborted)return void(U.get(e)===h&&U.delete(e));if(x.v7_fetcherPersist&&Re.has(e)){if(Se(y)||Pe(y))return void Ge(e,Ne(void 0))}else{if(Se(y))return U.delete(e),oe>m?void Ge(e,Ne(void 0)):(he.add(e),Ge(e,De(c)),Qe(f,y,{fetcherSubmission:c}));if(Pe(y))return void Je(e,n,y.error)}if(Ee(y))throw Ce(400,{type:"defer-action"});let C=A.navigation.location||A.location,w=de(t.history,C,h.signal),E=u||v,P="idle"!==A.navigation.state?g(E,A.navigation.location,b):A.matches;a(P,"Didn't find any matches after fetcher action");let S=++$;ie.set(e,S);let O=De(c,y.data);A.fetchers.set(e,O);let[T,_]=re(t.history,A,P,c,C,!1,x.unstable_skipActionErrorRevalidation,H,z,Q,Re,fe,he,E,b,[o.route.id,y]);_.filter((t=>t.key!==e)).forEach((e=>{let t=e.key,n=A.fetchers.get(t),r=De(void 0,n?n.data:void 0);A.fetchers.set(t,r),U.has(t)&&Xe(t),e.controller&&U.set(t,e.controller)})),Be({fetchers:new Map(A.fetchers)});let V=()=>_.forEach((e=>Xe(e.key)));h.signal.addEventListener("abort",V);let{loaderResults:R,fetcherResults:I}=await We(A.matches,P,T,_,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",V),ie.delete(e),U.delete(e),_.forEach((e=>U.delete(e.key)));let N=we([...R,...I]);if(N){if(N.idx>=T.length){let e=_[N.idx-T.length].key;he.add(e)}return Qe(w,N.result)}let{loaderData:M,errors:L}=me(A,A.matches,T,R,void 0,_,I,Me);if(A.fetchers.has(e)){let t=Ne(y.data);A.fetchers.set(e,t)}tt(S),"loading"===A.navigation.state&&S>oe?(a(D,"Expected pending action"),k&&k.abort(),qe(A.navigation.location,{matches:P,loaderData:M,errors:L,fetchers:new Map(A.fetchers)})):(Be({errors:L,loaderData:ge(A.loaderData,M,P,L),fetchers:new Map(A.fetchers)}),H=!1)}(e,n,h,y,p,d.active,s,f):(fe.set(e,{routeId:n,path:h}),async function(e,n,r,o,i,s,l,u){let c=A.fetchers.get(e);Ge(e,De(u,c?c.data:void 0),{flushSync:l});let p=new AbortController,d=de(t.history,r,p.signal);if(s){let t=await pt(i,r,d.signal);if("aborted"===t.type)return;if("error"===t.type){let{error:o}=st(r,t);return void Je(e,n,o,{flushSync:l})}if(!t.matches)return void Je(e,n,Ce(404,{pathname:r}),{flushSync:l});o=Ie(i=t.matches,r)}U.set(e,p);let h=$,f=(await Ue("loader",d,[o],i))[0];if(Ee(f)&&(f=await Ve(f,d.signal,!0)||f),U.get(e)===p&&U.delete(e),!d.signal.aborted){if(!Re.has(e))return Se(f)?oe>h?void Ge(e,Ne(void 0)):(he.add(e),void await Qe(d,f)):void(Pe(f)?Je(e,n,f.error):(a(!Ee(f),"Unhandled fetcher deferred data"),Ge(e,Ne(f.data))));Ge(e,Ne(void 0))}}(e,n,h,y,p,d.active,s,f))},revalidate:function(){$e(),Be({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?He(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}):He(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:e=>t.history.createHref(e),encodeLocation:e=>t.history.encodeLocation(e),getFetcher:Ye,deleteFetcher:function(e){if(x.v7_fetcherPersist){let t=(xe.get(e)||0)-1;t<=0?(xe.delete(e),Re.add(e)):xe.set(e,t)}else Ke(e);Be({fetchers:new Map(A.fetchers)})},dispose:function(){E&&E(),j&&j(),P.clear(),k&&k.abort(),A.fetchers.forEach(((e,t)=>Ke(t))),A.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let n=A.blockers.get(e)||K;return Le.get(e)!==t&&Le.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==u;ae(e,t,u||v,f,s),n&&(v=[...v],Be({}))},_internalFetchControllers:U,_internalActiveDeferreds:Me,_internalSetRoutes:function(e){f={},u=m(e,s,void 0,f)}},d}({basename:void 0,future:pt({},void 0,{v7_prependBasename:!0}),history:function(t){return void 0===t&&(t={}),function(t,n,r,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:d=!1}=o,h=l.history,f=e.Pop,m=null,g=y();function y(){return(h.state||{idx:null}).idx}function v(){f=e.Pop;let t=y(),n=null==t?null:t-g;g=t,m&&m({action:f,location:C.location,delta:n})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:p(e);return n=n.replace(/ $/,"%20"),a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,h.replaceState(i({},h.state,{idx:g}),""));let C={get action(){return f},get location(){return t(l,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(s,v),m=e,()=>{l.removeEventListener(s,v),m=null}},createHref:e=>n(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){f=e.Push;let o=c(C.location,t,n);r&&r(o,t),g=y()+1;let i=u(o,g),s=C.createHref(o);try{h.pushState(i,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(s)}d&&m&&m({action:f,location:C.location,delta:1})},replace:function(t,n){f=e.Replace;let o=c(C.location,t,n);r&&r(o,t),g=y();let i=u(o,g),s=C.createHref(o);h.replaceState(i,"",s),d&&m&&m({action:f,location:C.location,delta:0})},go:e=>h.go(e)};return C}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return c("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:p(t)}),null,t)}({window:void 0}),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=pt({},t,{errors:ft(t.errors)})),t}(),routes:HT,mapRouteProperties:function(e){let n={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(n,{element:t.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:t.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n},unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize());const UT=function(){return t.createElement("div",{className:"app"},t.createElement(wt,{router:QT}))};var WT=document.getElementById("root");(0,r.H)(WT).render(t.createElement(t.StrictMode,null,t.createElement(UT,null)))})()})(); \ No newline at end of file +`,jO=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:o,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:n,pausedAt:r}=((e={})=>{let[n,r]=(0,t.useState)(cO);(0,t.useEffect)((()=>(uO.push(r),()=>{let e=uO.indexOf(r);e>-1&&uO.splice(e,1)})),[n]);let o=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||dO[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:o}})(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>fO.dismiss(t.id)),n);t.visible&&fO.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let o=(0,t.useCallback)((()=>{r&&pO({type:6,time:Date.now()})}),[r]),i=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=t||{},s=n.filter((t=>(t.position||i)===(e.position||i)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<a&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[n]);return{toasts:n,handlers:{updateHeight:mO,startPause:gO,endPause:o,calculateOffset:i}}})(r);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((r=>{let s=r.position||n,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:iO()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:n}));return t.createElement(MO,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?LO:"",style:a},"custom"===r.type?rO(r.message,r):i?i(r):t.createElement(NO,{toast:r,position:s}))})))},FO=fO,BO=o(522),qO=o(755),HO=function(e){return e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}({}),zO=function(e){return e.closed="closed",e.open="open",e.preview="preview",e.published="published",e}({});function QO(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return UO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UO(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function UO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function WO(e,t){if(0==t.column.indexValue&&"item"in t.row){var n,r,o=t.row.item;void 0!==o.customDescription&&(null===(n=t.htmlElement.parentElement)||void 0===n||n.children[0].children[0].setAttribute("description",o.customDescription),null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].children[0].classList.add("survey-tooltip"))}}function $O(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")}function GO(e,t){var n,r='[data-name="'+t.question.name+'"]',o=null===(n=document.querySelector(r))||void 0===n?void 0:n.querySelector("h5");o&&!o.classList.contains("sv-header-flex")&&t.question.updateElementCss()}function JO(e,t){if("description"===t.name){var n=t.text;if(n.length){for(var r=["e.g.","i.e.","etc.","vs."],o=0,i=r;o<i.length;o++){var s=i[o];n.includes(s)&&(n=n.replace(s,s.slice(0,-1)))}for(var a=n.split(". "),l=0;l<a.length;l++)if(0!=a[l].length){var u,c=QO(r);try{for(c.s();!(u=c.n()).done;){var p=u.value;a[l].includes(p.slice(0,-1))&&(a[l]=a[l].replace(p.slice(0,-1),p))}}catch(e){c.e(e)}finally{c.f()}}var d=a.map((function(e){return e.length?"<p>".concat((t=e).includes("*")?t.split("*").map((function(e,t){return 0==t?e:1==t?"<ul><li>".concat(e,"</li>"):"<li>".concat(e,"</li>")})).join("")+"</ul>":t.endsWith(".")?t:t+".","</p>"):null;var t})).join("");t.html=d}}}function YO(e,t,n){var r;n.verificationStatus.set(e.name,t);var o=document.createElement("button");o.type="button",o.className="sv-action-bar-item verification",o.innerHTML=t,t==HO.Unverified?(o.innerHTML="No change from previous year",o.className+=" verification-required",o.onclick=function(){"display"!=n.mode&&(e.validate(),YO(e,HO.Verified,n))}):(o.innerHTML="Answer updated",o.className+=" verification-ok");var i='[data-name="'+e.name+'"]',s=null===(r=document.querySelector(i))||void 0===r?void 0:r.querySelector("h5"),a=null==s?void 0:s.querySelector(".verification");a?a.replaceWith(o):null==s||s.appendChild(o)}const KO=function(e){var n=e.surveyModel,r=(0,t.useCallback)((function(e,t){var r,o=n.verificationStatus.get(t.question.name),i=null===(r=t.question)||void 0===r?void 0:r.readOnly;o&&!i?YO(t.question,o,n):i&&function(e){var t,n=!!e.visibleIf,r='[data-name="'+e.name+'"]',o=document.querySelector(r),i=null==o?void 0:o.querySelector("h5");if(n)o.style.display="none";else{i&&(i.style.textDecoration="line-through");var s=null===(t=document.querySelector(r))||void 0===t?void 0:t.querySelector(".sv-question__content");s&&(s.style.display="none")}}(t.question)}),[n]),o=(0,t.useCallback)((function(e,t){n.verificationStatus.get(t.question.name)==HO.Unverified&&YO(t.question,HO.Edited,n)}),[n]);return n.css.question.title.includes("sv-header-flex")||(n.css.question.title="sv-title sv-question__title sv-header-flex",n.css.question.titleOnError="sv-question__title--error sv-error-color-fix"),n.onAfterRenderQuestion.hasFunc(r)||(n.onAfterRenderQuestion.add(r),n.onAfterRenderQuestion.add(GO)),n.onValueChanged.hasFunc(o)||n.onValueChanged.add(o),n.onUpdateQuestionCssClasses.hasFunc($O)||n.onUpdateQuestionCssClasses.add($O),n.onMatrixAfterCellRender.hasFunc(WO)||n.onMatrixAfterCellRender.add(WO),n.onTextMarkdown.hasFunc(JO)||n.onTextMarkdown.add(JO),t.createElement(qO.Survey,{model:n})};function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const eT=function(e){var n=e.surveyModel,r=e.pageNoSetter,o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=function(e){return!(null===e.value||void 0===e.value||""===e.value||"checkbox"===e.getType()&&0==e.value.length||"multipletext"===e.getType()&&(1===Object.keys(e.value).length&&void 0===Object.values(e.value)[0]||0===Object.keys(e.value).length))};(0,t.useEffect)((function(){var e=function(e){if(e&&e.pages){var t=[];e.pages.forEach((function(n){var r=n.questions.filter((function(e){return e.startWithNewLine})),o=r.length,i=r.filter(a).length,s=o-i,l=i/o;t.push({completionPercentage:100*l,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:n.title})})),s(t)}};n.onValueChanged.add((function(t){e(t)})),e(n)}),[n]);var l={height:"0.5rem",transition:"width 0.3s ease"};return t.createElement(Sn,{className:"survey-progress"},t.createElement(Tn,null,i.map((function(e,o){return t.createElement(Vn,{xs:12,md:!0,key:o,onClick:function(){return r(o)},style:{cursor:"pointer",margin:"0.5rem"}},t.createElement("div",null,t.createElement("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"}},o+1),t.createElement("span",{style:ZO({whiteSpace:"nowrap"},n.currentPageNo==o&&{fontWeight:"bold"})},e.pageTitle),t.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},t.createElement("div",{style:ZO(ZO({},l),{},{width:"".concat(e.completionPercentage,"%"),backgroundColor:"#262261"})}),t.createElement("div",{style:ZO(ZO({},l),{},{width:"".concat(e.unansweredPercentage,"%"),backgroundColor:"#cdcdcd"})}))))}))))},tT=function(e){var n=e.surveyModel,r=e.surveyActions,o=e.year,i=e.nren,s=e.children,a=Rt((0,t.useState)(0),2),l=a[0],u=a[1],c=Rt((0,t.useState)(!1),2),p=c[0],d=c[1],h=Rt((0,t.useState)(""),2),f=h[0],m=h[1],g=Rt((0,t.useState)(""),2),y=g[0],v=g[1],b=(0,t.useContext)(Ft).user,C=(0,t.useCallback)((function(){d("edit"==n.mode),m(n.lockedBy),u(n.currentPageNo),v(n.status)}),[n]);(0,t.useEffect)((function(){C()}),[C]);var w=function(e){u(e),n.currentPageNo=e},x=function(){w(n.currentPageNo+1)},E=function(){var e=Dt(Mt().mark((function e(t){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r[t]();case 2:C();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(e,t){return S(e,(function(){return E(t)}))},S=function(e,n){return t.createElement("button",{className:"sv-btn sv-btn--navigation",onClick:n},e)},O="Save and stop editing",T="Save progress",_="Start editing",V="Complete Survey",R=function(){return t.createElement("div",{className:"survey-edit-buttons-block"},!p&&!f&&n.editAllowed&&P(_,"startEdit"),!p&&f&&f==b.name&&P("Discard any unsaved changes and release your lock","releaseLock"),p&&P(T,"save"),p&&P(O,"saveAndStopEdit"),p&&P(V,"complete"),l!==n.visiblePages.length-1&&S("Next Section",x))};return t.createElement(Sn,null,t.createElement(Tn,{className:"survey-content"},t.createElement("h2",null,t.createElement("span",{className:"survey-title"},o," Compendium Survey "),t.createElement("span",{className:"survey-title-nren"}," ",i," "),t.createElement("span",null," - ",y)),t.createElement("div",{style:{marginTop:"1rem",textAlign:"justify"}},t.createElement("p",null,"To get started, click “",_,"” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."),t.createElement("p",null,t.createElement("b",null,"In a small change, the survey now asks about this calendar year, i.e. ",o)," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."),t.createElement("p",null,"Press the “",T,"“ or “",O,"“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “",V,"“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “",V,"“ button."),t.createElement("p",null,"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those.")),t.createElement("p",null,"Thank you for taking the time to fill in the ",o," Compendium Survey. Any questions or requests can be sent to ",t.createElement("a",{href:"mailto:Partner-Relations@geant.org"},t.createElement("span",null,"Partner-Relations@geant.org"))),p&&t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("b",null,"Remember to click “",O,"” before leaving the page."))),t.createElement(Tn,null,R()),t.createElement(Tn,{className:"survey-content"},!p&&t.createElement("div",{className:"survey-edit-explainer"},!f&&n.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!f&&!n.editAllowed&&"The survey is in read-only mode and can not be edited by you.",f&&f!=b.name&&"The survey is in read-only mode and currently being edited by: "+f+". To start editing the survey, ask them to complete their edits.",f&&f==b.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.')),t.createElement(Tn,null,t.createElement(eT,{surveyModel:n,pageNoSetter:w}),s),t.createElement(Tn,null,R()))},nT=function(e){var n=e.when,r=e.onPageExit;return function(e){let{router:n,basename:r}=nt(et.UseBlocker),o=rt(tt.UseBlocker),[i,s]=t.useState(""),a=t.useCallback((t=>{if("/"===r)return e();let{currentLocation:n,nextLocation:o,historyAction:i}=t;return e((Me({},n,{pathname:I(n.pathname,r)||n.pathname}),Me({},o,{pathname:I(o.pathname,r)||o.pathname})))}),[r,e]);t.useEffect((()=>{let e=String(++it);return s(e),()=>n.deleteBlocker(e)}),[n]),t.useEffect((()=>{""!==i&&n.getBlocker(i,a)}),[n,i,a]),i&&o.blockers.has(i)&&o.blockers.get(i)}((function(){if(n()){var t=window.confirm(e.message);return t&&r(),!t}return!1})),t.createElement("div",null)};var rT={validateWebsiteUrl:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||null!=e&&null!=e&&""!=e))return!0;try{return!(e=e.trim()).includes(" ")&&(e.includes(":/")||(e="https://"+e),!!new URL(e))}catch(e){return!1}}},oT={data_protection_contact:function(){return!0}};function iT(e){try{var t,n=this.question,r=e[0]||void 0;t=n.data&&"name"in n.data?n.data.name:n.name;var o=n.value,i=oT[t];if(i)return i.apply(void 0,[o].concat(Kt(e.slice(1))));var s=rT[r];if(!s)throw new Error("Validation function ".concat(r," not found for question ").concat(t));return s.apply(void 0,[o].concat(Kt(e.slice(1))))}catch(e){return console.error(e),!1}}BO.Serializer.addProperty("itemvalue","customDescription:text"),BO.Serializer.addProperty("question","hideCheckboxLabels:boolean");const sT=function(e){var n=e.loadFrom,r=Rt((0,t.useState)(),2),o=r[0],i=r[1],s=function(){let{matches:e}=t.useContext(qe),n=e[e.length-1];return n?n.params:{}}(),a=s.year,l=s.nren,u=Rt((0,t.useState)("loading survey..."),2),c=u[0],p=u[1];BO.FunctionFactory.Instance.hasFunction("validateQuestion")||BO.FunctionFactory.Instance.register("validateQuestion",iT);var d=lr().trackPageView,h=(0,t.useCallback)((function(e){return e.preventDefault(),e.returnValue=""}),[]),f=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l)}),[]),m=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f)}),[]);if((0,t.useEffect)((function(){function e(){return(e=Dt(Mt().mark((function e(){var t,r,o,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n+a+(l?"/"+l:""));case 2:return t=e.sent,e.next=5,t.json();case 5:if(r=e.sent,t.ok){e.next=12;break}if(!("message"in r)){e.next=11;break}throw new Error(r.message);case 11:throw new Error("Request failed with status ".concat(t.status));case 12:for(s in(o=new BO.Model(r.model)).setVariable("surveyyear",a),o.setVariable("previousyear",parseInt(a)-1),o.showNavigationButtons=!1,o.requiredText="",o.verificationStatus=new Map,r.verification_status)o.verificationStatus.set(s,r.verification_status[s]);o.data=r.data,o.clearIncorrectValues(!0),o.currentPageNo=r.page,o.mode=r.mode,o.lockedBy=r.locked_by,o.status=r.status,o.editAllowed=r.edit_allowed,i(o);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(function(){return e.apply(this,arguments)})().catch((function(e){return p("Error when loading survey: "+e.message)})).then((function(){d({documentTitle:"Survey for ".concat(l," (").concat(a,")")})}))}),[]),!o)return c;var g,y,v,b,C,w=function(){var e=Dt(Mt().mark((function e(t,n){var r,i,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return","Saving not available in inpect/try mode");case 2:return r={lock_uuid:t.lockUUID,new_state:n,data:t.data,page:t.currentPageNo,verification_status:Object.fromEntries(t.verificationStatus)},e.prev=3,e.next=6,fetch("/api/response/save/"+a+"/"+l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(r)});case 6:return i=e.sent,e.next=9,i.json();case 9:if(s=e.sent,i.ok){e.next=12;break}return e.abrupt("return",s.message);case 12:o.mode=s.mode,o.lockedBy=s.locked_by,o.status=s.status,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(3),e.abrupt("return","Unknown Error: "+e.t0.message);case 20:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t,n){return e.apply(this,arguments)}}(),x=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",r=function(e,t){e.verificationStatus.get(t.name)==HO.Unverified&&(""==n&&(n=t.name),t.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};t&&o.onValidateQuestion.add(r);var i=e();return t&&o.onValidateQuestion.remove(r),i||FO("Validation failed!"),i},E={save:(C=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(o.validate.bind(o,!0,!0),!1)){e.next=4;break}return FO("Please correct the invalid fields before saving!"),e.abrupt("return");case 4:return e.next=6,w(o,"editing");case 6:t=e.sent,FO(t?"Failed saving survey: "+t:"Survey saved!");case 8:case"end":return e.stop()}}),e)}))),function(){return C.apply(this,arguments)}),complete:(b=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x(o.validate.bind(o,!0,!0))){e.next=6;break}return e.next=4,w(o,"completed");case 4:(t=e.sent)?FO("Failed completing survey: "+t):(FO("Survey completed!"),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f));case 6:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)}),saveAndStopEdit:(v=Dt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(o.validate.bind(o,!0,!0),!1)){e.next=4;break}return FO("Please correct the invalid fields before saving."),e.abrupt("return");case 4:return e.next=6,w(o,"readonly");case 6:(t=e.sent)?FO("Failed saving survey: "+t):(FO("Survey saved!"),removeEventListener("beforeunload",h,{capture:!0}),removeEventListener("pagehide",f));case 8:case"end":return e.stop()}}),e)}))),function(){return v.apply(this,arguments)}),startEdit:(y=Dt(Mt().mark((function e(){var t,n,r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/lock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return FO("Failed starting edit: "+n.message),e.abrupt("return");case 9:for(r in addEventListener("pagehide",f),addEventListener("beforeunload",h,{capture:!0}),n.verification_status)o.verificationStatus.set(r,n.verification_status[r]);if(o.data=n.data,o.clearIncorrectValues(!0),o.mode=n.mode,o.lockedBy=n.locked_by,o.lockUUID=n.lock_uuid,o.status=n.status,x(o.validate.bind(o,!0,!0),!1)){e.next=22;break}return FO("Some fields are invalid, please correct them."),e.abrupt("return");case 22:case"end":return e.stop()}}),e)}))),function(){return y.apply(this,arguments)}),releaseLock:(g=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/unlock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return FO("Failed releasing lock: "+n.message),e.abrupt("return");case 9:o.mode=n.mode,o.lockedBy=n.locked_by,o.status=n.status;case 12:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)}),validatePage:function(){x(o.validatePage.bind(o))&&FO("Page validation successful!")}};return t.createElement(Sn,{className:"survey-container"},t.createElement(jO,null),t.createElement(nT,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:function(){return"edit"==o.mode&&!!l},onPageExit:m}),t.createElement(tT,{surveyModel:o,surveyActions:E,year:a,nren:l},t.createElement(KO,{surveyModel:o})))},aT=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},lT={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function uT(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=lT[e];return n+parseInt(eo(t,r[0]),10)+parseInt(eo(t,r[1]),10)}const cT={[Fo]:"collapse",[Ho]:"collapsing",[Bo]:"collapsing",[qo]:"collapse show"},pT=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=uT,...m},g)=>{const y="function"==typeof l?l():l,v=(0,t.useMemo)((()=>aT((e=>{e.style[y]="0"}),e)),[y,e]),b=(0,t.useMemo)((()=>aT((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),C=(0,t.useMemo)((()=>aT((e=>{e.style[y]=null}),r)),[y,r]),w=(0,t.useMemo)((()=>aT((e=>{e.style[y]=`${f(y,e)}px`,Go(e)}),o)),[o,f,y]),x=(0,t.useMemo)((()=>aT((e=>{e.style[y]=null}),i)),[y,i]);return(0,gn.jsx)(Yo,{ref:g,addEndListener:$o,...m,"aria-expanded":m.role?u:null,onEnter:v,onEntering:b,onEntered:C,onExit:w,onExiting:x,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,n)=>t.cloneElement(a,{...n,className:mn()(s,a.props.className,cT[e],"width"===y&&"collapse-horizontal")})})}));function dT(e,t){return Array.isArray(e)?e.includes(t):e===t}const hT=t.createContext({});hT.displayName="AccordionContext";const fT=hT,mT=t.forwardRef((({as:e="div",bsPrefix:n,className:r,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(fT);return n=Cn(n,"accordion-collapse"),(0,gn.jsx)(pT,{ref:a,in:dT(l,i),...s,className:mn()(r,n),children:(0,gn.jsx)(e,{children:t.Children.only(o)})})}));mT.displayName="AccordionCollapse";const gT=mT,yT=t.createContext({eventKey:""});yT.displayName="AccordionItemContext";const vT=yT,bT=t.forwardRef((({as:e="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{n=Cn(n,"accordion-body");const{eventKey:d}=(0,t.useContext)(vT);return(0,gn.jsx)(gT,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,gn.jsx)(e,{ref:p,...c,className:mn()(r,n)})})}));bT.displayName="AccordionBody";const CT=bT,wT=t.forwardRef((({as:e="button",bsPrefix:n,className:r,onClick:o,...i},s)=>{n=Cn(n,"accordion-button");const{eventKey:a}=(0,t.useContext)(vT),l=function(e,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,t.useContext)(fT);return t=>{let s=e===r?null:e;i&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,t),null==n||n(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(fT);return"button"===e&&(i.type="button"),(0,gn.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:mn()(r,n,!dT(u,a)&&"collapsed")})}));wT.displayName="AccordionButton";const xT=wT,ET=t.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},s)=>(t=Cn(t,"accordion-header"),(0,gn.jsx)(e,{ref:s,...i,className:mn()(n,t),children:(0,gn.jsx)(xT,{onClick:o,children:r})}))));ET.displayName="AccordionHeader";const PT=ET,ST=t.forwardRef((({as:e="div",bsPrefix:n,className:r,eventKey:o,...i},s)=>{n=Cn(n,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,gn.jsx)(vT.Provider,{value:a,children:(0,gn.jsx)(e,{ref:s,...i,className:mn()(r,n)})})}));ST.displayName="AccordionItem";const OT=ST,TT=t.forwardRef(((e,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=oE(e,{activeKey:"onSelect"}),p=Cn(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,gn.jsx)(fT.Provider,{value:d,children:(0,gn.jsx)(r,{ref:n,...c,className:mn()(s,p,l&&`${p}-flush`)})})}));TT.displayName="Accordion";const _T=Object.assign(TT,{Button:xT,Collapse:gT,Item:OT,Header:PT,Body:CT}),VT=t.forwardRef((({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{const l=`${e=Cn(e,"spinner")}-${n}`;return(0,gn.jsx)(o,{ref:a,...s,className:mn()(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})}));VT.displayName="Spinner";const RT=VT;function IT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function kT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function AT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M331.3 308.7L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-15.6-7.1-22.6 0-7.1 7.1-6 16.6 0 22.6l52.7 52.7-52.7 52.7c-6.7 6.7-6.4 16.3 0 22.6 6.4 6.4 16.4 6.2 22.6 0l52.7-52.7 52.7 52.7c6.2 6.2 16.4 6.2 22.6 0 6.3-6.2 6.3-16.4 0-22.6z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function DT(e){return yr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}const NT=function(e){var n=e.status;return{completed:t.createElement(kT,{title:n,size:24,color:"green"}),started:t.createElement(IT,{title:n,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.createElement(DT,{title:n,size:24,color:"red"}),"not started":t.createElement(AT,{title:n,size:24})}[n]||n};function MT(e){var n=e.text,r=e.helpText,o=e.onClick,i=e.enabled,s=Rt((0,t.useState)(!1),2),a=s[0],l=s[1],u=function(){var e=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}return e.abrupt("return");case 2:return l(!0),e.prev=3,e.next=6,o();case 6:return e.prev=6,l(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[3,,6,9]])})));return function(){return e.apply(this,arguments)}}();return t.createElement(as,{onClick:u,disabled:!i,style:{pointerEvents:"auto",marginLeft:".5rem"},title:r},a&&t.createElement(RT,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),n)}const LT=function(){var e=Rt((0,t.useState)([]),2),n=e[0],r=e[1],o=(0,t.useRef)(!1);function i(e,t,n){return s.apply(this,arguments)}function s(){return s=Dt(Mt().mark((function e(t,n,o){var i,s,a,l=arguments;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=l.length>3&&void 0!==l[3]&&l[3],e.prev=1,i&&(t+="?dry_run=1"),e.next=5,fetch(t,{method:"POST"});case 5:return s=e.sent,e.next=8,s.json();case 8:a=e.sent,s.ok?(a.message&&console.log(a.message),i||FO(o),MS().then((function(e){r(e)}))):FO(n+a.message),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),FO(n+e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),s.apply(this,arguments)}function a(){return(a=Dt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/survey/new","Failed creating new survey: ","Created new survey");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){return u.apply(this,arguments)}function u(){return u=Dt(Mt().mark((function e(t,n){var r,s=arguments;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>2&&void 0!==s[2]&&s[2],!o.current){e.next=4;break}return FO("Wait for status update to be finished..."),e.abrupt("return");case 4:return o.current=!0,e.next=7,i("/api/survey/"+n+"/"+t,"Error while updating "+t+" survey status to "+n+": ",t+" survey status updated to "+n,r);case 7:o.current=!1;case 8:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function c(){return(c=Dt(Mt().mark((function e(t,n){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/response/unlock/"+t+"/"+n,"Error while unlocking "+n+" "+t+" survey response: ",n+" "+t+" survey response unlocked");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){MS().then((function(e){r(e)}))}),[]);var p=n.length>0&&n.every((function(e){return e.status==zO.published})),d=(We(),window.location.origin+"/data?preview");return t.createElement("div",{className:"py-5 grey-container"},t.createElement(Sn,{style:{maxWidth:"100rem"}},t.createElement(Tn,null,t.createElement(jO,null),t.createElement(as,{onClick:function(){return a.apply(this,arguments)},disabled:!p,style:{pointerEvents:"auto",width:"10rem",margin:"1rem"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(_T,{defaultActiveKey:"0"},n.map((function(e,n){return t.createElement(_T.Item,{eventKey:n.toString(),key:e.year},t.createElement(_T.Header,null,e.year," - ",e.status),t.createElement(_T.Body,null,t.createElement("div",{style:{marginLeft:".5rem",marginBottom:"1rem"}},t.createElement(St,{to:"/survey/admin/edit/".concat(e.year),target:"_blank"},t.createElement(as,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"Inspect Survey")),t.createElement(St,{to:"/survey/admin/try/".concat(e.year),target:"_blank"},t.createElement(as,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"Try Survey")),t.createElement(MT,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:e.status==zO.closed,onClick:function(){return l(e.year,"open")}}),t.createElement(MT,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:e.status==zO.open,onClick:function(){return l(e.year,"close")}}),t.createElement(MT,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:e.status==zO.closed||e.status==zO.preview,onClick:function(){return l(e.year,"preview")}}),t.createElement(MT,{text:"Publish results (dry run)",helpText:"Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12).",enabled:e.status==zO.preview||e.status==zO.published,onClick:function(){return l(e.year,"publish",!0)}}),t.createElement(MT,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:e.status==zO.preview||e.status==zO.published,onClick:function(){return l(e.year,"publish")}}),e.status==zO.preview&&t.createElement("span",null," Preview link: ",t.createElement("a",{href:d},d))),t.createElement(jE,null,t.createElement("colgroup",null,t.createElement("col",{style:{width:"10%"}}),t.createElement("col",{style:{width:"20%"}}),t.createElement("col",{style:{width:"20%"}}),t.createElement("col",{style:{width:"30%"}}),t.createElement("col",{style:{width:"20%"}})),t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"NREN"),t.createElement("th",null,"Status"),t.createElement("th",null,"Lock"),t.createElement("th",null,"Management Notes"),t.createElement("th",null,"Actions"))),t.createElement("tbody",null,e.responses.map((function(n){return t.createElement("tr",{key:n.nren.id},t.createElement("td",null,n.nren.name),t.createElement("td",null,t.createElement(NT,{status:n.status})),t.createElement("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"}},n.lock_description),t.createElement("td",null,"notes"in n&&t.createElement("textarea",{onInput:(r=function(t){return r=e.year,o=n.nren.id,i=t.target.value,void fetch("/api/survey/"+r+"/"+o+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:i||""})}).then(function(){var e=Dt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:n=e.sent,t.ok?FO.success("Notes saved"):FO.error("Failed saving notes: "+n.message||0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){FO.error("Failed saving notes: "+e)}));var r,o,i},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout(o),o=setTimeout((function(){r.apply(void 0,t),clearTimeout(o)}),1e3)}),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:n.notes||""})),t.createElement("td",null,t.createElement(St,{to:"/survey/response/".concat(e.year,"/").concat(n.nren.name),target:"_blank"},t.createElement(as,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN."},"open")),t.createElement(as,{onClick:function(){return function(e,t){return c.apply(this,arguments)}(e.year,n.nren.name)},disabled:""==n.lock_description,style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!"},"remove lock")));var r,o}))))))}))))))};function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jT(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(){return(BT=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function qT(){return(qT=Dt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var HT=function(){var e=Dt(Mt().mark((function e(t,n){var r,o,i,s;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=FT({id:t},n),o={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},e.next=4,fetch("/api/user/".concat(t),o);case 4:return i=e.sent,e.next=7,i.json();case 7:if(s=e.sent,i.ok){e.next=10;break}throw new Error(s.message);case 10:return e.abrupt("return",s.user);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),zT=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:e.permissions.active&&t.permissions.active?"admin"===e.role&&"admin"!==t.role?1:"admin"!==e.role&&"admin"===t.role?-1:e.name.localeCompare(t.name):e.name.localeCompare(t.name)};const QT=function(){var e=Rt((0,t.useState)([]),2),n=e[0],r=e[1],o=Rt((0,t.useState)([]),2),i=o[0],s=o[1],a=(0,t.useContext)(Ft).user,l=Rt((0,t.useState)({idx:-1,asc:!0}),2),u=l[0],c=l[1],p=Rt((0,t.useState)([]),2),d=p[0],h=p[1];(0,t.useEffect)((function(){(function(){return BT.apply(this,arguments)})().then((function(e){r(e),h(e.sort(zT))})),function(){return qT.apply(this,arguments)}().then((function(e){s(e.sort((function(e,t){return e.name.localeCompare(t.name)})))}))}),[]),(0,t.useEffect)((function(){h(Kt(n.sort(zT)))}),[n]);for(var f=function(e,t){var o=n.findIndex((function(e){return e.id===t.id})),i=Kt(n),s=e.target.name,a={};a[s]="active"===s?e.target.checked:e.target.value,HT(t.id,a).then((function(e){i[o]=e,r(i)})).catch((function(e){alert(e.message)}))},m=function(e){var t;if(e===u.idx||(5===e||0===e)&&-1===u.idx)return 5!==e&&0!==e||(e=-1),c({idx:e,asc:!u.asc}),void h(Kt(d.reverse()));0===e?(t=zT,c({idx:-1,asc:!0})):1===e?(t=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:0},c({idx:e,asc:!0})):2===e?(t=function(e,t){return e.role.localeCompare(t.role)},c({idx:e,asc:!0})):3===e?(t=function(e,t){return e.email.localeCompare(t.email)},c({idx:e,asc:!0})):4===e?(t=function(e,t){return e.name.localeCompare(t.name)},c({idx:e,asc:!0})):5===e?(t=zT,c({idx:-1,asc:!0})):6===e?(t=function(e,t){return 0===e.nrens.length&&0===t.nrens.length?0:0===e.nrens.length?-1:0===t.nrens.length?1:e.nrens[0].localeCompare(t.nrens[0])},c({idx:e,asc:!0})):(t=zT,c({idx:e,asc:!0})),h(n.sort(t))},g={},y=0;y<=6;y++)g[y]=u.idx===y?{"aria-sort":u.asc?"ascending":"descending"}:null;return t.createElement(Sn,{style:{maxWidth:"90vw"}},t.createElement(Tn,null,t.createElement("h1",null," User Management Page"),t.createElement(jE,null,t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",tE({},g[0],{onClick:function(){return m(0)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Id"),t.createElement("th",tE({},g[1],{onClick:function(){return m(1)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Active"),t.createElement("th",tE({},g[2],{onClick:function(){return m(2)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Role"),t.createElement("th",tE({},g[3],{onClick:function(){return m(3)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Email"),t.createElement("th",tE({},g[4],{onClick:function(){return m(4)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Full Name"),t.createElement("th",tE({},g[5],{onClick:function(){return m(5)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"OIDC Sub"),t.createElement("th",tE({},g[6],{onClick:function(){return m(6)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"NREN"))),t.createElement("tbody",null,d.map((function(e){return t.createElement("tr",{key:e.id},t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?"Active":t.createElement("input",{type:"checkbox",name:"active",checked:e.permissions.active,onChange:function(t){return f(t,e)}})),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?e.role.charAt(0).toUpperCase()+e.role.slice(1):t.createElement("select",{name:"role",defaultValue:e.role,onChange:function(t){return f(t,e)}},t.createElement("option",{value:"admin"},"Admin"),t.createElement("option",{value:"user"},"User"),t.createElement("option",{value:"observer"},"Observer"))),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.email),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.name),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.oidc_sub),t.createElement("td",{style:{border:"1px dotted #ddd"}},t.createElement("select",{name:"nren",multiple:!1,value:e.nrens.length>0?(n=e.nrens[0],null===(r=i.find((function(e){return e.id==n||e.name==n})))||void 0===r?void 0:r.id):"",onChange:function(t){return f(t,e)}},t.createElement("option",{value:""},"Select NREN"),i.map((function(e){return t.createElement("option",{key:"nren_"+e.id,value:e.id},e.name)})))));var n,r}))))))};var UT,WT=function(){var e="/"!==Qe().pathname;return t.createElement(t.Fragment,null,t.createElement(pn,null,t.createElement(In,null),e?t.createElement(at,null):t.createElement(ur,null),t.createElement(ls,null)),t.createElement(Dn,null))},$T=(UT=[{path:"",element:t.createElement(WT,null),children:[{path:"/budget",element:t.createElement(ME,null)},{path:"/funding",element:t.createElement(PP,null)},{path:"/employment",element:t.createElement(IP,{key:"staffgraph"})},{path:"/traffic-ratio",element:t.createElement(_S,null)},{path:"/roles",element:t.createElement(IP,{roles:!0,key:"staffgraphroles"})},{path:"/employee-count",element:t.createElement(kP,null)},{path:"/charging",element:t.createElement(qE,null)},{path:"/suborganisations",element:t.createElement(DP,null)},{path:"/parentorganisation",element:t.createElement(SP,null)},{path:"/ec-projects",element:t.createElement(zE,null)},{path:"/policy",element:t.createElement(QP,null)},{path:"/traffic-volume",element:t.createElement(RS,null)},{path:"/data",element:t.createElement(Dr,null)},{path:"/institutions-urls",element:t.createElement(ZP,null)},{path:"/connected-proportion",element:t.createElement(rS,{page:dn.ConnectedProportion,key:dn.ConnectedProportion})},{path:"/connectivity-level",element:t.createElement(rS,{page:dn.ConnectivityLevel,key:dn.ConnectivityLevel})},{path:"/connectivity-growth",element:t.createElement(rS,{page:dn.ConnectivityGrowth,key:dn.ConnectivityGrowth})},{path:"/connection-carrier",element:t.createElement(rS,{page:dn.ConnectionCarrier,key:dn.ConnectionCarrier})},{path:"/connectivity-load",element:t.createElement(rS,{page:dn.ConnectivityLoad,key:dn.ConnectivityLoad})},{path:"/commercial-charging-level",element:t.createElement(rS,{page:dn.CommercialChargingLevel,key:dn.CommercialChargingLevel})},{path:"/commercial-connectivity",element:t.createElement(rS,{page:dn.CommercialConnectivity,key:dn.CommercialConnectivity})},{path:"/network-services",element:t.createElement(NS,{category:hn.network_services,key:hn.network_services})},{path:"/isp-support-services",element:t.createElement(NS,{category:hn.isp_support,key:hn.isp_support})},{path:"/security-services",element:t.createElement(NS,{category:hn.security,key:hn.security})},{path:"/identity-services",element:t.createElement(NS,{category:hn.identity,key:hn.identity})},{path:"/collaboration-services",element:t.createElement(NS,{category:hn.collaboration,key:hn.collaboration})},{path:"/multimedia-services",element:t.createElement(NS,{category:hn.multimedia,key:hn.multimedia})},{path:"/storage-and-hosting-services",element:t.createElement(NS,{category:hn.storage_and_hosting,key:hn.storage_and_hosting})},{path:"/professional-services",element:t.createElement(NS,{category:hn.professional_services,key:hn.professional_services})},{path:"/dark-fibre-lease",element:t.createElement(hS,{national:!0,key:"darkfibrenational"})},{path:"/dark-fibre-lease-international",element:t.createElement(hS,{key:"darkfibreinternational"})},{path:"/dark-fibre-installed",element:t.createElement(fS,null)},{path:"/remote-campuses",element:t.createElement(sS,null)},{path:"/eosc-listings",element:t.createElement(zP,null)},{path:"/fibre-light",element:t.createElement(yS,null)},{path:"/monitoring-tools",element:t.createElement(bS,null)},{path:"/pert-team",element:t.createElement(SS,null)},{path:"/passive-monitoring",element:t.createElement(PS,null)},{path:"/alien-wave",element:t.createElement(aS,null)},{path:"/alien-wave-internal",element:t.createElement(lS,null)},{path:"/external-connections",element:t.createElement(gS,null)},{path:"/ops-automation",element:t.createElement(ES,null)},{path:"/network-automation",element:t.createElement(uS,null)},{path:"/traffic-stats",element:t.createElement(VS,null)},{path:"/weather-map",element:t.createElement(IS,null)},{path:"/network-map",element:t.createElement(wS,null)},{path:"/nfv",element:t.createElement(CS,null)},{path:"/certificate-providers",element:t.createElement(dS,null)},{path:"/siem-vendors",element:t.createElement(OS,null)},{path:"/capacity-largest-link",element:t.createElement(pS,null)},{path:"/capacity-core-ip",element:t.createElement(cS,null)},{path:"/non-rne-peers",element:t.createElement(xS,null)},{path:"/iru-duration",element:t.createElement(vS,null)},{path:"/audits",element:t.createElement(NP,null)},{path:"/business-continuity",element:t.createElement(MP,null)},{path:"/crisis-management",element:t.createElement(BP,null)},{path:"/crisis-exercise",element:t.createElement(FP,null)},{path:"/central-procurement",element:t.createElement(LP,null)},{path:"/security-control",element:t.createElement(UP,null)},{path:"/services-offered",element:t.createElement(YP,null)},{path:"/service-management-framework",element:t.createElement($P,null)},{path:"/service-level-targets",element:t.createElement(WP,null)},{path:"/corporate-strategy",element:t.createElement(jP,null)},{path:"survey/admin/surveys",element:t.createElement(LT,null)},{path:"survey/admin/users",element:t.createElement(QT,null)},{path:"survey/admin/inspect/:year",element:t.createElement(sT,{loadFrom:"/api/response/inspect/"})},{path:"survey/admin/try/:year",element:t.createElement(sT,{loadFrom:"/api/response/try/"})},{path:"survey/response/:year/:nren",element:t.createElement(sT,{loadFrom:"/api/response/load/"})},{path:"survey/*",element:t.createElement(BS,null)},{path:"*",element:t.createElement(ur,null)}]}],function(t){const n=t.window?t.window:"undefined"!=typeof window?window:void 0,r=void 0!==n&&void 0!==n.document&&void 0!==n.document.createElement,o=!r;let s;if(a(t.routes.length>0,"You must provide a non-empty routes array to createRouter"),t.mapRouteProperties)s=t.mapRouteProperties;else if(t.detectErrorBoundary){let e=t.detectErrorBoundary;s=t=>({hasErrorBoundary:e(t)})}else s=Z;let u,p,d,f={},v=m(t.routes,s,void 0,f),b=t.basename||"/",C=t.unstable_dataStrategy||ue,w=t.unstable_patchRoutesOnMiss,x=i({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),E=null,P=new Set,S=null,O=null,T=null,_=null!=t.hydrationData,V=g(v,t.history.location,b),R=null;if(null==V&&!w){let e=Ce(404,{pathname:t.history.location.pathname}),{matches:n,route:r}=be(v);V=n,R={[r.id]:e}}if(V&&w&&ct(V,v,t.history.location.pathname).active&&(V=null),V)if(V.some((e=>e.route.lazy)))p=!1;else if(V.some((e=>e.route.loader)))if(x.v7_partialHydration){let e=t.hydrationData?t.hydrationData.loaderData:null,n=t.hydrationData?t.hydrationData.errors:null,r=t=>!t.route.loader||("function"!=typeof t.route.loader||!0!==t.route.loader.hydrate)&&(e&&void 0!==e[t.route.id]||n&&void 0!==n[t.route.id]);if(n){let e=V.findIndex((e=>void 0!==n[e.route.id]));p=V.slice(0,e+1).every(r)}else p=V.every(r)}else p=null!=t.hydrationData;else p=!0;else p=!1,V=[];let k,A={historyAction:t.history.action,location:t.history.location,matches:V,initialized:p,navigation:J,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||R,fetchers:new Map,blockers:new Map},D=e.Pop,N=!1,M=!1,L=new Map,j=null,F=!1,H=!1,z=[],Q=[],U=new Map,$=0,oe=-1,ie=new Map,he=new Set,fe=new Map,xe=new Map,Re=new Set,Me=new Map,Le=new Map,je=new Map,Fe=!1;function Be(e,t){void 0===t&&(t={}),A=i({},A,e);let n=[],r=[];x.v7_fetcherPersist&&A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Re.has(t)?r.push(t):n.push(t))})),[...P].forEach((e=>e(A,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),x.v7_fetcherPersist&&(n.forEach((e=>A.fetchers.delete(e))),r.forEach((e=>Ke(e))))}function qe(n,r,o){var s,a;let l,{flushSync:c}=void 0===o?{}:o,p=null!=A.actionData&&null!=A.navigation.formMethod&&Te(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(s=n.state)?void 0:s._isRedirect);l=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:p?A.actionData:null;let d=r.loaderData?ge(A.loaderData,r.loaderData,r.matches||[],r.errors):A.loaderData,h=A.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,K))));let f,m=!0===N||null!=A.navigation.formMethod&&Te(A.navigation.formMethod)&&!0!==(null==(a=n.state)?void 0:a._isRedirect);if(u&&(v=u,u=void 0),F||D===e.Pop||(D===e.Push?t.history.push(n,n.state):D===e.Replace&&t.history.replace(n,n.state)),D===e.Pop){let e=L.get(A.location.pathname);e&&e.has(n.pathname)?f={currentLocation:A.location,nextLocation:n}:L.has(n.pathname)&&(f={currentLocation:n,nextLocation:A.location})}else if(M){let e=L.get(A.location.pathname);e?e.add(n.pathname):(e=new Set([n.pathname]),L.set(A.location.pathname,e)),f={currentLocation:A.location,nextLocation:n}}Be(i({},r,{actionData:l,loaderData:d,historyAction:D,location:n,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:ut(n,r.matches||A.matches),preventScrollReset:m,blockers:h}),{viewTransitionOpts:f,flushSync:!0===c}),D=e.Pop,N=!1,M=!1,F=!1,H=!1,z=[],Q=[]}async function He(n,r,o){k&&k.abort(),k=null,D=n,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&T){let n=lt(e,t);S[n]=T()}}(A.location,A.matches),N=!0===(o&&o.preventScrollReset),M=!0===(o&&o.enableViewTransition);let s=u||v,a=o&&o.overrideNavigation,l=g(s,r,b),c=!0===(o&&o.flushSync),p=ct(l,s,r.pathname);if(p.active&&p.matches&&(l=p.matches),!l){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void qe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}if(A.initialized&&!H&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&(""===e.hash?""!==t.hash:e.hash===t.hash||""!==t.hash)}(A.location,r)&&!(o&&o.submission&&Te(o.submission.formMethod)))return void qe(r,{matches:l},{flushSync:c});k=new AbortController;let d,f=de(t.history,r,k.signal,o&&o.submission);if(o&&o.pendingError)d=[ve(l).route.id,{type:h.error,error:o.pendingError}];else if(o&&o.submission&&Te(o.submission.formMethod)){let n=await async function(t,n,r,o,i,s){void 0===s&&(s={}),$e();let a,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(n,r);if(Be({navigation:l},{flushSync:!0===s.flushSync}),i){let e=await pt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{error:t,notFoundMatches:r,route:o}=st(n.pathname,e);return{matches:r,pendingActionResult:[o.id,{type:h.error,error:t}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:h.error,error:t}]}}o=e.matches}let u=Ie(o,n);if(u.route.action||u.route.lazy){if(a=(await Ue("action",t,[u],o))[0],t.signal.aborted)return{shortCircuited:!0}}else a={type:h.error,error:Ce(405,{method:t.method,pathname:n.pathname,routeId:u.route.id})};if(Se(a)){let e;return e=s&&null!=s.replace?s.replace:pe(a.response.headers.get("Location"),new URL(t.url),b)===A.location.pathname+A.location.search,await Qe(t,a,{submission:r,replace:e}),{shortCircuited:!0}}if(Ee(a))throw Ce(400,{type:"defer-action"});if(Pe(a)){let t=ve(o,u.route.id);return!0!==(s&&s.replace)&&(D=e.Push),{matches:o,pendingActionResult:[t.route.id,a]}}return{matches:o,pendingActionResult:[u.route.id,a]}}(f,r,o.submission,l,p.active,{replace:o.replace,flushSync:c});if(n.shortCircuited)return;if(n.pendingActionResult){let[e,t]=n.pendingActionResult;if(Pe(t)&&q(t.error)&&404===t.error.status)return k=null,void qe(r,{matches:n.matches,loaderData:{},errors:{[e]:t.error}})}l=n.matches||l,d=n.pendingActionResult,a=Ae(r,o.submission),c=!1,p.active=!1,f=de(t.history,f.url,f.signal)}let{shortCircuited:m,matches:y,loaderData:C,errors:w}=await async function(e,n,r,o,s,a,l,c,p,d,h){let f=s||Ae(n,a),m=a||l||ke(f),g=!(F||x.v7_partialHydration&&p);if(o){if(g){let e=ze(h);Be(i({navigation:f},void 0!==e?{actionData:e}:{}),{flushSync:d})}let t=await pt(r,n.pathname,e.signal);if("aborted"===t.type)return{shortCircuited:!0};if("error"===t.type){let{error:e,notFoundMatches:r,route:o}=st(n.pathname,t);return{matches:r,loaderData:{},errors:{[o.id]:e}}}if(!t.matches){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=t.matches}let y=u||v,[C,w]=re(t.history,A,r,m,n,x.v7_partialHydration&&!0===p,x.unstable_skipActionErrorRevalidation,H,z,Q,Re,fe,he,y,b,h);if(at((e=>!(r&&r.some((t=>t.route.id===e)))||C&&C.some((t=>t.route.id===e)))),oe=++$,0===C.length&&0===w.length){let e=et();return qe(n,i({matches:r,loaderData:{},errors:h&&Pe(h[1])?{[h[0]]:h[1].error}:null},ye(h),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(g){let e={};if(!o){e.navigation=f;let t=ze(h);void 0!==t&&(e.actionData=t)}w.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=A.fetchers.get(e.key),n=De(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)})),new Map(A.fetchers)}(w)),Be(e,{flushSync:d})}w.forEach((e=>{U.has(e.key)&&Xe(e.key),e.controller&&U.set(e.key,e.controller)}));let E=()=>w.forEach((e=>Xe(e.key)));k&&k.signal.addEventListener("abort",E);let{loaderResults:P,fetcherResults:S}=await We(A.matches,r,C,w,e);if(e.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",E),w.forEach((e=>U.delete(e.key)));let O=we([...P,...S]);if(O){if(O.idx>=C.length){let e=w[O.idx-C.length].key;he.add(e)}return await Qe(e,O.result,{replace:c}),{shortCircuited:!0}}let{loaderData:T,errors:_}=me(A,r,C,P,h,w,S,Me);Me.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&Me.delete(t)}))})),x.v7_partialHydration&&p&&A.errors&&Object.entries(A.errors).filter((e=>{let[t]=e;return!C.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;_=Object.assign(_||{},{[t]:n})}));let V=et(),R=tt(oe),I=V||R||w.length>0;return i({matches:r,loaderData:T,errors:_},I?{fetchers:new Map(A.fetchers)}:{})}(f,r,l,p.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,c,d);m||(k=null,qe(r,i({matches:y||l},ye(d),{loaderData:C,errors:w})))}function ze(e){return e&&!Pe(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function Qe(o,s,l){let{submission:u,fetcherSubmission:p,replace:d}=void 0===l?{}:l;s.response.headers.has("X-Remix-Revalidate")&&(H=!0);let h=s.response.headers.get("Location");a(h,"Expected a Location header on the redirect Response"),h=pe(h,new URL(o.url),b);let f=c(A.location,h,{_isRedirect:!0});if(r){let e=!1;if(s.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(X.test(h)){const r=t.history.createURL(h);e=r.origin!==n.location.origin||null==I(r.pathname,b)}if(e)return void(d?n.location.replace(h):n.location.assign(h))}k=null;let m=!0===d?e.Replace:e.Push,{formMethod:g,formAction:y,formEncType:v}=A.navigation;!u&&!p&&g&&y&&v&&(u=ke(A.navigation));let C=u||p;if(G.has(s.response.status)&&C&&Te(C.formMethod))await He(m,f,{submission:i({},C,{formAction:h}),preventScrollReset:N});else{let e=Ae(f,u);await He(m,f,{overrideNavigation:e,fetcherSubmission:p,preventScrollReset:N})}}async function Ue(e,t,n,r){try{let o=await async function(e,t,n,r,o,s,l,u){let c=r.reduce(((e,t)=>e.add(t.route.id)),new Set),p=new Set,d=await e({matches:o.map((e=>{let r=c.has(e.route.id);return i({},e,{shouldLoad:r,resolve:o=>(p.add(e.route.id),r?async function(e,t,n,r,o,i,s){let l,u,c=r=>{let o,a=new Promise(((e,t)=>o=t));u=()=>o(),t.signal.addEventListener("abort",u);let l,c=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:s},...void 0!==o?[o]:[]);return l=i?i((e=>c(e))):(async()=>{try{return{type:"data",result:await c()}}catch(e){return{type:"error",result:e}}})(),Promise.race([l,a])};try{let i=n.route[e];if(n.route.lazy)if(i){let e,[t]=await Promise.all([c(i).catch((t=>{e=t})),le(n.route,o,r)]);if(void 0!==e)throw e;l=t}else{if(await le(n.route,o,r),i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ce(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:h.data,result:void 0}}l=await c(i)}else{if(!i){let e=new URL(t.url);throw Ce(404,{pathname:e.pathname+e.search})}l=await c(i)}a(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:h.error,result:e}}finally{u&&t.signal.removeEventListener("abort",u)}return l}(t,n,e,s,l,o,u):Promise.resolve({type:h.data,result:void 0}))})})),request:n,params:o[0].params,context:u});return o.forEach((e=>a(p.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),d.filter(((e,t)=>c.has(o[t].route.id)))}(C,e,t,n,r,f,s);return await Promise.all(o.map(((e,o)=>{if(function(e){return Oe(e.result)&&W.has(e.result.status)}(e)){let i=e.result;return{type:h.redirect,response:ce(i,t,n[o].route.id,r,b,x.v7_relativeSplatPath)}}return async function(e){let{result:t,type:n,status:r}=e;if(Oe(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:h.error,error:e}}return n===h.error?{type:h.error,error:new B(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:h.data,data:e,statusCode:t.status,headers:t.headers}}return n===h.error?{type:h.error,error:t,statusCode:q(t)?t.status:r}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:h.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:h.data,data:t,statusCode:r};var o,i}(e)})))}catch(e){return n.map((()=>({type:h.error,error:e})))}}async function We(e,n,r,o,i){let[s,...a]=await Promise.all([r.length?Ue("loader",i,r,n):[],...o.map((e=>e.matches&&e.match&&e.controller?Ue("loader",de(t.history,e.path,e.controller.signal),[e.match],e.matches).then((e=>e[0])):Promise.resolve({type:h.error,error:Ce(404,{pathname:e.path})})))]);return await Promise.all([_e(e,r,s,s.map((()=>i.signal)),!1,A.loaderData),_e(e,o.map((e=>e.match)),a,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:s,fetcherResults:a}}function $e(){H=!0,z.push(...at()),fe.forEach(((e,t)=>{U.has(t)&&(Q.push(t),Xe(t))}))}function Ge(e,t,n){void 0===n&&(n={}),A.fetchers.set(e,t),Be({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Je(e,t,n,r){void 0===r&&(r={});let o=ve(A.matches,t);Ke(e),Be({errors:{[o.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ye(e){return x.v7_fetcherPersist&&(xe.set(e,(xe.get(e)||0)+1),Re.has(e)&&Re.delete(e)),A.fetchers.get(e)||Y}function Ke(e){let t=A.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&ie.has(e)||Xe(e),fe.delete(e),ie.delete(e),he.delete(e),Re.delete(e),A.fetchers.delete(e)}function Xe(e){let t=U.get(e);a(t,"Expected fetch controller: "+e),t.abort(),U.delete(e)}function Ze(e){for(let t of e){let e=Ne(Ye(t).data);A.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let n of he){let r=A.fetchers.get(n);a(r,"Expected fetcher: "+n),"loading"===r.state&&(he.delete(n),e.push(n),t=!0)}return Ze(e),t}function tt(e){let t=[];for(let[n,r]of ie)if(r<e){let e=A.fetchers.get(n);a(e,"Expected fetcher: "+n),"loading"===e.state&&(Xe(n),ie.delete(n),t.push(n))}return Ze(t),t.length>0}function nt(e){A.blockers.delete(e),Le.delete(e)}function rt(e,t){let n=A.blockers.get(e)||K;a("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(A.blockers);r.set(e,t),Be({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===Le.size)return;Le.size>1&&l(!1,"A router only supports one blocker at a time");let o=Array.from(Le.entries()),[i,s]=o[o.length-1],a=A.blockers.get(i);return a&&"proceeding"===a.state?void 0:s({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function it(e){let t=Ce(404,{pathname:e}),n=u||v,{matches:r,route:o}=be(n);return at(),{notFoundMatches:r,route:o,error:t}}function st(e,t){let n=t.partialMatches,r=n[n.length-1].route;return{notFoundMatches:n,route:r,error:Ce(400,{type:"route-discovery",routeId:r.id,pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function at(e){let t=[];return Me.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),Me.delete(r))})),t}function lt(e,t){if(O){return O(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}(e,A.loaderData))))||e.key}return e.key}function ut(e,t){if(S){let n=lt(e,t),r=S[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(w){if(!e)return{active:!0,matches:y(t,n,b,!0)||[]};{let r=e[e.length-1].route;if(r.path&&("*"===r.path||r.path.endsWith("/*")))return{active:!0,matches:y(t,n,b,!0)}}}return{active:!1,matches:null}}async function pt(e,t,n){let r=e,o=r.length>0?r[r.length-1].route:null;for(;;){let e=null==u,i=u||v;try{await se(w,t,r,i,f,s,je,n)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(v=[...v])}if(n.aborted)return{type:"aborted"};let a=g(i,t,b),l=!1;if(a){let e=a[a.length-1].route;if(e.index)return{type:"success",matches:a};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:a};l=!0}}let c=y(i,t,b,!0);if(!c||r.map((e=>e.route.id)).join("-")===c.map((e=>e.route.id)).join("-"))return{type:"success",matches:l?a:null};if(r=c,o=r[r.length-1].route,"*"===o.path)return{type:"success",matches:r}}}return d={get basename(){return b},get future(){return x},get state(){return A},get routes(){return v},get window(){return n},initialize:function(){if(E=t.history.listen((e=>{let{action:n,location:r,delta:o}=e;if(Fe)return void(Fe=!1);l(0===Le.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=ot({currentLocation:A.location,nextLocation:r,historyAction:n});return i&&null!=o?(Fe=!0,t.history.go(-1*o),void rt(i,{state:"blocked",location:r,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.history.go(o)},reset(){let e=new Map(A.blockers);e.set(i,K),Be({blockers:e})}})):He(n,r)})),r){!function(e,t){try{let n=e.sessionStorage.getItem(ee);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(n,L);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ee,JSON.stringify(n))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(n,L);n.addEventListener("pagehide",e),j=()=>n.removeEventListener("pagehide",e)}return A.initialized||He(e.Pop,A.location,{initialHydration:!0}),d},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,T=t,O=n||null,!_&&A.navigation===J){_=!0;let e=ut(A.location,A.matches);null!=e&&Be({restoreScrollPosition:e})}return()=>{S=null,T=null,O=null}},navigate:async function n(r,o){if("number"==typeof r)return void t.history.go(r);let s=te(A.location,A.matches,b,x.v7_prependBasename,r,x.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:a,submission:l,error:u}=ne(x.v7_normalizeFormMethod,!1,s,o),p=A.location,d=c(A.location,a,o&&o.state);d=i({},d,t.history.encodeLocation(d));let h=o&&null!=o.replace?o.replace:void 0,f=e.Push;!0===h?f=e.Replace:!1===h||null!=l&&Te(l.formMethod)&&l.formAction===A.location.pathname+A.location.search&&(f=e.Replace);let m=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,g=!0===(o&&o.unstable_flushSync),y=ot({currentLocation:p,nextLocation:d,historyAction:f});if(!y)return await He(f,d,{submission:l,pendingError:u,preventScrollReset:m,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:g});rt(y,{state:"blocked",location:d,proceed(){rt(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),n(r,o)},reset(){let e=new Map(A.blockers);e.set(y,K),Be({blockers:e})}})},fetch:function(e,n,r,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(e)&&Xe(e);let s=!0===(i&&i.unstable_flushSync),l=u||v,c=te(A.location,A.matches,b,x.v7_prependBasename,r,x.v7_relativeSplatPath,n,null==i?void 0:i.relative),p=g(l,c,b),d=ct(p,l,c);if(d.active&&d.matches&&(p=d.matches),!p)return void Je(e,n,Ce(404,{pathname:c}),{flushSync:s});let{path:h,submission:f,error:m}=ne(x.v7_normalizeFormMethod,!0,c,i);if(m)return void Je(e,n,m,{flushSync:s});let y=Ie(p,h);N=!0===(i&&i.preventScrollReset),f&&Te(f.formMethod)?async function(e,n,r,o,i,s,l,c){function p(t){if(!t.route.action&&!t.route.lazy){let t=Ce(405,{method:c.formMethod,pathname:r,routeId:n});return Je(e,n,t,{flushSync:l}),!0}return!1}if($e(),fe.delete(e),!s&&p(o))return;let d=A.fetchers.get(e);Ge(e,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,d),{flushSync:l});let h=new AbortController,f=de(t.history,r,h.signal,c);if(s){let t=await pt(i,r,f.signal);if("aborted"===t.type)return;if("error"===t.type){let{error:o}=st(r,t);return void Je(e,n,o,{flushSync:l})}if(!t.matches)return void Je(e,n,Ce(404,{pathname:r}),{flushSync:l});if(p(o=Ie(i=t.matches,r)))return}U.set(e,h);let m=$,y=(await Ue("action",f,[o],i))[0];if(f.signal.aborted)return void(U.get(e)===h&&U.delete(e));if(x.v7_fetcherPersist&&Re.has(e)){if(Se(y)||Pe(y))return void Ge(e,Ne(void 0))}else{if(Se(y))return U.delete(e),oe>m?void Ge(e,Ne(void 0)):(he.add(e),Ge(e,De(c)),Qe(f,y,{fetcherSubmission:c}));if(Pe(y))return void Je(e,n,y.error)}if(Ee(y))throw Ce(400,{type:"defer-action"});let C=A.navigation.location||A.location,w=de(t.history,C,h.signal),E=u||v,P="idle"!==A.navigation.state?g(E,A.navigation.location,b):A.matches;a(P,"Didn't find any matches after fetcher action");let S=++$;ie.set(e,S);let O=De(c,y.data);A.fetchers.set(e,O);let[T,_]=re(t.history,A,P,c,C,!1,x.unstable_skipActionErrorRevalidation,H,z,Q,Re,fe,he,E,b,[o.route.id,y]);_.filter((t=>t.key!==e)).forEach((e=>{let t=e.key,n=A.fetchers.get(t),r=De(void 0,n?n.data:void 0);A.fetchers.set(t,r),U.has(t)&&Xe(t),e.controller&&U.set(t,e.controller)})),Be({fetchers:new Map(A.fetchers)});let V=()=>_.forEach((e=>Xe(e.key)));h.signal.addEventListener("abort",V);let{loaderResults:R,fetcherResults:I}=await We(A.matches,P,T,_,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",V),ie.delete(e),U.delete(e),_.forEach((e=>U.delete(e.key)));let N=we([...R,...I]);if(N){if(N.idx>=T.length){let e=_[N.idx-T.length].key;he.add(e)}return Qe(w,N.result)}let{loaderData:M,errors:L}=me(A,A.matches,T,R,void 0,_,I,Me);if(A.fetchers.has(e)){let t=Ne(y.data);A.fetchers.set(e,t)}tt(S),"loading"===A.navigation.state&&S>oe?(a(D,"Expected pending action"),k&&k.abort(),qe(A.navigation.location,{matches:P,loaderData:M,errors:L,fetchers:new Map(A.fetchers)})):(Be({errors:L,loaderData:ge(A.loaderData,M,P,L),fetchers:new Map(A.fetchers)}),H=!1)}(e,n,h,y,p,d.active,s,f):(fe.set(e,{routeId:n,path:h}),async function(e,n,r,o,i,s,l,u){let c=A.fetchers.get(e);Ge(e,De(u,c?c.data:void 0),{flushSync:l});let p=new AbortController,d=de(t.history,r,p.signal);if(s){let t=await pt(i,r,d.signal);if("aborted"===t.type)return;if("error"===t.type){let{error:o}=st(r,t);return void Je(e,n,o,{flushSync:l})}if(!t.matches)return void Je(e,n,Ce(404,{pathname:r}),{flushSync:l});o=Ie(i=t.matches,r)}U.set(e,p);let h=$,f=(await Ue("loader",d,[o],i))[0];if(Ee(f)&&(f=await Ve(f,d.signal,!0)||f),U.get(e)===p&&U.delete(e),!d.signal.aborted){if(!Re.has(e))return Se(f)?oe>h?void Ge(e,Ne(void 0)):(he.add(e),void await Qe(d,f)):void(Pe(f)?Je(e,n,f.error):(a(!Ee(f),"Unhandled fetcher deferred data"),Ge(e,Ne(f.data))));Ge(e,Ne(void 0))}}(e,n,h,y,p,d.active,s,f))},revalidate:function(){$e(),Be({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?He(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}):He(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:e=>t.history.createHref(e),encodeLocation:e=>t.history.encodeLocation(e),getFetcher:Ye,deleteFetcher:function(e){if(x.v7_fetcherPersist){let t=(xe.get(e)||0)-1;t<=0?(xe.delete(e),Re.add(e)):xe.set(e,t)}else Ke(e);Be({fetchers:new Map(A.fetchers)})},dispose:function(){E&&E(),j&&j(),P.clear(),k&&k.abort(),A.fetchers.forEach(((e,t)=>Ke(t))),A.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let n=A.blockers.get(e)||K;return Le.get(e)!==t&&Le.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==u;ae(e,t,u||v,f,s),n&&(v=[...v],Be({}))},_internalFetchControllers:U,_internalActiveDeferreds:Me,_internalSetRoutes:function(e){f={},u=m(e,s,void 0,f)}},d}({basename:void 0,future:pt({},void 0,{v7_prependBasename:!0}),history:function(t){return void 0===t&&(t={}),function(t,n,r,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:d=!1}=o,h=l.history,f=e.Pop,m=null,g=y();function y(){return(h.state||{idx:null}).idx}function v(){f=e.Pop;let t=y(),n=null==t?null:t-g;g=t,m&&m({action:f,location:C.location,delta:n})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:p(e);return n=n.replace(/ $/,"%20"),a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,h.replaceState(i({},h.state,{idx:g}),""));let C={get action(){return f},get location(){return t(l,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(s,v),m=e,()=>{l.removeEventListener(s,v),m=null}},createHref:e=>n(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){f=e.Push;let o=c(C.location,t,n);r&&r(o,t),g=y()+1;let i=u(o,g),s=C.createHref(o);try{h.pushState(i,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(s)}d&&m&&m({action:f,location:C.location,delta:1})},replace:function(t,n){f=e.Replace;let o=c(C.location,t,n);r&&r(o,t),g=y();let i=u(o,g),s=C.createHref(o);h.replaceState(i,"",s),d&&m&&m({action:f,location:C.location,delta:0})},go:e=>h.go(e)};return C}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return c("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:p(t)}),null,t)}({window:void 0}),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=pt({},t,{errors:ft(t.errors)})),t}(),routes:UT,mapRouteProperties:function(e){let n={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(n,{element:t.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:t.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n},unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize());const GT=function(){return t.createElement("div",{className:"app"},t.createElement(wt,{router:$T}))};var JT=document.getElementById("root");(0,r.H)(JT).render(t.createElement(t.StrictMode,null,t.createElement(GT,null)))})()})(); \ No newline at end of file diff --git a/setup.py b/setup.py index d3f1f4948613e65af63464690882c8e3d2f8d512..2a2dd12810d069f2799930414ec50ed828eaa7a9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='compendium-v2', - version="0.77", + version="0.78", author='GEANT', author_email='swd@geant.org', description='Flask and React project for displaying ' @@ -30,10 +30,11 @@ setup( include_package_data=True, entry_points={ 'console_scripts': [ - 'excel-survey-publisher=compendium_v2.publishers.survey_publisher_legacy_excel:cli', # noqa - 'db-publisher-2022=compendium_v2.publishers.survey_publisher_old_db_2022:cli', # noqa - 'conversion=compendium_v2.conversion.conversion:cli', # noqa - 'dump_survey_model=compendium_v2.migrations.dump_survey_model:cli', # noqa + 'excel-survey-publisher=compendium_v2.publishers.survey_publisher_legacy_excel:cli', + 'db-publisher-2022=compendium_v2.publishers.survey_publisher_old_db_2022:cli', + 'conversion=compendium_v2.conversion.conversion:cli', + 'dump_survey_model=compendium_v2.migrations.dump_survey_model:cli', + 'legacy-survey-publisher=compendium_v2.publishers.legacy_publisher.survey_publisher_legacy:cli', ] }, license='MIT', diff --git a/test/data/2023_all_questions_answered.json b/test/data/2023_all_questions_answered.json index 5a6a78f10bc96b7abef485fd29cc0249fe938b7a..329c1ddb176ddcc2a849a9cbaba5b08443ee8206 100644 --- a/test/data/2023_all_questions_answered.json +++ b/test/data/2023_all_questions_answered.json @@ -317,7 +317,7 @@ "country": "fyuyg" }, { - "country": "g" + "country": "gg" } ], "security_controls": [ diff --git a/test/test_survey.py b/test/test_survey.py index 091441279eee0839ddd8fdfab2cb785a5e43f081..cc6579fabffaaaba2e6b337c86ea791370e47924 100644 --- a/test/test_survey.py +++ b/test/test_survey.py @@ -101,7 +101,7 @@ def test_survey_route_preview(app, client, test_survey_data, mocked_admin_user, survey.status = SurveyStatus.closed db.session.commit() - mocker.patch('compendium_v2.routes.survey.publish', lambda year: None) + mocker.patch('compendium_v2.routes.survey.publish', lambda year, dry_run: None) rv = client.post( '/api/survey/preview/2023', @@ -124,7 +124,7 @@ def test_survey_route_publish(app, client, test_survey_data, mocked_admin_user, survey.status = SurveyStatus.preview db.session.commit() - mocker.patch('compendium_v2.routes.survey.publish', lambda year: None) + mocker.patch('compendium_v2.routes.survey.publish', lambda year, dry_run: None) rv = client.post( '/api/survey/publish/2023', diff --git a/test/test_survey_publisher.py b/test/test_survey_publisher.py index 0e493e6c110484615b56dbf616e1efcf6fc2a606..620edf576b0d452fa9dea9207fc883ccb04f1103 100644 --- a/test/test_survey_publisher.py +++ b/test/test_survey_publisher.py @@ -210,7 +210,7 @@ def test_v2_publisher_full(app): assert remote_campuses.remote_campus_connectivity assert remote_campuses.connections == [ {"country": "fyuyg", "local_r_and_e_connection": False}, - {"country": "g", "local_r_and_e_connection": None} + {"country": "gg", "local_r_and_e_connection": None} ] dark_fibre_lease = db.session.scalar(select(presentation_models.DarkFibreLease)) @@ -273,7 +273,7 @@ def test_v2_publisher_full(app): external_connection_list = external_connections.connections assert len(external_connection_list) == 6 assert external_connection_list[0] == { - "capacity": "1", + "capacity": 1.0, "from_organization": "GEANT", "interconnection_method": "geant", "link_name": "GEANT", @@ -287,7 +287,7 @@ def test_v2_publisher_full(app): "to_organization": "" } assert external_connection_list[4] == { - "capacity": "1.1", + "capacity": 1.1, "from_organization": "", "interconnection_method": None, "link_name": "",